What is Two Pointers?
- Two Pointers is a technique used to iterate through a data structure, usually an array or linked list
- These pointers perform tasks such as searching, sorting or finding specific patterns within the data
Related examples
- Read my solution to some LeetCode problems below
- Valid Palindrome
- Two Sum II - Input Array Is Sorted
- https://docs.google.com/document/d/1OiEYxC6jXoZMtXaA2dt_krmBJ3YsWWykUzuC_4D4DXg/edit?usp=sharing
Resources
Concepts explained here are following those from Neetcode’s roadmap
.