Sail E0 Webinar
Question
Which data structure can be used to test a palindrome?
Options:
A .  Tree
B .  Heap
C .  Stack
D .  Priority queue
Answer: Option C


Stack is a convenient option as it involves pushing and popping of characters.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers