INPUT= 123456 (I’m taking sample case of my own)
So, in this question we first process k elements separately
by using ’ i ’ as our iteration variable so our window is (123) for k=3. I completely understood this part but when we process next window we are simply skipping initialization of ’ i ’ in loop (line number 29). And, now our window will be from (345) right?? because we processed first k elements separately but don’t you think we should first process (234) because that way we are incrementing our window by 1. I hope I made myself clear!