Theory of Intelligence
11TH•Computer Science•Computational Structures•Question 6

Solution

What is difference between enqueue() and dequeue().

Solution

enqueue() (in Python examples, put()) adds an item to the back of the queue.

dequeue() (in Python examples, get()) removes an item from the front of the queue.

Enqueue grows the line from the end; dequeue serves the person who has been waiting the longest.

Discuss theoretical concepts, mathematical formulas, and architectural foundations.

Supports inline code with `backticks`
No comments yet. Be the first to start the discussion!