Tutorials
Go Premium
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
32.1K+ articles
DSA
20.0K+ articles
Mathematical
5.1K+ articles
Arrays
4.2K+ articles
Strings
2.1K+ articles
Greedy
1.4K+ articles
Searching
1.0K+ articles
Hash
830+ articles
frequency-counting
745+ articles
cpp-unordered_map
231+ articles
HashTable
67 posts
Recent Articles
Popular Articles
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 an odd number of times.Example:I...
read more
Strings
Bit Magic
Hash
Combinatorial
DSA
Bitwise-XOR
HashTable
frequency-counting
Difference of count of distinct elements present to left and right for each array element
Last Updated: 15 February 2023
Given an array arr[] consisting of N integers, the task for each array element is to find the absolute difference between the count of distinct elements to the left and th...
read more
Mathematical
Hash
DSA
Arrays
HashTable
HashSet
frequency-counting
Count of pairs in Array with difference equal to the difference with digits reversed
Last Updated: 15 November 2021
Given an array arr[] of N integers, the task is to find the number of pairs of array elements (arr[i], arr[j]) such that the difference between the pairs is equal to the d...
read more
Greedy
Mathematical
Hash
DSA
Arrays
HashTable
frequency-counting
Maximum subarray sum with same first and last element formed by removing elements
Last Updated: 25 November 2021
Given an array arr[] of N integers, the task is to find the maximum sum of subarray having length an at least 2 whose first and last elements are the same after removing a...
read more
Mathematical
Hash
TrueGeek
TrueGeek-2021
DSA
Arrays
prefix-sum
subarray
HashTable
subarray-sum
Sum of nodes within K distance from target
Last Updated: 11 November 2023
Given a binary tree, a target node and a positive integer K on it, the task is to find the sum of all nodes within distance K from the target node (including the value of ...
read more
Tree
Searching
Recursion
DSA
Binary Tree
DFS
HashTable
Introduction to Hashing
Last Updated: 21 March 2025
Hashing refers to the process of generating a small sized output (that can be used as index in a table) from an input of typically large and variable size. Hashing uses m...
read more
DSA
HashTable
HashSet
Hash
Tutorials
DSA-Blogs
DSA Tutorials
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 formulas known as hash functions. Thi...
read more
Technical Scripter
Picked
Technical Scripter 2022
DSA
HashTable
Hash
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 existing element has a hash function ...
read more
Hash
Technical Scripter
Picked
Technical Scripter 2022
DSA
Trie
HashTable
Hash Table Data Structure
Last Updated: 25 March 2025
What is Hash Table?A Hash table is defined as a data structure used to insert, look up, and remove key-value pairs quickly. It operates on the hashing concept, where each ...
read more
Hash
Picked
DSA
HashTable
Rectangular Plane Division - Min and Max Coordinates
Last Updated: 08 October 2023
There is a rectangular plane with dimensions W * H which occupies rectangular area {(x,y): 0 ≤ x ≤ W, 0 ≤ y ≤H. There are N coordinates represented by array cor[][2] and T...
read more
Greedy
Hash
DSA
Binary Search
Data Structures
HashTable
Greedy Algorithms
Find the minimum swaps to group K elements.
Last Updated: 30 November 2023
Given an integer array arr[] of length n and an integer K, the task is to determine the minimum number of swaps required to group at least K occurrences of the same elemen...
read more
Hash
DSA
sliding-window
HashTable
cpp-map
Length after removing Invalid K-Length Substrings
Last Updated: 07 November 2023
Given a string 'S' of length N which consists of both Uppercase and Lowercase English alphabets and a positive integer K (1 = K = N), the task is to return the length of t...
read more
Mathematical
Hash
Geeks Premier League
DSA
sliding-window
HashTable
Java-HashMap
frequency-counting
Geeks Premier League 2023
How to Add or Update Elements in a HashTable in Java?
Last Updated: 07 February 2024
In Java, HashTable is a pre-defined class of the collection framework. It is a part of the java.util package and is used to store the key-value pairs in the program. In th...
read more
Java
Java Programs
Picked
Java - util package
HashTable
Java-HashTable
Java Examples
How to Convert a HashTable to Other Collections Types in Java?
Last Updated: 12 February 2024
In Java, a Hashtable is a data structure that stores the data in the form of key and value pairs. And each key is mapped to a specific value. It implements the Map interfa...
read more
Java
Java Programs
Picked
HashTable
Java-HashTable
Java Examples
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
C++
loop
HashTable
Hash
1
2
3
4
5
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 !