Hi ,
I have a assignment in which the requirement is :
"Build a binary tree of all size and shape".
Does someone has any idea what it means? Quite not clear to me.
Thank you
B
Hi ,
I have a assignment in which the requirement is :
"Build a binary tree of all size and shape".
Does someone has any idea what it means? Quite not clear to me.
Thank you
B
If that's a direct quote, it's not a good requirement. Too ambiguous. They probably want you to show all of the variations of a tree, like if there are three nodes, you have these trees:
But the variations grow exponentially with each new node, so the question really needs more detail.Code:* * * * * \ / / \ / \ * * * * * * \ / \ / * * * *
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law
Or maybe it just needs to be capable of being any size and shape.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.