please explain precisely and one please make it more understandable please show run it ad dfafafasffaffa.fafaaffa
ffafafafaffafa
I didnt get it a nd please explain thoroughley
Hi,
if the new element entering into the window is maximum then remove smaller elements from deque as they contribute nothing further, else add the element in deque as they may contribute further.
Also don’t forget to remove elements from deque which are not the part of window.
I hope this helps.
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.