What are a binary search tree and a balanced tree?

2 stars Asked often.

In one or two sentences
A binary search tree searches by the rule that left is smaller and right is larger. A balanced tree keeps its height logarithmic to protect worst case performance.

Think of your own answer first

Say it out loud, or type it below. What you type never leaves this device.

Follow-up questions

These are likely next questions from an interviewer. Think of your answer first, then press the button.

  1. 1 / 3

    What happens if a binary search tree leans to one side?

Sources checked

This is a textbook level concept, so no outside source is listed.