D. E. Shaw India interview question

2 coding questions based on greedy algorithms.