https://github.com/felipeaz/two-pointers
Two Pointers is a pattern used to solve problems with sorted arrays to find a set of elements
https://github.com/felipeaz/two-pointers
Last synced: 3 months ago
JSON representation
Two Pointers is a pattern used to solve problems with sorted arrays to find a set of elements
- Host: GitHub
- URL: https://github.com/felipeaz/two-pointers
- Owner: felipeaz
- Created: 2023-11-21T12:57:12.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-11-22T17:39:27.000Z (over 1 year ago)
- Last Synced: 2025-01-07T05:22:01.041Z (4 months ago)
- Language: Go
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# two-pointers
Two Pointers is a pattern used to solve problems with sorted arrays to find a set of elementsWhen to use the Two Pointer method:
- Problems where you deal with sorted arrays and need to find a set of elements
- The set of elements in the array is a pair, a triplet, or even a subarrayProblems that feature the Two Pointer pattern:
- Squaring a sorted array
- Triplets that sum to zero
- Comparing strings that contain backspaces