1p3a_oj Question

Shortest Substring with N Unique Letters

Question Details

Given a string s and an integer n, find the shortest substring that contains exactly n unique letters. Input A string s with a length between 1 and 10^5. An integer n, which ranges from 1

Full Details

🔒

Unlock all Meta questions

Full insider details, leaked discussions, and candidate experiences.

or every company, $100/year →

About This Question

This is a reported interview question from a meta interview for a swe role during the coding round.

It covers the following topics: Strings .

Topics