1 / 5
Two Pointers
Use two pointers to solve array problems
code
let left = 0, right = arr.length - 1;
while (left < right) {
// process
}