solulubeta
Sign in
Story Problems / Dynamic programming
07.10 · Problem

The Pick-a-Number Game

Medium 1-D DP · convert to house robber Pro

This problem is part of solulu Pro

In a game you have a list of numbers. In one turn you pick a number x, earn x points, and every number equal to x − 1 or x + 1 in the list is destroyed. Picking a number lets you also pick any other copies of x later…

Lifetime ₹2,000 ₹1,000 · Beta offer
Mark this problem as solved when you are finished.

Item 84 of 94 · updated 2026-10-12