Watch tutorials and explanations by expert teachers that walk through solving this problem.
NeetCode
NeetCode
Cracking FAANG
Programming Live with Larry
Coding Techniques with Komal | Newton School
Timothy H Chang
BinaryMagic
Prakhar Agrawal
Prasun kumar