## Find common elements in three linked lists

Given three linked lists, find all common element among the three linked lists. Examples: Input : 10 15 20 25 12 10 12 13 15… Read More »

- Sorting a Map by value in C++ STL
- Real-time application of Data Structures
- Check if sum of Fibonacci elements in an Array is a Fibonacci number or not
- Check if given words are present in a string
- Count of subarrays having exactly K perfect square numbers
- Kth most frequent Character in a given String
- Count of substrings of length K with exactly K distinct characters
- LRU Cache in Python using OrderedDict
- Count triplets such that sum of any two number is equal to third | Set 2
- CamelCase Pattern Matching
- Length of the smallest substring which contains all vowels
- Longest permutation subsequence in a given array
- Remove odd frequency characters from the string
- Check if an Array is a permutation of numbers from 1 to N
- Quadratic Probing in Hashing
- Count of greater elements for each element in the Array
- Longest increasing sub-sequence formed by concatenating array to itself N times
- Smallest subarray from a given Array with sum greater than or equal to K
- Find k most frequent in linear time
- Count triplets in an array such that i<j<k and a[j] - a[i] = a[k] - a[j] = D
- Sum of prime numbers in range [L, R] from given Array for Q queries
- Minimum number of Water to Land conversion to make two islands connected in a Grid
- Count the elements having frequency equals to its value
- Program to implement Separate Chaining in C++ STL without the use of pointers
- Count of subarrays whose sum is a perfect square
- Count distinct substrings of a string using Rabin Karp algorithm
- Maximum sum subarray having sum less than or equal to given sum using Set
- Lexicographical smallest number after at most K consecutive swaps
- Shortest subarray to be removed to make all Array elements unique
- C++ program to check whether a String is a Pangram or not

Given three linked lists, find all common element among the three linked lists. Examples: Input : 10 15 20 25 12 10 12 13 15… Read More »

Given an array, find the most frequent element in it. If there are multiple elements that appear maximum number of times, print any one of… Read More »

Given a sorted array of distinct positive integers, print all triplets that form AP (or Arithmetic Progression) Examples : Input : arr[] = { 2,… Read More »

This was a drive for SDE-1 and SDE-2 . HackerRank Round: This was an one hour test with two questions on hackerrank platform Given a… Read More »

Given inorder and level-order traversals of a Binary Tree, construct the Binary Tree. Following is an example to illustrate the problem. Examples: Input: Two arrays… Read More »

Double hashing is a collision resolving technique in Open Addressed Hash tables. Double hashing uses the idea of applying a second hash function to key… Read More »

In hashing there is a hash function that maps keys to some values. But these hashing function may lead to collision that is two or… Read More »

In this article, we will discuss the types of questions based on hashing. Before understanding this, you should have idea about hashing, hash function, open… Read More »

Given a sentence in the form of a string, convert it into its equivalent mobile numeric keypad sequence. Examples : Input : GEEKSFORGEEKS Output :… Read More »

Given two sorted matrices mat1 and mat2 of size n x n of distinct elements. Given a value x. The problem is to count all… Read More »

Given a string containing alphabets in lowercase and uppercase, find the maximum count of distinct lowercase alphabets present between two uppercase alphabets. Examples : Input… Read More »

Given a linked list, find majority element. An element is called Majority element if it appears more than or equal to n/2 times where n… Read More »

Given a linked list, and a number, check if their exist two numbers whose sum is equal to given number. If there exist two numbers,… Read More »

Given an array, find elements which appears prime number of times in the array with minimum k frequency (frequency >= k). Examples : Input :… Read More »

Given two lists list1 and list2 containing m and n items respectively. Each item is associated with two fields: name and price. The problem is… Read More »