## Find the number of elements greater than k in a sorted array

Given a sorted array arr[] of integers and an integer k, the task is to find the count of elements in the array which are… Read More »

- Count distinct elements in an array
- Print the nodes of binary tree as they become the leaf node
- Rearrange Odd and Even values in Alternate Fashion in Ascending Order
- In-Place Merge Sort
- Sort the array of strings according to alphabetical order defined by another string
- Merge K sorted arrays | Set 3 ( Using Divide and Conquer Approach )
- Ternary Search
- Number of pairs whose sum is a power of 2
- Amazon Internship Interview Experience
- k-th missing element in an unsorted array
- Nagarro Interview Experience Off-campus
- Merge K sorted arrays of different sizes | ( Divide and Conquer Approach )
- Check if array can be sorted with one swap
- Smallest subarray containing minimum and maximum values
- Find closest value for every element in array
- Sort the array in a given index range
- Maximum sum by picking elements from two arrays in order
- Sort an array of string of dates in ascending order
- Python | Sort list of list by specified index
- Array element with minimum sum of absolute differences
- Split the array elements into strictly increasing and decreasing sequence
- Comparison among Bubble Sort, Selection Sort and Insertion Sort
- Average of remaining elements after removing K largest and K smallest elements from array
- Find the minimum number of rectangles left after inserting one into another
- Delete odd and even numbers at alternate step such that sum of remaining elements is minimized
- Iterative selection sort for linked list
- Minimum operations to make frequency of all characters equal K
- Check if words are sorted according to new order of alphabets
- Minimum operations of given type to make all elements of a matrix equal
- Make palindromic string non-palindromic by rearranging its letters

Given a sorted array arr[] of integers and an integer k, the task is to find the count of elements in the array which are… Read More »

Given a linked list, the task is to sort the linked list in ascending order by using selection sort. Examples: Input : 1->4->2->2->3 Output :… Read More »

Given string str. The task is to check if the string contains consecutive letters and each letter occurs exactly once. Examples: Input: str = “fced”… Read More »

Given an array arr[] of integer elements, the task is to arrange them in such a way that these numbers form the smallest possible number.… Read More »

Given an array arr[] containing GCD of every possible pair of elements of another array. The task is to find the original numbers which are… Read More »

1. Bubble Sort Bubble sort repeatedly compares and swaps(if needed) adjacent elements in every pass. In i-th pass of Bubble Sort (ascending order), last (i-1)… Read More »

Round 1:Online Test The coding round had two questions 1 was quite hard which was DP problem no one was able to solve it other… Read More »

Introsort(Introspective sort) is a comparison based sort that consists of three sorting phases. They are Quicksort, Heapsort, and Insertion sort. Basic concepts of Introsort and… Read More »

Given an integer array arr[], the task is to sort only those elements which are ugly numbers at their relative positions in the array (positions… Read More »

Given a set of N intervals, the task is to find the maximal set of mutually disjoint intervals. Two intervals [i, j] & [k, l]… Read More »

Given an array arr[] of N integers and an integer K. Also given are Q queries which have two numbers L and R. For every… Read More »

Given an array arr[] of N unique elements and Q queries. Every query consists of two integers L and R. The task is to print… Read More »

Given an array arr[] of N elements and an integer K where K < N. The task is to insert K integer elements to the… Read More »

Given an array arr[] and an integer K. The task is to sort the elements that are in between any two multiples of K. Examples:… Read More »

Given a set of N points in 2-D plane. The task is to find the minimum value of M such that a square centred at… Read More »