Computer Programming
17,023 learners
Understanding and Using Trees in Python
This course is designed to provide a deep understanding of trees in Python with a specific focus on binary trees, binary search trees, and heaps. The course covers the BFS and DFS in non-binary trees to elaborate on the different traversal methods. It extensively draws attention to the use of tree data structures in solving complex interview problems.
Python
7 lessons
23 practices
3 hours
Computer Science Fundamentals
Lessons and practices
Visualizing Web Browsing History as a Tree Structure
Amending the Company Hierarchy Tree
Adding a Node to a Binary Tree
Constructing a Binary Tree and Performing In-Order Traversal
Traversing the Company Hierarchy with DFS
Applying DFS to a Structured Planetary Hierarchy
Galactic Hierarchy: Restoring Cosmic Navigation
Implementing Depth-First Search in a Department Hierarchy
Creating a DFS Traversal of City Areas from Scratch
Exploring the World's Major Rainforests with BFS Traversal
Changing the Starting Position of BFS Traversal
Fixing the Flow of Command with BFS
Constructing a Royal Family Tree using Breadth-First Search
Implementing Breadth-First Search from scratch
Maintaining the MinHeap: Inserting and Deleting Nodes
Troubleshooting Spacecraft Queue Management
Adding and Removing Nodes in a MinHeap
Developing an Efficient Real-time Data Tracker in Python
Exploring Binary Search Tree Operations in Practice
Fixing the Interplanetary Ships Registry
Building and Traversing a Binary Search Tree
Calculating the Maximum Height Difference in Binary Search Tree Subtrees
Finding the Kth Largest Element in a Binary Search Tree
Meet Cosmo:
The smartest AI guide in the universe
Our built-in AI guide and tutor, Cosmo, prompts you with challenges that are built just for you and unblocks you when you get stuck.
From our community
Hear what our customers have to say about CodeSignal Learn
I'm impressed by the quality and can't stop recommending it. It's also a lot of fun!

Francisco Aguilar Meléndez
Data Scientist
+11
I love that it's personalized. When I'm stuck, I don't have to hope my Google searches come out successful. The AI mentor Cosmo knows exactly what I need.

Faith Yim
Software Engineer
+14
It's an amazing product and exceeded my expectations, helping me prepare for my job interviews. Hands-on learning requires you to actually know what you are doing.

Alex Bush
Full Stack Engineer
+9
I'm really impressed by the AI tutor Cosmo's feedback about my code. It's honestly kind of insane to me that it's so targeted and specific.

Abbey Helterbran
Tech consultant
+8
I tried Leetcode but it was too disorganized. CodeSignal covers all the topics I'm interested in and is way more structured.

Jonathan Miller
Senior Machine Learning Engineer
+12
I'm impressed by the quality and can't stop recommending it. It's also a lot of fun!

Francisco Aguilar Meléndez
Data Scientist
+11

Join the 1M+ learners on CodeSignal
Be a part of our community of 1M+ users who develop and demonstrate their skills on CodeSignal