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 and get more readers

Join other developers and claim your FAUN account now!

Avatar

Hitesh Pattanayak

Senior Consultant, Thoughtworks

@hiteshrepo
Senior Consultant @ Thoughtworks | Backend Engineer | Go | GRPC | Postgres | Datadog | Docker | K8 | AWS | C# | Python | SQL Server
Stats
11

Influence

258

Total Hits

1

Posts