~/boss / monster-parade

Sliding window

The Monster Parade

Catch the longest run with no monster twice.

Loading the fight…

How to beat it

Stretch the window right one monster at a time. The moment a repeat walks in, shrink from the left until the old copy leaves. Each monster enters once and leaves once.

Now the real boss

Interviews ask for the code. Watch it run, then write it yourself, tested in Python, C++ or Java.

On your phone? Writing code is easier on a laptop: open bossfight.dev/problems/longest-substring-without-repeating-characters there. Sign in with GitHub to keep your progress on every device.

More bosses

esc