Watch tutorials and explanations by expert teachers that walk through solving this problem.
Algorithms Casts
Code-Yao
Leetcode Hindi
LetsCode
David Zhou
kgstrivers
atul tiwari
robzingcod
Solve more problems to master this pattern