## Find winner of an election where votes are represented as candidate names

Given an array of names of candidates in an election. A candidate name in array represents a vote casted to the candidate. Print the name… Read More »

Given an array of names of candidates in an election. A candidate name in array represents a vote casted to the candidate. Print the name… Read More »

Given an array, find the difference between highest occurrence and least occurrence of any number in an array Examples: Input : arr[] = [7, 8,… Read More »

Given an array of n integers. The problem is to find maximum length of the subsequence with difference between adjacent elements in the subsequence as… Read More »

Given two arrays A[] and B[] consisting of n and m elements respectively. Find minimum number of elements to remove from each array such that… Read More »

Given an array of n positive integers that represent lengths. Find out the maximum possible area whose four sides are picked from given array. Note… Read More »

Print the elements of an array in the decreasing frequency if 2 numbers have same frequency then print the one which came first. Examples: Input… Read More »

Given an array with n positive integers. We need to find the minimum number of operation to make all elements equal. We can perform addition,… Read More »

We have been given a string in lowercase alphabets. We need to print substrings that contain all the vowels at-least one time and there are… Read More »

You are given a collection of strings and a list of queries. For every query there is a string given. We need to print the… Read More »

Two strings are given and you have to modify 1st string such that all the common characters of the 2nd strings have to be removed… Read More »

Given an array of size n, the goal is to find out the smallest number that is repeated exactly ‘k’ times where k > 0?… Read More »

Given a binary tree, find all duplicate subtrees. For each duplicate subtrees, we only need to return the root node of any one of them.… Read More »

Given an array of items, an i-th index element denotes the item id’s and given a number m, the task is to remove m elements… Read More »

Given two arrays A and B of equal number of elements. Task is to find the maximum sum possible of a window in array B… Read More »

Given an array of n numbers. Your task is to read numbers from the array and keep at-most K numbers at the top (According to… Read More »