Cant undertsand how to code longest-k-character substring

finding code to as very complicated of longest k character substring

@sethyamir5 first try to code brute force i.e generate all substring and then find max size
then try coding with sliding window concept u can read this to get the intution if u dont know https://www.geeksforgeeks.org/window-sliding-technique/

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.