D. E. Shaw India interview question

One DSA question was on greedy algorithm in technical interview round