V
Vandana
Hello All,
I would like to implement a tree with the following properties.
1. The tree is balanced.
2. Each node has a max of 5 sub nodes and min of ceil(5/2) sub nodes.
3. The tree remains static. Number of nodes known from the beginning.
How would I implement this in ruby?
Thanks,
Vandana.
I would like to implement a tree with the following properties.
1. The tree is balanced.
2. Each node has a max of 5 sub nodes and min of ceil(5/2) sub nodes.
3. The tree remains static. Number of nodes known from the beginning.
How would I implement this in ruby?
Thanks,
Vandana.