Web Technologies
37.4K+ articles
DSA
22.8K+ articles
Misc
8.8K+ articles
Mathematical
7.8K+ articles
Arrays
6.5K+ articles
C++
4.3K+ articles
Competitive Programming
3.3K+ articles
Strings
3.3K+ articles
Hash
1.3K+ articles
frequency-counting
745+ articles
Given an array key of size n, instruction count representing the number of keys a hijacker can test per second, during a total validity period which is the average time to...
read more
Mathematical
DSA
Goldman Sachs
math
cpp-unordered_map
Java-HashMap
python-map
Map
Given a list of prices for n products, find the minimum amount a customer needs to spend to obtain a gift card. A gift card is awarded when a customer purchases a contiguo...
read more
Geeks Premier League
DSA
Arrays
prefix-sum
cpp-unordered_map
Geeks Premier League 2023
Given a stock's prices for the past n days in the array stockPrice. Choose a subsequence (an ordered subset of an array's elements) of stock prices, called chosenDays, suc...
read more
Mathematical
Geeks Premier League
DSA
cpp-unordered_map
Java-HashMap
Atlassian
Python dictionary-programs
top-dsa-problems
Geeks Premier League 2023
Given an array a[] of size n and integer k. The task is to count a number of different pairs of indexes where values at a given index are the same and both indexes are at ...
read more
Hash
Geeks Premier League
DSA
Binary Search
STL
cpp-unordered_map
Geeks Premier League 2023
Given an array A[] of size N. The task is to check whether the sum of elements of A on the odd and even indexes is equal or not, where you are allowed to choose a subarray...
read more
Hash
Geeks Premier League
DSA
cpp-unordered_map
Geeks Premier League 2023
Given array A[] of size N, each element represents 2A[i] for all i from 1 to N. The Task for this problem is to find the number of Strong pairs. A Strong pair is defined ...
read more
Greedy
Geeks Premier League
DSA
cpp-unordered_map
Maths
Geeks Premier League 2023
valid pairs
In C++, the unordered_map is like a dictionary that stores data in the form of key-value pairs. In this article, we will learn how to delete a key-value pair from an unord...
read more
C++ Programs
C++
Picked
STL
cpp-unordered_map
CPP Examples
A mode is a number that occurs most frequently in comparison to other numbers in a given dataset. In this article, we will find the mode in a 2D array of integers in C++.I...
read more
C++ Programs
C++
Picked
cpp-array
cpp-unordered_map
CPP Examples
In C++, STL provides the pair container which allows the user to store two objects that can be of the same or different type as a single unit. On the other hand, the Unord...
read more
C++ Programs
C++
Picked
STL
cpp-unordered_map
cpp-pair
CPP Examples
Mode of any dataset is the item that occurs most frequently in it. In this article, we will find the mode of numbers in an unsorted array in C++.For Example,Input:myArray ...
read more
C++ Programs
C++
Picked
STL
cpp-array
cpp-unordered_map
CPP Examples
In C++, arrays are a type of data structure that can store a fixed-size sequential collection of elements of the same type. In this article, we will learn how to find the ...
read more
C++ Programs
C++
Picked
STL
cpp-array
cpp-unordered_map
CPP Examples
In C++, a stack is a container adapter that provides a Last-In-First-Out (LIFO) type of data structure, and an unordered set is a container that stores unique elements in ...
read more
C++ Programs
C++
Picked
STL
cpp-unordered_map
cpp-stack
CPP Examples
In C++, the stack is a container that follows the LIFO(Last In First Out) rule where new elements are added from one end (top) and removed from that end only. An unordered...
read more
C++ Programs
C++
Picked
STL
cpp-unordered_map
cpp-stack
CPP Examples
In C++ std::unordered_mapis a data structure that implements a hash table and allows fast access to each element based on its key. However, when we want to use user-define...
read more
C++ Programs
C++
Picked
STL
Hash
cpp-unordered_map
CPP Examples
A HashMap is a data structure in which the elements are stored in key-value pairs such that every key is mapped to a value using a hash function. In C++, hash maps are imp...
read more
C++ Programs
C++
Picked
STL
cpp-unordered_map
CPP Examples
misc-cpp
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !