Ages 12–14 · Foundation
Queue simulation
Apply structures to justify a solution to the queue simulation task.
Understand the idea
Data structures constrain valid operations and access patterns.
Your challenge
A nonempty array queue stores its earliest item at head. Order a dequeue routine that returns that item and advances head. RETURN ends the routine.
How to explore
- Identify the inputs, goal or constraint in this structures situation.
- Work through the stated rule or operation without adding assumptions.
- Check your proposed response against every relevant detail in the question.
Open the activity to work with its controls and check your reasoning. Progress stays in this browser.
Keep exploring
DON’T LET THE QUESTION END HEREGive that curiosity
Open the learning space