Learn Trees
Learn the tree data structure using Python and create an adventure game!
StartKey Concepts
Review core concepts you need to learn to master this subject
Wide and deep trees
Binary search tree
Nodes as parents
Trees are composed of nodes
Tree nodes children
Python TreeNode class
Wide and deep trees
Wide and deep trees
There are two ways to describe the shape of a tree. Trees can be wide, meaning that each node has many children. And trees can be deep, meaning that there are many parent-child connections with few siblings per node. Trees can be both wide and deep at the same time.
Trees: Conceptual
Lesson 1 of 2
What you'll create
Portfolio projects that showcase your new skills
How you'll master it
Stress-test your knowledge with quizzes that help commit syntax to memory