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 is a binary tree?
Think about how trees in nature branch out.
What’s the difference between a binary tree and a binary search tree?
Consider how values are arranged in each structure.
What does a binary search tree allow us to do efficiently?
Remember the main purpose of a BST.
True or False: In a binary tree, each node can have more than two children.
Think about the definition of a binary tree.
Construct a binary search tree from the following list of values: [7, 4, 9, 2, 6, 8, 10]. Then, perform an in-order traversal and list the returned values.
Start by placing the first value at the root and continue adding values based on their relation to existing nodes.
Explain how the height of a binary search tree affects its efficiency during searching. Provide a scenario where the height is maximized.
Consider what happens when you insert elements in a non-random order.
4 more questions in this section. Enroll free to practise them all.
Enroll free