Hashmap And Heap
10 problems to practice.
K Largest Elements
1. You will be given an Array with its length 2. You will also be given an integral value k 3. Y...
Highest Frequency Character
1. You are given a string str. 2. You are required to find the character with maximum frequency.
Get Common Elements - 1
1. You are given a number n1, representing the size of array a1. 2. You are given n1 numbers, repre...
Get Common Elements - 2
1. You are given a number n1, representing the size of array a1. 2. You are given n1 numbers, repre...
Longest Consecutive Sequence Of Elements
1. You are given a number n, representing the size of array a. 2. You are given n numbers, represen...
Sort K-sorted Array
1. You are given a number n, representing the size of array a. 2. You are given n numbers, represen...
Median Priority Queue
1. You are required to complete the code of our MedianPriorityQueue class. The class should mimic th...
Merge K Sorted Lists
1. You are given a list of lists, where each list is sorted. 2. You are required to complete the bo...
Write Priority Queue Using Heap
1. You are required to complete the code of our Priority Queue class using the heap data structure....
Write Hashmap
1. You are required to complete the code of our Hashmap class. Please watch the question video caref...