Delete and earn
Taking a value x from the array earns x points but deletes every x - 1 and x + 1. Return the most points you can earn. Explain how this reduces to the house robber recurrence over values.
No answer yet. Write the first one; the best answer gets endorsed.
