can anyone please help me with binary trees? i might medal you think about it
what tree ??O_O chocolate binary tree
i only know binary trees in comp
no haha in java:P
This isn't a question. It's a phrase with a question mark.
what are u trying to code
is that better?
Leia, Boba, Darth, R2D2, Han, Luke, Chewy, Jabba write in pre order post order and in order
Wait, so you have to create a binary tree that will take those values in, sorting them, and then you have it print them out in these orders?
yea i dont have to write any code tho so its less work hopeuflly
Okay, why don't you simulate what will happen as you insert them into the tree?
tbh i have noo cluee
Okay, So first you insert Leia... it gets put as the root because there is nothing in the tree yet.|dw:1421213325608:dw|
Next you insert Boba, since Boba comes before in the alphabet, it goes to the left.|dw:1421213362551:dw|
|dw:1421213375347:dw|
Next is Darth, where would it go?
idk i never learnt how to do this :(
Does it go before or after Leia?
after
.. alphabetical order
are u sure?
i dont know how u wanna order it
how else would you order strings...
|dw:1421214806526:dw|
Join our real-time social learning platform and learn together with your friends!