## Find the minimum number of rectangles left after inserting one into another

Given width and height of N rectangles. The task is to find the minimum number of rectangles left after inserting one into another. Note :… 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
- Sort the array of strings according to alphabetical order defined by another string
- In-Place Merge Sort
- Ternary Search
- Number of pairs whose sum is a power of 2
- Merge K sorted arrays | Set 3 ( Using Divide and Conquer Approach )
- k-th missing element in an unsorted array
- Minimum Increment / decrement to make array elements equal
- Smallest subarray containing minimum and maximum values
- Nagarro Interview Experience Off-campus
- Amazon Internship Interview Experience
- Check if array can be sorted with one swap
- Find closest value for every element in array
- Check if it is possible to sort the array after rotating it
- Print array elements in alternatively increasing and decreasing order
- Internal details of std::sort() in C++
- Merge K sorted arrays of different sizes | ( Divide and Conquer Approach )
- Sort the array in a given index range
- Maximum sum by picking elements from two arrays in order
- Array element with minimum sum of absolute differences
- Sort only non-prime numbers of an array in increasing order
- Check if the characters of a given string are in alphabetical order
- Largest element in the array that is repeated exactly k times
- Sort an array of string of dates in ascending order
- Average of remaining elements after removing K largest and K smallest elements from array
- K-th lexicographically smallest unique substring of a given string
- Python | Sort list of list by specified index
- Split the array elements into strictly increasing and decreasing sequence

Given width and height of N rectangles. The task is to find the minimum number of rectangles left after inserting one into another. Note :… Read More »

Given a number N, the task is to find the largest number less than or equal to the given number N such that on rearranging… Read More »

Given an array A[] containing N elements and an integer K. The task is to calculate the product of all elements of subsequences of size… Read More »

Given two unsorted arrays arr1[] and arr2[], the task is to find the sum of elements of arr1[] such that number of elements less than… Read More »

Given two arrays x[] and y[] where x[i] represents the x coordinate and y[i] represents the corresponding y coordinate of a 2-D point, the task… Read More »

Given an array arr[] of N elements. At any step, we can delete a number of a different parity from the just previous step, i.e.,… Read More »

Given an array of N elements. The task is to split the elements into two arrays say a1[] and a2[] such that one contains strictly… Read More »

Given an array arr[] of N integers, the task is to select an integer x (which may or may not be present in the array)… Read More »

Given an array arr[] of N integers, the task is to sort the array using Shell-Metzner sort. Input: arr[] = {0, -2, 8, 5, 1}… Read More »

Given a singly linked list, sort it using bubble sort by swapping nodes. Example: Input: 10->30->20->5 Output: 5->10->20->30 Input: 20->4->3 Output: 3->4->20 Recommended: Please try… Read More »

Given an array arr[] of size n and q queries and an integer k. Each query consists of an index range [l, r] and the… Read More »

Given N – 1 differences between two consecutive elements of an array containing N numbers which are in range of 1 to N. The task… Read More »

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 »