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 data structure.
Think about how we keep our information organized.
What is the main property of a stack?
Consider how plates are stacked.
What is the access time of an array in general?
Consider how we access specific elements.
True or False: A queue uses the Last In First Out principle.
Think about the order items are served.
Given a set of tasks with different priorities, design a priority queue using a heap. Detail the operations needed for insertion and extraction of the highest priority task.
Remember how heaps maintain their properties during insertion and removal.
Construct a binary search tree with the values: 15, 10, 20, 8, 12, 16, 25. Then, demonstrate how to insert the value '18' while maintaining the characteristics of the BST.
Think about how a BST organizes its left and right children.
6 more questions in this section. Enroll free to practise them all.
Enroll free