Watch tutorials and explanations by expert teachers that walk through solving this problem.
Optimization
Programming Live with Larry
Code-Yao
vanAmsen
CodeVia
LetsCode
Think-Twice-Code-Once
Sleepy Cracker
Solve more problems to master this pattern