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
22.8K+ articles
Java
10.8K+ articles
Misc
8.8K+ articles
Mathematical
7.8K+ articles
Arrays
6.5K+ articles
Java - util package
1.6K+ articles
Hash
1.3K+ articles
Java-Collections
1.1K+ articles
frequency-counting
745+ articles
Java-HashMap
159+ posts
Recent Articles
Popular Articles
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, one child, or no child, the t...
read more
Tree
DSA
Trees
Binary Tree
Java-HashMap
Map
Minimizing Operations to Prevent Palindrome Formation
Last Updated: 27 November 2023
Given a string S of length N (N = 2). You can choose any index and replace the character at that index with any other character of your choice any number of times, then th...
read more
Hash
Geeks Premier League
DSA
Greedy Algorithms
Java-HashMap
Map
Geeks Premier League 2023
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
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 period which is the average time to...
read more
Mathematical
DSA
Goldman Sachs
math
cpp-unordered_map
Java-HashMap
python-map
Map
Java Program to Check Strings Anagram Using HashMap
Last Updated: 30 December 2023
Java Program to check whether two given strings are anagrams of each other or not using HashMap.What is an Anagram?A string is an anagram of another string if it contains ...
read more
Java
Java Programs
Picked
Geeks Premier League
Java-Collections
Java-Strings
Java-HashMap
Java-String-Programs
Geeks Premier League 2023
Minimum number of operations required to vanish all elements
Last Updated: 24 November 2023
Given an array A[] length N along with an integer K. Select a subarray of size K and replace all elements with X (Cross), which has a minimum value in that subarray. Then ...
read more
Greedy
Geeks Premier League
DSA
Java-ArrayList
Java-HashMap
Geeks Premier League 2023
Maximum Balanced Subsequence Score
Last Updated: 23 July 2024
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
Check if it is possible to make all strings of A[] equal to B[] using given operations
Last Updated: 11 January 2024
Consider two arrays, A[] and B[], each containing N strings. These strings are composed solely of digits ranging from 0 to 9. Then your task is to output YES or NO, by fol...
read more
Geeks Premier League
DSA
Arrays
Java-HashMap
frequency-counting
Geeks Premier League 2023
Converting Integer-String HashMap to String-Array-Integer HashMap in Java
Last Updated: 29 December 2023
Efficient Conversion of a HashMapInteger, String into another HashMapString, Integer[] involves organizing integer keys based on their corresponding string values. Here's ...
read more
Java
Java Programs
Java-Collections
Java-Strings
Java-Class and Object
Java-HashMap
How does HashMap forEach() Method Work in Java 8?
Last Updated: 14 February 2024
The HashMap is a part of collections in the java.util package. The HashMap in Java stores the data in the form of a key-value pair. The HashMap takes the generic parameter...
read more
Java
Java Programs
Picked
Java-HashMap
Java 8
Java Examples
Create Thread-safe HashMap Without Using Collections.synchronizedMap in Java
Last Updated: 31 January 2024
The HashMap class in Java is a commonly used data structure for storing key-value pairs. While HashMap provides fast and efficient operations, it is not inherently thread-...
read more
Java
Java Programs
Picked
Java-HashMap
Java Examples
How to Implement a Custom Hash function for Keys in a HashMap in Java?
Last Updated: 29 February 2024
In Java, HashMap is the data structure that implements the Map interface. This is used to save the data in the form of key-value pairs. In this article, we will learn how ...
read more
Java
Java Programs
Picked
Java-HashMap
Java Examples
How to Retrieve a Specific Value From a HashMap Using Key?
Last Updated: 09 February 2024
A HashMap is a data structure that implements a map interface in Java. It stores key-value pairs. On the key object's hashcode, it uses a hashing function for computing an...
read more
Java
Java Programs
Picked
Java-Collections
Java-HashMap
Java Examples
Java Collection Exercise
Last Updated: 12 March 2024
The Java Collection framework is a fundamental part of the Java programming language, It covers a major part of Java and acts as a prerequisite for many Advanced Java Topi...
read more
Java
Java Programs
Java-Collections
Java-ArrayList
Java-HashMap
java-priority-queue
java-hashset
java-set
java-queue
java-map
Java-Collection-Programs
How does HashMap handle resizing when it reaches its capacity in Java?
Last Updated: 12 March 2024
The capacity of a HashMap simply doubles when it reaches a certain threshold. The threshold depends on the initial capacity and the load factor of the HashMap. Consider Ca...
read more
Java
Java Programs
Picked
Java-HashMap
Java Examples
1
2
3
4
...
11
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 !