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.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Two Pointers and Sliding Window question
When checking whether 'madam' is a palindrome with two pointers, which characters are compared first?
The last two
The first two
Sign up free to see the answer and a step-by-step explanation.
The middle one with itself
The first and the last