Your question is String or Array Traversal. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
OfferUp can analyze listing titles to identify the longest segment containing no repeated characters. Given a string title, return the length of its longest substring with all distinct characters.
A substring must consist of consecutive characters. Characters are case-sensitive, so A and a are different.
title containing zero or more printable characters.def longest_unique_title_segment(title):