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

bootcoder's blog

By bootcoder, history, 3 years ago, In English

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

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it