Hackerrank: 1. Sort an array of numbers first by frequency and then by value in ascending order.
2. Find the maximum non-overlapping sequence. Given two arrays with start and end points, find the space which is not overlapping among them.
Interview questions:
1. You are given an array with 1 and 0. 1 means up and 0 means down, find the number of hills it will form.
2. Given an array of elements with 1 and 0, find the minimum path to reach the last 1. Constraint is you can move to only 1st or 2nd elements at a time from your current index.
3. Given an array of numbers, find the maximum numbers of consecutive elements which appears consecutively in the array. Ex : (1,2,4,5,6,11,12,13,14,15) - Answer is 5 (11,12,13,14,15)