Search
⌘K

Leetcode 1100. Find K-Length Substrings With No Repeated Characters

Given a string s and integer k, return all (distinct) length-k substrings that contain no repeated characters. This is solved by a sliding-window with a character count or set to maintain uniqueness and efficiently collect valid substrings.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.