Delete and earn

0
Remix

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.

MicrosoftOnline assessmentLast asked Aug 2026
No answer yet. Write the first one; the best answer gets endorsed.