Pls revert back asap

Sir if k = 3 then first loop will compare only first 3 elements.
Second loop mai i must start from index 1 but in the code it is starting from index 2.
Sir the condition q.front()<=i-k; written pls tell the vedio is causing so much confusion

@Madhavendra-Gupta-2240591552663161
Please check this out


If you still have any doubts we can discuss it again

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.