Watch tutorials and explanations by expert teachers that walk through solving this problem.
Algorithms Casts
Elite Code
Coding Mantra
Tony Teaches
Think-Twice-Code-Once
Algorithm Problem
Sleepy Cracker
SnappyCipher
ExtremeProgrammer
Solve more problems to master this pattern