Search the courses, subjects, tracks, games and features, or jump straight to a page.
4 cards from this section. Quick, good the night before a test.
Define a stack in terms of data structure concepts.
Think about the order in which elements are added and removed.
What is the main operation to add an item to a queue?
Consider how you would relate it to a waiting line.
What principle does a stack follow?
Remember the last item added is the first to be removed.
True or False: Enqueue is the operation to remove from the front of a queue.
Recall the terms and their functions.
Design a program using a stack that checks if parentheses in an expression are balanced.
Consider what each parenthesis represents when traversing the expression.
Create a circular queue implementation and explain how it differs from a simple queue.
Sketch the circular relation and how it accommodates new elements.
6 more questions in this section. Enroll free to practise them all.
Enroll free