Watch tutorials and explanations by expert teachers that walk through solving this problem.
Code-Yao
Programming Live with Larry
Algorithms Casts
Lit Code
CodeMeThere
Tim Huang
iCode
Only Code
Solve more problems to master this pattern