whats wrong in my code,wrong answer it says
1 count-sliding window concept
Your implementation is correct. However the question needs you to print the length of the longest window first and then the array itself. So just put a cout statement and print ‘bestWindow’ variable before the array and your code works fine.
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.