MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / two_pointer.py

File two_pointer.py

maths/two_pointer.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1"""
2Given a sorted array of integers, return indices of the two numbers such
3that they add up to a specific target using the two pointers technique.
4

Callers

nothing calls this directly

Calls 1

two_pointerFunction · 0.85

Tested by

no test coverage detected