During past years, I used this blog to publish code snippets just for personal fun. Some of those snippets became relatively popular (see: A collection of algos and data structures published here).
I am now returning to basics and will restart the series. Everyday will publish a question and a solution with relative code snippet. Again, just for fun and just to keep myself in good shape.
First question: write a C++ generic binary tree and an interative inorder visit (e.g. stack no recursion, and templates)
here the code