← Back to Difficulty Selection
Code Review (Easy): Cleaning Up Breadcrumbs
Story
Lena was working on a small helper for the platform's breadcrumb navigation that extracts a clear sequence of characters from raw metadata strings. Mark suggested that to keep the UI clean, they should find the longest possible stretch of characters where no letter or symbol repeats. This ensures the display remains informative without becoming cluttered by redundant patterns. For instance, if a system log starts with the sequence "pwwkew", the tool should identify "wke" as the longest unique part to display.
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: Finding the Balance