##
Hash Table vs STL Map
July 13, 2017

This article focus on : Compare and contrast Hash table and an STL Map. How is the hash table implemented? If the number of inputs… Read More »

July 13, 2017

This article focus on : Compare and contrast Hash table and an STL Map. How is the hash table implemented? If the number of inputs… Read More »

July 6, 2017

Given an array and a sum value, find all possible unique triplets in that array whose sum is equal to the given sum value. If… Read More »

July 5, 2017

Given a string of lowercase letters. Find minimum characters to be inserted in string so that it can become palindrome. We can change positions of… Read More »

Given an array of integers, Check if there exist four elements at different indexes in the array whose sum is equal to a given value… Read More »

July 4, 2017

Given four sorted arrays each of size n of distinct elements. Given a value x. The problem is to count all quadruples(group of four numbers)… Read More »

July 3, 2017

Given two linked lists(can be sorted or unsorted) of size n1 and n2 of distinct elements. Given a value x. The problem is to count… Read More »

July 2, 2017

Given a set of n nuts of different sizes and n bolts of different sizes. There is a one-one mapping between nuts and bolts. Match… Read More »

Given an array of distinct integers(considering only positive numbers) and a number ‘m’, find the number of triplets with product equal to ‘m’. Examples: Input… Read More »

June 30, 2017

Given a sequence of strings, the task is to find out the second most repeated (or frequent) string in the given sequence.(Considering no two words… Read More »

June 27, 2017

Given an array of n numbers and a positive integer k. The problem is to find k numbers with most occurrences, i.e., the top k… Read More »

June 25, 2017

Given an array with distinct elements, the task is to find the pairs in the array such that a % b = k, where k… Read More »

June 23, 2017

Given two sorted arrays of size m and n of distinct elements. Given a value x. The problem is to count all pairs from both… Read More »

June 21, 2017

Given an array of n integers. Count total number of sub-array having total distinct elements same as that of total distinct elements of original array.… Read More »

June 15, 2017

Given two Linked Lists, create union and intersection lists that contain union and intersection of the elements present in the given lists. Order of elements… Read More »

June 5, 2017

Given a n x n matrix. The problem is to find all the distinct elements common to all rows of the matrix. The elements can… Read More »