paint-brush
How a n00b Programer Climbed The Binary Tree in Rubyby@Phalado
986 reads
986 reads

How a n00b Programer Climbed The Binary Tree in Ruby

by Raphael5mFebruary 13th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

An open-source binary tree was created by a Ruby programmer. The balance method in a binary tree is as efficient as the number of nodes in the tree is. In the balance method, the balance time is exponentially smaller than a simple array. The depth of a not balanced tree created by inserting the numbers 3, 6, 10, 9, 5, 1, 4, 7, 0 and 2 in this order. The search method is the one to insert the values in the data struct. It works the same as to find the data, compare your value with the node’s one value.

Company Mentioned

Mention Thumbnail
featured image - How a n00b Programer Climbed The Binary Tree in Ruby
Raphael HackerNoon profile picture
Raphael

Raphael

@Phalado

L O A D I N G
. . . comments & more!

About Author

Raphael HackerNoon profile picture
Raphael@Phalado

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Tefter
Learnrepo