Join us

Generic Tree Data Structure in Go

The Tree

The Tree

Construct a Generic Tree

Tree: Display and Size

Tree: Max and Height

Pre Order Traversal

Post Order Traversal

Level Order Traversal

Level Order Traversal

Mirror the tree

Remove Leaves of the tree

Find in Tree

Node to Root

Lowest Common Ancestor

P.S. Lowest Common Ancestor means nearest level from node and not lowest value

Distance between nodes

Are Tree Shapes Similar?

Are Trees Mirror?

Only registered users can post comments. Please, login or signup.

Start blogging about your favorite technologies, reach more readers and earn rewards!

Join other developers and claim your FAUN account now!


Hitesh Pattanayak

Senior Consultant, Thoughtworks

Senior Consultant @ Thoughtworks | Backend Engineer | Go | GRPC | Postgres | Datadog | Docker | K8 | AWS | C# | Python | SQL Server
User Popularity



Total Hits