3325. Count Substrings With K-Frequency Characters I
Given a string
s
and an integerk
, return the total number of substrings ofs
where at least one character appears at leastk
times.A substring is a contiguous non-empty sequence of characters within a string.
c++
1 | class Solution { |