Sanket bhaiya had discussed the problem

Could anyone let me know how this reset algorithm is designed which Sanket bhaiya is used .Sanket bhaiya directly implements but doesn’t explains how algorithm is developed . Dry run anyone can do.

@rssrivastavarohan,
Can you give me an example of any resource for any algorithm, that tells you how it was “developed”. Even research papers, by which a algorithm comes into popular existence, don’t explain “how it was developed”. Because in algorithm, there isn’t any way to do it. It is just someones, intuition, and intuition, can’t be comprehensive.

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.