2 ms·
I 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
by jiaaro 16y ago
I 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.