Solved Exercise: Step by Step Guide
Explore how to solve a concurrency exercise in Go by implementing recursive tree traversal with goroutines and channels. Understand how to compare binary trees concurrently, applying practical Go concurrency concepts.
We'll cover the following...
We'll cover the following...
Assignment
There can be many different binary trees with the same sequence of values stored at the leaves. For example, here are two binary trees storing the sequence 1, 1, 2, 3, 5, 8, 13.
A function to check whether two binary trees store the same sequence is quite complex in most languages. We’ll use Go’s concurrency and channels to write a simple solution.
This ...