In this article, we have explained the Two Pointer Technique/ algorithm in array which is used to solve a vast range of problems efficiently. Problems include Reversing an array and Find if a pair with given sum exists in a sorted array.
Table of contents:
Introduction to Two Pointer TechniqueExample Problem 1: Reverse an arrayExample Problem 2: Find if a pair with given sum exists in a sorted array
Let us get started with Two Pointer Technique.
Introduction to Two Pointer Technique
Two poin...
Published on September 06, 2021 22:38