Thread: A question

  1. #1
    Registered User
    Join Date
    Jan 2006

    A question

    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

  2. #2
    Registered User Noir's Avatar
    Join Date
    Mar 2007
    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.

  3. #3
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    All the buzzt!

    "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

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Alice....
    By Lurker in forum A Brief History of
    Replies: 16
    Last Post: 06-20-2005, 02:51 PM
  2. Debugging question
    By o_0 in forum C Programming
    Replies: 9
    Last Post: 10-10-2004, 05:51 PM
  3. Question about pointers #2
    By maxhavoc in forum C++ Programming
    Replies: 28
    Last Post: 06-21-2004, 12:52 PM
  4. Question...
    By TechWins in forum A Brief History of
    Replies: 16
    Last Post: 07-28-2003, 09:47 PM
  5. Question, question!
    By oskilian in forum A Brief History of
    Replies: 5
    Last Post: 12-24-2001, 01:47 AM