Concept Flow - Remove Duplicates from Sorted Array Two Pointer
Start with two pointers
Pointer1 at index 0
Pointer2 at index 1
Compare elements at Pointer1 and Pointer2
Move Pointer2 forward
Repeat until Pointer2 reaches end
Return length = Pointer1 + 1
Use two pointers to scan the array. One pointer tracks unique elements, the other scans ahead to find new unique values to copy forward.
