Search
⌘K

Leetcode 3325. Count Substrings With K-Frequency Characters I

Count the number of substrings of s that contain at least one character appearing at least k times. The core challenge is to efficiently enumerate/count such substrings using frequency tracking over substrings (n ≤ 3000, lowercase letters) rather than repeatedly rescanning.


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.