Skip to content
Courses
DSA to Development
Get IBM Certification
Newly Launched!
Master Django Framework
Become AWS Certified
For Working Professionals
Interview 101: DSA & System Design
Data Science Training Program
JAVA Backend Development (Live)
DevOps Engineering (LIVE)
Data Structures & Algorithms in Python
For Students
Placement Preparation Course
Data Science (Live)
Data Structure & Algorithm-Self Paced (C++/JAVA)
Master Competitive Programming (Live)
Full Stack Development with React & Node JS (Live)
Full Stack Development
Data Science Program
All Courses
Tutorials
Data Structures & Algorithms
ML & Data Science
Interview Corner
Programming Languages
Web Development
CS Subjects
DevOps And Linux
School Learning
Practice
Build your AI Agent
GfG 160
Problem of the Day
Practice Coding Problems
GfG SDE Sheet
Contests
Accenture Hackathon (Ending Soon!)
GfG Weekly [Rated Contest]
Job-A-Thon Hiring Challenge
All Contests and Events
DSA
Practice Problems
Python
C
C++
Java
Courses
Machine Learning
DevOps
Web Development
System Design
Aptitude
Projects
Sign In
▲
Similar Topics
DSA
22.3k+ articles
Arrays
6.4k+ articles
Competitive Programming
2.3k+ articles
Greedy
2k+ articles
Sorting
1.7k+ articles
Hash
1.2k+ articles
cpp-unordered_map
220+ articles
Java-HashMap
140+ articles
Hash
140+ articles
CSES Problems
100+ articles
DSA
>
Data Structures
>
Map
Map
47 posts
Popular Articles
Recent Articles
CSES Solutions - Subarray Sums II
Last Updated: 28 March 2024
Given an array arr[] of N integers, your task is to count the number of subarrays having sum X.Examples: Input: N = 5, X = 7, arr[] = {2, -1
...read more
Competitive Programming
prefix-sum
Picked
DSA
Map
CSES Problems
CSES Solutions - Playlist
Last Updated: 26 March 2024
You are given a playlist of a radio station since its establishment. The playlist has a total of N songs. What is the longest sequence of su
...read more
Competitive Programming
Picked
DSA
Map
CSES Problems
CSES Solutions - Sum of Two values
Last Updated: 23 April 2024
You are given an array arr[] of N integers, and your task is to find two different indices whose sum is X.Examples: Input: N = 4, X = 8, arr
...read more
Sorting
Competitive Programming
Picked
DSA
Map
CSES Problems
Similar Topics
DSA
22.3k+ articles
Arrays
6.4k+ articles
Competitive Programming
2.3k+ articles
Greedy
2k+ articles
Sorting
1.7k+ articles
Hash
1.2k+ articles
cpp-unordered_map
220+ articles
Java-HashMap
140+ articles
Hash
140+ articles
CSES Problems
100+ articles
CSES Solutions - Concert Tickets
Last Updated: 08 August 2024
There are N concert tickets available, each with a certain price given as array tickets[]. Then, M customers arrive, one after another. Each
...read more
Sorting
Competitive Programming
Picked
DSA
Map
CSES Problems
Minimum cost to make all elements with same frequency equal
Last Updated: 04 December 2023
Given an array arr[] of integers, the task is to find the minimum cost for making all the integers that have the same frequency equal. By pe
...read more
Hash
cpp-map
DSA
Map
Check if encrypted information remains confidential during its Validity Period
Last Updated: 09 November 2023
Given an array key of size n, instruction count representing the number of keys a hijacker can test per second, during a total validity peri
...read more
Goldman Sachs
Mathematical
math
cpp-unordered_map
Java-HashMap
python-map
DSA
Map
Longest String Chain - Chain of words in an Array
Last Updated: 24 February 2025
Given an array of words where each word consists of lowercase English letters, we need to find the longest word chain possible.A word wordA
...read more
cpp-unordered_map
Geeks Premier League
DSA
Map
Geeks Premier League 2023
Count the unique type of nodes present in Binary tree
Last Updated: 30 November 2023
According to the property of a Binary tree, a node can have at most two children so there are three cases where a node can have two children
...read more
Tree
Trees
Binary Tree
Java-HashMap
DSA
Map
Maximum intersection of a horizontal lines with a vertical
Last Updated: 27 March 2025
Given n horizontal line segments are arranged on the X-axis of a 2D plane. The start and end point of each line segment is given in an nx2 m
...read more
DSA
Map
Checking valid shuffle of two Strings
Last Updated: 31 May 2024
Given two strings str1 and str2, and a third-string shuffle, determine if shuffle is a valid shuffle of str1 and str2, where a valid shuffle
...read more
Strings
Hash
Hash
strings
DSA
Map
Designing a HashMap without Built-in Libraries
Last Updated: 31 October 2023
Design a HashMap without using any built-in hash table libraries. To be specific, your design should include these functions:put(key, value)
...read more
Hash
Design Pattern
System Design
DSA
Map
Find length of the longest subarray containing atmost two distinct integers
Last Updated: 17 May 2023
Given an array arr[] containing N elements, the task is to find the length of the longest subarray of an input array containing at most two
...read more
sliding-window
DSA
Map
Implementation on Map or Dictionary Data Structure in C
Last Updated: 27 March 2023
C programming language does not provide any direct implementation of Map or Dictionary Data structure. However, it doesn't mean we cannot im
...read more
DSA
Map
Introduction to Map – Data Structure and Algorithm Tutorials
Last Updated: 31 July 2024
Maps is also known as dictionaries or associative arrays, are fundamental data structures that allow you to efficiently store and retrieve
...read more
Data Structures
DSA
Map
How to traverse through all values for a given key in multimap?
Last Updated: 06 April 2024
Given a multimap and a key of the multimap, our task is to simply display the (key - value) pairs of the given key. In multimap we can have
...read more
STL
C++
cpp-multimap
DSA
Map
1
2
3
4
>>
Last
1
2
3
4
>>
Last
1
2
3
4
>>
Last
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 !