Find the maximum score possible when jumping on rocks from index 0 to the end, where jumping from index n to any index in the range [n+1, n+L] is allowed, and each rock has an associated score.
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.