Computer Science · Data Structures
Sequence the given process for checking whether a string is a palindrome or not, using a deque: (A) Load the string into the deque. (B) Continuously remove characters from both ends. (C) Compare the characters removed from both ends. (D) Determine if the string is a palindrome based on the comparisons. Choose the correct answer from the options given below:
- 1(A), (B), (D), (C)
- 2(A), (B), (C), (D)✓
- 3(B), (A), (D), (C)
- 4(C), (B), (D), (A)
Correct answer
(A), (B), (C), (D)
Download Single Question PDF
Save this question and verified answer as a clean study sheet with live clickable link.
Share with Friends & Study Groups
Challenge your peer aspirants on WhatsApp or Telegram to solve this question!
Preparing for Computer Science?
Practice full-length mock tests with real exam timers, instant score analysis, and all-India ranking.
Want more practice questions on Data Structures?
Solve complete topic-wise tests with detailed solutions on GkGet.
Related Practice Questions
Recommended practice questions in Computer Science · Data Structures