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