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 what an array is.
Think about where similar items are stored together.
What does LIFO stand for?
Consider how you would access the last item added.
What does FIFO stand for?
Consider how a line works.
Is a stack a LIFO data structure?
Think about how you stack dishes.
Write a function in your preferred programming language that implements a basic stack with push, pop, and peek functionalities. Explain how each method works.
Recall the last item added to a stack is the first one you can remove.
Design a simulation of a queue using an array that handles basic enqueue and dequeue operations. Discuss potential limitations.
Think about what happens when you try to remove an item from an empty queue.
6 more questions in this section. Enroll free to practise them all.
Enroll free