Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Two Pointer Techniques #315

Open
nikhilshukla07 opened this issue Oct 16, 2020 · 1 comment
Open

Two Pointer Techniques #315

nikhilshukla07 opened this issue Oct 16, 2020 · 1 comment

Comments

@nikhilshukla07
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant