← Back to Difficulty Selection
Code Review (Easy): Smart CLI Suggestions
Story
Lena noticed that developers using the ReviewThat internal CLI often made small typos, leading to frustrating error messages. Mark suggested she build a helper to suggest the closest existing command by calculating the fewest number of steps—like adding a letter, removing one, or swapping it—to turn the typo into the correct word. For example, if a developer mistakenly types 'inteniton' instead of 'intention', the tool should determine exactly how many individual changes are required to fix it. This logic will help the platform provide helpful suggestions rather than just failing when a user makes a simple mistake.
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: Mapping Event Spans