Shortest Substring with N Unique Characters
Meta interview questions · Medium · Coding round · 6 tests
Find the smallest substring containing exactly N distinct characters.
The full question, tests and reference solution are available with a plan that includes Meta.
Run your code with Ctrl+Enter to see results.