Two Pointers

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

Resources

Concepts explained here are following those from Neetcode’s roadmap

.


Written By

GitHub Contributor Team