Compass Interview Question

Questions on dynamic programming and greedy algorithms