These were the 2 questions that was asked:
- Input: A 2-D array with name and their score, there can be multiple scores for the same student.
Output: return the max avg of all the students.
- Input: There is a Interval class with 3 arguments , startTime, endTime and price, you are given a list of Interval objects, something like : { {1,5,20}, {3,8,15}, {8,10, 8}}. You have to return a list of intervals with startTime, endTime and min privce for that interval.
Output should be : {{1,3,20}, {4,7,15},{8,10,8}
Time alloted was 1 hr.
Joined the call on phone.
Video was off.
I was able to do the first one, but couldn't come up with an efficient solution with a second one. I tried to solve it (in an inefficient way) , was halfway through but ran out of time. He said that he will send another coderpad, but haven't got anything yet. will update the post when I hear more.