Problems
Hashmaps are generally used when we want to store key-value pairs, where keys are unique values. Key and values can be of any datatype. They are most often used when we want to store frequencies. Let's practice some problems related to Hashmaps.
Binary Subarrays with sum
By Husen Kagdi
● Published At Feb 2022
In this blog, we will discuss a Leetcode Medium problem namely, Binary subarrays with sum. ... Keep reading ..
LRU Cache Implementation
By vaishnavi pandey
● Published At Oct 2021
In this article, we’ll be seeing the implementation of the LRU cache. LRU is an important data structure.... Keep reading ..
Asteroid Collision
By Pranchal Agrahari
● Published At Oct 2021
This article will discuss a popular interview question, “Asteroid Collision,” with algorithm and code in C++. ... Keep reading ..
Count Number of Subarrays with Sum K
By Aanchal Tiwari
● Published At Oct 2021
This article discuss the problem Subarray sum where we have to count the number of subarrays with sum K.... Keep reading ..
Reduce Array Size to The Half
By Soumya Agrawal
● Published At Nov 2021
In this blog, we will discuss this problem in which we have to find the frequency.... Keep reading ..
Minimum operations to choose Array elements with sum as K by choosing an element from the front, or rear or both
By Urwashi Priya
● Published At Dec 2021
This article will brief you on the problem to calculate Minimum operations to choose Array elements with sum as K by choosing an element from the front, or rear or both ... Keep reading ..
Length Of All Prefixes That Are Also The Suffixes Of The Given String
By Rhythm Jain
● Published At Nov 2021
This article discusses the problem of finding the length of all prefixes that are also the suffixes of the string given.... Keep reading ..
Online Election
By Soumya Agrawal
● Published At Nov 2021
In this blog, we will discuss the problem of finding out the persons leading in the election.... Keep reading ..
Find the highest frequency of non-negative powers that are the same as indices of elements in the given array
By Shreya Deep
● Published At Dec 2021
In this article, we will learn how to find the frequency of the power which occurs highest times if we write the number present at an index of an array as some power of that index.... Keep reading ..
Longest Substring Without Repeating Characters
By Sandeep kamila
● Published At Nov 2021
This article covers the different approaches and Implementations in C++ for the Longest Substring Without Repeating Characters.... Keep reading ..
The K Weakest Rows in a Matrix
By Malay Gain
● Published At Dec 2021
In this article, we will learn how to solve the problem, K Weakest Rows in a Matrix.... Keep reading ..
Count the Triplets
By Sandeep kamila
● Published At Nov 2021
This article covers the approach and implementation of the problem Count the Triplets in C++.... Keep reading ..
Kth Distinct String in an Array
By Saksham Gupta
● Published At Jan 2022
In this blog, we will discuss one of the beginner level problems asked on the topic of Hashmap, i.e., Kth Distinct String in an Array ... Keep reading ..
Stone Game VI
By Firdausia Fatima
● Published At Dec 2021
In this blog, we’ll see how to solve the famous problem of Stone Game VI by brute force, sorting, and multimap.... Keep reading ..
Permutation in String
By aniket verma
● Published At Nov 2021
This article will brief you on how we can solve the problem of Permutation in String.... Keep reading ..
Find All Duplicates in an Array
By Urwashi Priya
● Published At Nov 2021
This article will brief you on the problem of finding all duplicates in an array ... Keep reading ..
Longest Consecutive Sequence
By Reet Maggo
● Published At Nov 2021
This article will explain the Longest Consecutive Sequence problems using various approaches and examples. This article uses code snippets for all three techniques, further discussing the time and space complexity for each of them. ... Keep reading ..
N Repeated Elements in Size 2N
By Firdausia Fatima
● Published At Dec 2021
In this blog, we’ll solve the problem ‘N Repeated Elements in Size 2N’ by using a map, set, and compare.... Keep reading ..
Custom Sort String
By Saksham Gupta
● Published At Dec 2021
In this blog, we will discuss one of the famous and important questions from the interview perspective, i.e., Custom Sort String. ... Keep reading ..
Winner of Tic-Tac-Toe
By Raksha Jain
● Published At Feb 2022
The blog discusses in detail the ”Winner of Tic-tac-toe” problem. We’ll discuss the approach to solve the problem along with its time and space complexity.... Keep reading ..