## Find if k bookings possible with given arrival and departure times

A hotel manager has to process N advance bookings of rooms for the next season. His hotel has K rooms. Bookings contain an arrival date… Read More »

- Sorting in Java
- Elements that occurred only once in the array
- Sort elements by frequency | Set 5 (using Java Map)
- Quick Sort vs Merge Sort
- Python list sort()
- Print the nodes of binary tree as they become the leaf node
- Sort first k values in ascending order and remaining n-k values in descending order
- In-Place Algorithm
- Sort only non-prime numbers of an array in increasing order
- Merge Sort with O(1) extra space merge and O(n lg n) time
- Number of elements greater than K in the range L to R using Fenwick Tree (Offline queries)
- Check if it is possible to sort the array after rotating it
- Maximum Sum of Products of Two Arrays
- Sort first half in ascending and second half in descending order | Set 2
- Print array elements in alternatively increasing and decreasing order
- Sort a nearly sorted array using STL
- Maximise the number of toys that can be purchased with amount K
- Stable QuickSort
- Number of anomalies in an array
- Count number of triplets with product equal to given number | Set 2
- Find the largest number that can be formed with the given digits
- Minimum Increment / decrement to make array elements equal
- Water drop problem
- Find a point such that sum of the Manhattan distances is minimized
- Number of paths from source to destination in a directed acyclic graph
- Check if array can be sorted with one swap
- Sort an array of pairs using Java Pair and Comparator
- Count number of triplets in an array having sum in the range [a, b]
- Find closest value for every element in array
- Minimum increment in the sides required to get non-negative area of a triangle

A hotel manager has to process N advance bookings of rooms for the next season. His hotel has K rooms. Bookings contain an arrival date… Read More »

Given an array A[] of n elements and an integer k. The task is to find the number of triplet (x, y, k), where 0… Read More »

Given two arrays among which one is almost sorted with one element being in the wrong position making the array unsorted, the task is to… Read More »

Given 2 input stacks with elements in an unsorted manner. Problem is to merge them into a new final stack, such that the elements become… Read More »

Given an array, task is to compute the sum of all possible maximum area rectangle which can be formed from the array elements. Also, you… Read More »

Problem – Write an assembly language program in 8086 microprocessor to sort a given array of n numbers using Selection Sort. Assumptions – The number… Read More »

Given two arrays with size n, maximize the first array by using the elements from the second array such that the new array formed contains… Read More »

Given an array of integers, segregate even and odd numbers in the array. All the even numbers should be present first, and then the odd… Read More »

Given an array of positive distinct integers. We need to find the only element whose replacement with any other value makes array elements distinct consecutive.… Read More »

Given a Queue consisting of first n natural numbers (in random order). The task is to check whether the given Queue elements can be arranged… Read More »

Given two arrays of same size, we need to convert the first array into another with minimum operations. In an operation, we can either increment… Read More »

An interval is represented as a combination of start time and end time. Given a set of intervals, we need to write a program to… Read More »

Given an array of even number of elements, form groups of 2 using these array elements such that the difference between the group with highest… Read More »

Given an array a, we have to find minimum product possible with the subset of elements present in the array. The minimum product can be… Read More »