← Back to Difficulty Selection
Code Review (Easy): Streamlining Milestone Transitions
Story
Lena is designing a helper for the internal roadmap tool that calculates the most efficient way to navigate through a sequence of project stages. Each stage provides a certain amount of momentum, allowing the team to skip over several upcoming steps at once. Eva reviewed the proposal and asked Lena to ensure the tool always finds the fewest number of moves needed to reach the final objective. For example, if the first stage allows a jump of up to two steps and the second stage allows a jump of up to three, the team could reach their goal in only two moves by landing on that second stage first.
Your Task
Read the story and code, then decide if the code is ready for production or needs improvement.
Hints
What would block an approval? Give me a hint.
Next
Check out Next Topic: Pipeline Momentum Check