Please read the new rule regarding the restriction on the use of AI tools. ×

Question on substring

Revision en1, by bootcoder, 2021-08-21 15:33:11

There is a string s of length n , we have to find the maximum length x such that all substrings L of length x has at most k distinct characters.

constraint- n<=10^5

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English bootcoder 2021-08-21 15:33:11 196 Initial revision (published)