Ultimate_Algorithms_Repository icon indicating copy to clipboard operation
Ultimate_Algorithms_Repository copied to clipboard

Two Pointer Techniques

Open nikhilshukla07 opened this issue 5 years ago • 1 comments

Title or Name of the Algorithm

  • Two pointer algorithms

Describe the algorithm The two-pointer technique is a useful tool to utilize when searching for pairs in a sorted array. Although not it’s only use case, when used this technique can save both time and space complexity.

When iterating through data this usually implies a single starting point and movement through the data in one direction. However, as the two-pointer technique implies, there are two points of consideration and they both (usually) move towards the middle of the data being iterated over.

nikhilshukla07 avatar Oct 16 '20 14:10 nikhilshukla07

Please assign me this issue to work upon it will be very effective to include these kinds of algorithms in this cool repo.

nikhilshukla07 avatar Oct 16 '20 14:10 nikhilshukla07