$ go build .
$ ./reverse_binary_tree
output example
201
132
204
72
171
135
174
4
126
89
129
75
144
92
147
------------------------------
147
92
144
75
129
89
126
4
174
135
171
72
204
132
201
- after the implementation use generics (go 1.18).
- reverse the binary tree without recursion.
- dump the tree as a graphviz graph.