Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Complete course on Tree - Data Structures
Rating: 4.6 out of 5(38 ratings)
11,773 students
Created bySujithkumar MA
Last updated 5/2025
English

What you'll learn

  • Binary Tree Implementation
  • Advanced Data Structures

Coding Exercises

This course includes our updated coding exercises so you can practice your skills as you learn.

See a demo
Image of coding exercise example

Course content

8 sections37 lectures6h 0m total length
  • What are Trees?4:57
  • 1.Understanding Recursion with an example10:00
  • 2.Example 2 for Recursion - Tracing the output7:47

    Trace recursion step by step by following main function calls, backtracking from the base case, and computing returns to reveal the output.

  • 3.Tricks to write recursive functions !10:00

    Explore how to write recursive functions by solving factorial with base and recursive cases, illustrating the general structure, base case, and recursive call, using pen-and-paper practice before coding.

  • 4. How to convert an iterative solution into a recursive solution13:44

    Learn to convert iterative problems into recursive solutions, including printing one to n and binary tree problems. Explore base cases, argument passing, a driver function for recursion and backtracking.

Requirements

  • Yes, A basic knowledge in Programming and Linear Data Structures

Description

Welcome to my crash course on Binary Trees which is one of the pivotal concepts in Advanced Data Structures and Algorithms!


In this course, we'll learn

1. What is Recursion? (Recursion is a prerequisite and a very useful tools to implement binary Trees)

2. Tricks to write recursive functions!

3. Tracing recursive functions

4. Converting an iterative solution to a recursive solution.

5. Basic Tree terminologies

6. Implementation of Binary Trees using LinkedLists

7. The basic traversal algorithms - How to code them?

8. Finding the height of the Tree - Algorithm, Code, Tracing.

9. How to find the Maximum and Minimum elements of a tree?

10. Finding the sum of all nodes in a tree

11. Level Order Traversal - Using Brute Force Approach and Improved Solution using Queue Data Structure.

12. Printing the left View of a Binary Tree

13. Printing the Right View of a Binary Tree

14. Understanding Hashmaps in C++ STL

15. Implementation of Vertical Order Traversals using Hashmaps

16. Printing all the leaf nodes of a Binary Tree using any one of the Traversal algorithms.

17. Printing the cousin nodes of a node in a Binary Tree.

18. Binary Search Trees - Explanation


Through these standard Tree problems, you'll easily be familiarized on implementing Trees in C or C++. Some ideas were also provided to implement the same using some other languages using Python too. So, if you're not comfortable in using C or C++, It's not a problem :)

Who this course is for:

  • Beginner Programmers