D. E. Shaw India Interview Question

2 coding questions based on greedy algorithms.