Watch tutorials and explanations by expert teachers that walk through solving this problem.
NeetCodeIO
Bradley Allen
AlgoCamp
Inside code
Fisher Coder
Kelvin Chandra
Programming Live with Larry
KG修罗场
Solve more problems to master this pattern