3 ms·
it is unclear if the tree is restricted to being a binary tree or not. Also, it is unclear what a leaf node will look like (will children be null or an empty a
by aidenn0 16y ago
it is unclear if the tree is restricted to being a binary tree or not. Also, it is unclear what a leaf node will look like (will children be null or an empty array, or an array of nulls?)
- jiaaro 16y agoI believe each node may have an arbitrary number of children. The problem definitely says that a leaf node will have an empty array as it's children property
- jcromartie 16y agoI edited the problem to clarify leaf nodes.