Machine-translated by Google. Questions are authored in English.
Top

Discussion

Identify the odd one :

  • A.Priority queue
  • B.Circular queue
  • C.Deque
  • D.Tower of Hanoi

Answer: D

The odd one is Tower of Hanoi.

A priority queue, a circular queue and a deque (double-ended queue) are all queue data structures: variations on storing elements and removing them in a defined order from the ends or by priority.

The Tower of Hanoi is a problem, a puzzle of moving discs between pegs, usually solved by recursion and often used to illustrate stacks and recursion. It is not a kind of queue, so it does not belong with the other three.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.