EquipmentShare Interview Question

Classic jump game problem - greedy and dynamic programming required.