Watch tutorials and explanations by expert teachers that walk through solving this problem.
leetcode blind 75
Ashutosh Pathak
Code Thoughts
ExpertFunda
Leetcode and Interview Question
Abhiyanta
LetsCode
Anirudh Ramesh
Solve more problems to master this pattern