Watch tutorials and explanations by expert teachers that walk through solving this problem.
AlgoJS
FLAGeek官方频道
Programming Live with Larry
Leetcode Daily
Dev God
Algorithms Casts
LetsCode
Solve more problems to master this pattern