Help me out in this problem

@mr.encoder i didnot get the logic bro can you explain me ?

@mr.encoder bro are u there ?

Hey @shivammishra20121999 where did you missed getting the logic?

@mr.encoder i was applying different logic?

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.

@mr.encoder
sorry bro i forget i will do it now