Question 1 - Given array of latencies[], sort them in bucket ranges.
ranges - 0-9, 10-19, 20-29, 30-39, 40-49,50-59, 60-69, 70-79, 80-89, 90-99, 100>=
Input: latencies[6,7,50, 100,110]
output:
0-9 - 2
50-59 - 1
100 - 2
Question 2: Given root directory find the total sizes for the files in the sub-directories.
I completed first question. Question 2 - I explained the algo, but ran out of time during the implementation. Totally you will have 40 mins to solve 2 problems, use it wisely. Happy coding!
Verdict - Reject.