Watch tutorials and explanations by expert teachers that walk through solving this problem.
LeetcodeDailyGrind
LeetCore
Amit Choraria
LetsCode
code7you
CodeCracker
hornclause
DKodeTree
The learning rabidness
Solve more problems to master this pattern