हिंदी

Compare and contrast queue with stack. - Computer Science (Python)

Advertisements
Advertisements

प्रश्न

Compare and contrast queue with stack.

टिप्पणी लिखिए

उत्तर

  1. Queue support FIFO while Stack support LIFO.
  2. In Queue, Insertion occurs at the rear end and deletion at the end. While in Stack, Insertion and Deletion at one end only i.e. top.
  3. In Queue, Enqueue for element insertion, while in Stack, PUSH for element insertion.
  4. In Queue, Dequeue for element deletion, while in Stack, POP for element deletioni.
  5. Queues can be implement in several ways like Circular Queue, Doubly ended queue (deque), while Stack is implemented in one way only.
shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 4: Queue - Exercise [पृष्ठ ६५]

APPEARS IN

एनसीईआरटी Computer Science [English] Class 12
अध्याय 4 Queue
Exercise | Q 2. | पृष्ठ ६५
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×