Search the courses, subjects, tracks, games and features, or jump straight to a page.
2 cards from this section. Quick, good the night before a test.
What is a binary search tree?
Think about the structure and order of elements.
What type of traversal gives you sorted order of elements in BST?
Recall the order of visiting nodes.
What is the average time complexity of search operations in a balanced binary search tree?
Remember the effects of balance on performance.
True or False: A binary search tree can contain duplicate values.
Consider the definition of a binary search tree.
You have to implement a BST and ensure it remains balanced after a series of insertions and deletions. What steps would you take?
Consider the properties of each type of self-balancing tree.
Create a function to perform an in-order traversal on a given BST and return the sorted list of values. Write the pseudocode.
Pseudocode should reflect the traversal pattern: left, root, right.
4 more questions in this section. Enroll free to practise them all.
Enroll free