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.4k+ articles
Mathematical
7.7k+ articles
Arrays
6.4k+ articles
Strings
3.2k+ articles
Greedy
2k+ articles
Algorithms
2k+ articles
Searching
1.7k+ articles
Hash
1.2k+ articles
frequency-counting
730+ articles
cpp-unordered_map
220+ articles
HashTable
67 posts
Popular Articles
Recent Articles
Hash Table vs Trie
Last Updated: 15 December 2022
What is Hash Table?An array that stores pointers to records corresponding to a given element. An entry in the hash table is NIL if no existi
...read more
Trie
Hash
Technical Scripter
HashTable
Picked
Technical Scripter 2022
DSA
What is the difference between Hashing and Hash Tables?
Last Updated: 13 December 2022
What is Hashing?Hashing refers to the process of generating a fixed-size output from an input of variable size using the mathematical formul
...read more
Technical Scripter
HashTable
Hash
Picked
Technical Scripter 2022
DSA
Count of substrings with the frequency of at most one character as Odd
Last Updated: 03 April 2023
Given a string S of N characters, the task is to calculate the total number of non-empty substrings such that at most one character occurs a
...read more
Strings
Bit Magic
Hash
Combinatorial
Bitwise-XOR
HashTable
frequency-counting
DSA
Similar Topics
DSA
22.4k+ articles
Mathematical
7.7k+ articles
Arrays
6.4k+ articles
Strings
3.2k+ articles
Greedy
2k+ articles
Algorithms
2k+ articles
Searching
1.7k+ articles
Hash
1.2k+ articles
frequency-counting
730+ articles
cpp-unordered_map
220+ articles
Find maximum element among the elements with minimum frequency in given Array
Last Updated: 23 August 2023
Given an array arr[] consisting of N integers, the task is to find the maximum element with the minimum frequency.Examples:Input: arr[] = {2
...read more
Arrays
Algorithms
Hash
HashTable
cpp-unordered_map
frequency-counting
DSA
Count of unique pairs (i, j) in an array such that sum of A[i] and reverse of A[j] is equal to sum of reverse of A[i] and A[j]
Last Updated: 28 December 2022
Given an array arr[] consisting of N positive integers, the task is to find the count of unique pairs (i, j) such that the sum of arr[i] and
...read more
Arrays
Hash
Reverse
HashTable
cpp-unordered_map
frequency-counting
DSA
Count maximum possible pairs from an array having sum K
Last Updated: 17 November 2021
Given an array arr[] consisting of N integers and an integer K, the task is to find the maximum number of pairs having a sum K possible from
...read more
Arrays
Searching
Sorting
Hash
HashTable
two-pointer-algorithm
DSA
Append digits to the end of duplicate strings to make all strings in an array unique
Last Updated: 21 September 2022
Given an array arr[] consisting of N strings, the task is to modify the array by replacing the duplicate strings by appending any number suc
...read more
Arrays
Strings
Searching
Hash
Technical Scripter
HashTable
cpp-unordered_map
frequency-counting
Technical Scripter 2020
DSA
C/C++ Puzzles
Count subarrays for every array element in which they are the minimum
Last Updated: 02 November 2023
Given an array arr[] consisting of N integers, the task is to create an array brr[] of size N where brr[i] represents the count of subarrays
...read more
Arrays
Binary Search
Algorithms
Searching
Hash
subarray
HashTable
DSA
Count quadruples (i, j, k, l) in an array such that i < j < k < l and arr[i] = arr[k] and arr[j] = arr[l]
Last Updated: 14 May 2021
Given an array arr[] consisting of N integers, the task is to count the number of tuples (i, j, k, l) from the given array such that i j k
...read more
Arrays
Searching
Hash
HashTable
frequency-counting
DSA
Count of Right-Angled Triangle formed from given N points whose base or perpendicular are parallel to X or Y axis
Last Updated: 11 July 2022
Given an array arr[] of N distinct integers points on the 2D Plane. The task is to count the number of Right-Angled Triangle from N points s
...read more
Arrays
Greedy
Mathematical
Geometric
triangle
HashTable
frequency-counting
Maths
DSA
Count of Distinct Substrings occurring consecutively in a given String
Last Updated: 13 November 2023
Given a string str, the task is to find the number of distinct substrings that are placed consecutively in the given string.Examples:Input:
...read more
Strings
Dynamic Programming
Hash
Competitive Programming
HashTable
cpp-unordered_set
frequency-counting
Memoization
substring
DSA
Minimize Steps required to obtain Sorted Order of an Array
Last Updated: 13 December 2021
Given an array arr[] consisting of a permutation of integers [1, N], derived by rearranging the sorted order [1, N], the task is to find the
...read more
Arrays
Mathematical
Hash
array-rearrange
HashTable
DSA
Lexicographical smallest number after at most K consecutive swaps
Last Updated: 16 March 2023
Given a number in form of string str and an integer K, the task is to find the smallest integer that can be formed after performing at most
...read more
Strings
Tree
Greedy
Hash
Advanced Data Structure
Competitive Programming
STL
Segment-Tree
HashTable
Greedy Algorithms
Algorithms-Recursion
cpp-map
DSA
First subarray with negative sum from the given Array
Last Updated: 04 December 2023
Given an array arr[] consisting of N integers, the task is to find the start and end indices of the first subarray with a Negative Sum. Prin
...read more
Arrays
Algorithms
Searching
Mathematical
Hash
Competitive Programming
subarray
HashTable
prefix-sum
cpp-map
subarray-sum
DSA
Minimum cost to modify a string
Last Updated: 27 May 2021
Given string str consisting of lower case alphabets only and an integer K. The task is to find the minimum cost to modify the string such th
...read more
Strings
sliding-window
HashTable
Hash
DSA
First
1
2
3
4
5
>>
Last
First
1
2
3
4
5
>>
Last
First
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 !