So let's say that I have an array, and it contains 10 elements. I want to set the first element as the root, and then if the next number is smaller, put it to the left, if larger to the right. How would I do this?
-
2There are either too many possible answers, or good answers would be too long for this format. Please add details to narrow the answer set or to isolate an issue that can be answered in a few paragraphs.thefourtheye– thefourtheye2016-01-15 16:33:39 +00:00Commented Jan 15, 2016 at 16:33
-
To the left, or right of what exactly?Hanlet Escaño– Hanlet Escaño2016-01-15 16:35:30 +00:00Commented Jan 15, 2016 at 16:35
Add a comment
|