“2 Pointers” Technique — You Must Know This For Coding Interviews

Liu Zuo Lin
Level Up Coding
Published in
4 min readMay 6, 2024

--

The 2 pointers technique is a technique that uses 2 pointers in some iterable (list/string) to achieve some goal. I’m writing this article because there is a pretty high chance you might need to use this in technical coding interviews.

1) Example 1: finding midpoint of linked list

--

--