Two pointers are used to scan in two directions during traversal, achieving the respective algorithmic goals.
Subscribe to our newsletter and we’ll send you the emails of latest posts.