Skip to content

Tag Archives: cpp-unordered_map

Given a string S containing lowercase English alphabets of length N and an integer K such that K ≤ N. The task is to find… Read More
Given an integer K and an array arr[] consisting of N integers, the task is to find the length of the subarray of smallest possible… Read More
Given a string S consisting of lowercase English letters, the task is to find the length of the longest substring from the given string, having… Read More
Pre-requisite: unordered_set,  unordered_map  C++ provides std::unordered_set and std::unordered_map to be used as a hash set and hash map respectively. They perform insertion/deletion/access in constant average… Read More
Array: An array is a collection of items stored at contiguous memory locations. The idea is to store multiple items of the same type together.… Read More
Given a string str which has various HTML Entities in it, the task is to replace these entities with their corresponding special character. HTML entity… Read More
Given an array arr[], the task is to rearrange the array to generate maximum decreasing subsequences and print the count of the maximum number of… Read More
Given a very large number N in the form of a string and a number K, the task is to print all the K-digit repeating… Read More
Given a list of characters and an array of strings, find the total length of all strings in the array of strings that can be… Read More
Given a string str, the task is to find the frequency of each character of a string using an unordered_map in C++ STL. Examples:  Input:… Read More
Write a function to check whether two given strings are an Anagram of each other or not. An anagram of a string is another string… Read More
Given an array arr[] of size N. The task is to find X – Y for each of the element where X is the count… Read More
Given an unsorted array with both positive and negative elements including 0. The task is to find the smallest positive number missing from the array… Read More
Given an array of strings arr[] and two integers l and r, the task is to find the number of times the given string str… Read More

Start Your Coding Journey Now!