Hotel Bookings Possible Interviewbit SolutionA hotel manager has to process N advance bookings of rooms for the next season. His hotel has C rooms. Bookings contain an arrival date and
Wave Array Interviewbit SolutionGiven an array of integers, sort the array into a wave like array and return it, In other words, arrange the elements into a sequence such t
Noble Integer Interviewbit SolutionGiven an integer array A, find if an integer p exists in the array such that the number of integers greater than p in the array equals to p.
First Missing Integer Interviewbit SolutionGiven an unsorted integer array, find the first missing positive integer. Example: Given [1,2,0] return 3, [3,4,-1,1] return 2, [-8, -7, -6
Set Matrix Zeros Interviewbit SolutionGiven a matrix, A of size M x N of 0s and 1s. If an element is 0, set its entire row and column to 0. Note: This will be evaluated on the e
Maximum Consecutive Gap Interviewbit SolutionGiven an unsorted array, find the maximum difference between the successive elements in its sorted form. Try to solve it in linear time/spac
Find Duplicate in Array Interviewbit SolutionGiven a read only array of n + 1 integers between 1 and n, find one number that repeats in linear time using less than O(n) space and traver