Light Mode
Dark Mode
Longest substring requirement

It is not immediately clear that the task is to return the length of the longest substring, since the longest requirement is mentioned only in the example. One may return the length of the substring that occurs the most (for 'aghtfghkofgh' it is len('gh') = 2).

Not a big deal though.

Created: Jan. 17, 2020, 4:02 p.m.
Updated: Feb. 5, 2020, 6:23 a.m.
0
12
User avatar
evsistr