RosettaCodeData/Task/Visualize-a-tree/Ruby/visualize-a-tree-1.rb

2 lines
75 B
Ruby
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
root = BinaryTreeNode.from_array [1, [2, [4, 7], [5]], [3, [6, [8], [9]]]]