@mr.encoder i didnot get the logic bro can you explain me ?
Help me out in this problem
Try this video https://youtu.be/_JDpJXzTGbs, he has discussed the approach and you’ll get it for sure.
Have you read the solution of this problem on leetcode? Read it once and you will be cleared with the concept. Moreover if you have doubt you can ask me also.
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.