← UBS questions

Longest substring with at most K normal characters

Filed under UBS · Also reported at Gameskraft, SAP

The question

Find the length of the longest substring that contains at most K normal characters.

No write-up yet. Related questions below have one.

Related UBS questions

Collected from public candidate posts and coding forums. Updated Nov 2026.