Here we don’t require repetitive comparison. We could restrict both pointers at when they meet each other (for odd length) or cross each other(even length).
Here we don’t require repetitive comparison. We could restrict both pointers at when they meet each other (for odd length) or cross each other(even length).