Given N tasks each with a cost and a reward, and starting money M, choose an order to run tasks (paying cost first, then gaining reward) that maximizes the final money.
Medium6GreedySortingImplementationIntervalsInterviewNo attempts yetTime limit2sMemory limit512 MB