Search the courses, subjects, tracks, games and features, or jump straight to a page.
3 cards from this section. Quick, good the night before a test.
What defines a binary search tree?
Think about how the values are arranged in a BST.
Describe in-order traversal in a BST.
Consider the sequence of visiting nodes.
What is the time complexity of searching in a balanced binary search tree?
Consider how binary search works in reducing the search space.
True or False: In a binary search tree, all values in the left subtree are greater than the node's value.
Remember the defining property of a BST.
You have a series of values to insert into a binary search tree: 10, 20, 5, 3, 7, 15. Construct the tree and perform in-order traversal.
Visualize inserting in sequential order while following the BST property.
Given a binary search tree with values (5, 3, 8, 1, 4, 7, 9), if you were to delete the node with value 3, how would you proceed, and what would the new in-order traversal be?
Understand that deleting a node involves maintaining the BST properties.
6 more questions in this section. Enroll free to practise them all.
Enroll free