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 is the minimum value in a BST with root value 8 and left children 7, 6, 5?
Traverse to the left-most node.
What is the maximum value in a BST with root 10 and right children 12, 14, 16?
Find the right-most node.
What value does the method to find a minimum return?
Think about how we traverse left.
True or False: The predecessor of a node with children both left and right is always the maximum of the left subtree.
Which subtree gives a maximum value?
Given a BST containing numbers 3, 5, 2, 8, find the predecessor and successor for node 3.
Calculate both branches and pick the respective nodes.
Explain what happens when trying to find the successor of the maximum node in a BST.
What defines the concept of a maximum node in a BST?
5 more questions in this section. Enroll free to practise them all.
Enroll free