## Recursive Selection Sort

The Selection Sort algorithm sorts maintains two parts. First part that is already sorted Second part that is yet to be sorted. The algorithm works… Read More »

## Count pairs from two sorted arrays whose sum is equal to a given value x

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 »

## Bubble sort using two Stacks

Prerequisite : Bubble Sort Write a function that sort an array of integers using stacks and also uses bubble sort paradigm. Recommended: Please try your… Read More »

## Check whether a given array is a k sorted array or not

Given an array of n distinct elements. Check whether the given array is a k sorted array or not. A k sorted array is an… Read More »

## Maximizing Unique Pairs from two arrays

Given two arrays of equal size N, form maximum number of pairs by using their elements, one from the first array and second from the… Read More »

## Find shortest unique prefix for every word in a given list | Set 2 (Using Sorting)

Given an array of words, find all shortest unique prefixes to represent each word in the given array. Assume that no word is a prefix… Read More »

## Longest Common Prefix using Sorting

Problem Statement: Given a set of strings, find the longest common prefix. Examples: Input: {“geeksforgeeks”, “geeks”, “geek”, “geezer”} Output: “gee” Input: {“apple”, “ape”, “april”} Output:… Read More »

## Union and Intersection of two linked lists | Set-3 (Hashing)

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 »

## Sum of minimum absolute difference of each array element

Given an array of n distinct integers. The problem is to find the sum of minimum absolute difference of each array element. For an element… Read More »

## Union and Intersection of two linked lists | Set-2 (Using Merge Sort)

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 »

## Find the minimum and maximum amount to buy all N candies

In a candy store there are N different types of candies available and the prices of all the N different types of candies are provided.… Read More »

## Program to sort an array of strings using Selection Sort

Given an array of strings, sort the array using Selection Sort. Examples: Input : paper true soap floppy flower Output : floppy, flower, paper, soap,… Read More »

## Bead Sort | A Natural Sorting Algorithm

Also known as Gravity sort, this algorithm was inspired from natural phenomenons and was designed keeping in mind objects(or beads) falling under the influence of… Read More »

## Delete consecutive same words in a sequence

Given a sequence of n strings, the task is to check if any two similar words come together then they destroy each other then print… Read More »

## Paytm Interview Experience | Set 14 (For Senior android Developer)

Senior android Developer Coding Round: 1. https://www.geeksforgeeks.org/print-a-given-matrix-in-spiral-form/ 2. Longest Increasing Subsequence https://www.geeksforgeeks.org/dynamic-programming-set-3-longest-increasing-subsequence/ First Round: 1. find “longest line” of 1’s in array. Hoizontal and Vertical.… Read More »