2. Pattern: Two Pointers
1. One pointer at each end
2. Different Paces
Last updated
1. One pointer at each end
2. Different Paces
Last updated
One pointer starts from beginning and other from the end and they proceed towards each other
Both pointers start from the beginning but one pointer moves at a faster pace than the other one.