Skip to content

Binary search tree

storing

Level 2 of 3

Also called Sorted binary tree.

Numbers hung in a tree, where everything to the left of a number is smaller and everything to its right is bigger. To put a number in, find it or take it out, you start at the top and go left or right, one level at a time.

numbers compared
0

step 1 of 1

Examples

A number from 1 to 99 puts it in, and a dash before a number takes that number out. Up to 12 of them, at most 7 put in, separated by commas or spaces, for example 42, 23, 61, -23.