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.
What does LIFO stand for?
Think about how a stack of plates is organized.
What operation do you use to remove an item from a stack?
Consider which item comes off the top of the stack.
What does FIFO stand for?
Think of people waiting in a line.
True or False: A stack allows you to remove items from the bottom.
Remember how items are added and removed in a stack.
Using a stack, how would you implement a function to reverse a string? Provide pseudocode.
Think about how you could add and remove characters to reverse the order.
Write a queue implementation that can simulate a ticket line. Include methods for enqueue and dequeue operations.
Consider how people form lines and how tickets can be processed based on order.
6 more questions in this section. Enroll free to practise them all.
Enroll free