## Non-Repeating Element

Find the first non-repeating element in a given array of integers. Examples: Input : -1 2 -1 3 2 Output : 3 Explanation : The… Read More »

Find the first non-repeating element in a given array of integers. Examples: Input : -1 2 -1 3 2 Output : 3 Explanation : The… Read More »

Given an array of size N and a Linked List where elements will be from the array but can also be duplicated, sort the linked… Read More »

We are given an array arr[] of size n. Numbers are from 1 to (n-1) in random order. The array has only one repetitive element.… Read More »

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 »

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 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 »