The simplest two-pointer problem — converging from both ends toward the middle is a pattern used in many problems.
Enable JavaScript for the full StreamPrep guide.