In this problem, after watching the hint, I am able to find the max length using the 2 pointer approach, but how should I make changes in the array as we are required to display the final array.
1 Count problem, change in array
store starting position of the subarray
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.