# Two-Pointer

1 post

[EN] Two Pointer Algorithm

Overview The two pointer technique reduces a brute-force $O(N^2)$ pair search to $O(N)$ by maintaining two indices into an array and moving them …

← All tags