Question DSA-TP-0032
EasyWhen checking whether 'madam' is a palindrome with two pointers, which characters are compared first?
- A.
The last two
- B.
The first two
- C.
The middle one with itself
- D.
The first and the last
Sign up free to see the answer and a step-by-step explanation.