Concept Flow - Two Pointer Technique on Arrays
Initialize two pointers: left=0, right=end
Check condition: left < right?
No→Stop
Yes
Compare or process elements at left and right
Move pointers: left++ or right-- or both
↩Back to condition check
Start with two pointers at array ends, compare or process elements, move pointers inward until they meet or cross.