plz check what is the problem in the code. https://ide.codingblocks.com/s/225499
hello @Akshita99
this line should be
while(!deq.empty() && deq.front() <= i-k )