1Sort the array first if it is not already sorted — Two Pointers only works correctly on sorted data.
2For in-place removal, use a write pointer (slow) and a read pointer (fast): copy valid elements to the write position.
3For triple sum, fix one element with a loop, then run Two Pointers on the remaining subarray.
4When both pointers meet, you've exhausted all possibilities — this is the termination condition.