Tutorials
Courses
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.4K+ articles
DSA
21.3K+ articles
Misc
8.5K+ articles
Mathematical
7.6K+ articles
Arrays
6.1K+ articles
Competitive Programming
3.1K+ articles
Strings
3.0K+ articles
Sorting
1.7K+ articles
Searching
1.6K+ articles
frequency-counting
745+ articles
Hash
150+ posts
Recent Articles
Popular Articles
Find sum of count of duplicate numbers in all subarrays of given array
Last Updated: 15 February 2024
Given an array arr[] of size N. The task it to find the sum of count of duplicate numbers in all subarrays of given array arr[]. For example array {1, 2, 3, 2, 3, 2} has t...
read more
Geeks Premier League
DSA
Arrays
Hash
Geeks Premier League 2023
Rearrange arrays such that sum of corresponding elements is same for all equal indices
Last Updated: 28 January 2024
Given two arrays A[] and B[] of length N. Then your task is to rearrange the elements of both arrays in such a way that the sum (Ai + Bi) for all i (1 = i = N) is same. If...
read more
Geeks Premier League
DSA
Arrays
Hash
Geeks Premier League 2023
Transform Strings by Frequency Exchange and Swapping
Last Updated: 29 February 2024
Given two strings s1 and s2, the task is to check if they can be transformed into each other by performing the following operation any number of times on any string.Choosi...
read more
Strings
Geeks Premier League
DSA
Google
Facebook
Hash
frequency-counting
Geeks Premier League 2023
CSES Solution - Palindrome Queries
Last Updated: 28 March 2024
You are given a string that consists of n characters between a–z. The positions of the string are indexed 1,2,...n.Your task is to process m operations of the following ty...
read more
Strings
Competitive Programming
Picked
DSA
Hash
CSES Problems
Find Number of Same-End Substrings
Last Updated: 28 April 2024
Given a 0-indexed string s, and a 2D array of integers queries, where queries[i] = [li, ri] represents a substring of s starting from the index li and ending at the index ...
read more
Picked
DSA
Arrays
Sprinklr
Hash
Count Number of Divisible Triplet Sums
Last Updated: 11 May 2024
Given a 0-indexed integer array arr[] and an integer d, return the count number of triplets (i, j, k) such that i j k and (arr[i] + arr[j] + arr[k]) % d == 0. Example:In...
read more
Picked
DSA
Arrays
IBM
Hash
How to Implement Custom Hash Functions for User-Defined Types in std::unordered_map?
Last Updated: 28 April 2024
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
Create Linked List Frequency
Last Updated: 16 May 2024
Given the head of a linked list containing k distinct elements, the task is to return the head of linked list of length k containing the frequency of each distinct element...
read more
Linked List
Picked
DSA
Cisco
Hash
Matching the Alphanumerical Pattern in Matrix I
Last Updated: 21 May 2024
Given a 2D integer matrix mat[][] and a 2D character matrix pat[][]. Where 0 = mat[r][c] = 9 and each element of pat is either a digit or a lowercase English letter. The t...
read more
Matrix
Picked
DSA
Hash
Uber
Data Structure Design for Two Sum III
Last Updated: 27 May 2024
You have to design a data structure that accepts a stream of integers and then checks if it has a pair of integers that added/sum up to a particular value.Implement theTwo...
read more
Data Structures
Picked
DSA
Linkedin
Hash
Map
Remove at most K letter to equalize the frequency
Last Updated: 11 June 2024
Given a string S of length n, consisting of lowercase English letters. The task is to check if it is possible to remove at most K letter from S such that the frequency of ...
read more
Strings
Picked
DSA
Bloomberg
Hash
Interview-Questions
Special Ranking Teams by Votes
Last Updated: 14 June 2024
Given an array of strings votes[], representing the voters' rankings. A special ranking system where each voter ranks all teams from highest to lowest. The task is to Sort...
read more
Strings
Picked
DSA
Hash
Atlassian
Interview-Questions
set
2Sum - Complete Tutorial
Last Updated: 22 February 2025
The 2-Sum problem is a popular algorithmic challenge where the goal is to identify two distinct elements in an array whose sum equals a specific target. The problem emphas...
read more
Algorithms
DSA
Hash
two-pointer-algorithm
Fizz Buzz in C++
Last Updated: 25 September 2024
Fizz Buzz problem states that given an integer n, for every integer i = n, the task is to write a C++ program to print,'FizzBuzz' if i is divisible by 3 and 5, 'Fizz' if i...
read more
Strings
C++
DSA
loop
HashTable
Hash
Meeting rooms - Find minimum meeting rooms
Last Updated: 26 March 2025
Given two arrays start[] and end[] such that start[i] is the starting time of ith meeting and end[i] is the ending time of ith meeting. Task is to find minimum number of r...
read more
Sorting
Hash
DSA
Arrays
Hash
Interval
1
2
3
4
...
10
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 !