Loading exercise...

Exercise: Consecutive Value Run

After solving Consecutive Value Run, explain what your stored state represents, how it avoids repeated work, and how duplicates affect your reasoning. Include an invariant and compare one alternative against the required time and space bounds. Use the efficiency review callout with the exercise to discuss your code, test feedback, and explanation.

Become a Member to join the conversation.