if we have an expression like a[b(c(-1,e),d),f(g,-1)], here a is root node and in brackets there are child nodes, and -1 is a sentinal. How can we can represent this in a binary tree in c++.
Aucun commentaire:
Enregistrer un commentaire