Greeting,
I tried to solve this problem a year ago and i couldn't understand what's wrong with my submission and when i tried to solve it again now i couldn't get that edge case by my self again.
Can anyone tell me what's wrong with trying every possible segment with length k?
And i really tried the last submission was from 2019.
or maybe i didn't understand the problem correctly?
My submission. Thanks for your time.