← Back
00:00

Shortest Substring with N Unique Characters

Microsoft interview questions · Medium · Coding round · 6 tests

Find the shortest substring containing exactly N distinct characters, breaking ties by earliest start.

The full question, tests and reference solution are available with a plan that includes Microsoft.

Idle