what is the meaning of q.front( )<=i-k ?
Stack-Maximum element In Every Window K Implementation
@itsexp_2302 can you elaborate what did you not understand? The syntax or the significance of this statement?
significance of the statement
Hi @itsexp_2302 we are moving our window by popping those elements which are no longer in the scope of our window. You can take an example input and do a dry run to better understand what is happening.
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.