Watch tutorials and explanations by expert teachers that walk through solving this problem.
luckyleeds
Raymond Chen
Chethan
Shally Jindal
road to enlightenment
Solve more problems to master this pattern