binary trees

This is a discussion on binary trees within the C Programming forums, part of the General Programming Boards category; Hello all I just needed some direction to creating the following funtions in C using recurrsion: *width of a binary ...

  1. #1
    binary tree
    Guest

    Lightbulb binary trees

    Hello all
    I just needed some direction to creating the following funtions in C using recurrsion:

    *width of a binary tree
    *making each node of a tree 0 (zero)
    *make a mirror of the tree
    *bringing two trees together

    I've decided that I need to use pointers and a record with the following fields:
    *left
    *right
    *leaf (node)

    ANY help would be very much appreciated!!!
    Thanx in advance

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    You're lucky I'm not a moderator. I'd delete this thread. You want direction? How about reading the directions for the forum itself? While you're at it, read the FAQ. Then, in your spare time, how about using the search button to search for binary trees?

    Once you've done all of that, then, as per the forum rules, post your problem and specifics as per the forum rules, and you'll get much more help.

    Quzah.
    Hope is the first step on the road to disappointment.

  3. #3
    ~- Y u n a -~ beely's Avatar
    Join Date
    Dec 2001
    Posts
    291

    Talking


    hmm...you should have a try to do your own programming. if error, you may ask, but not asking the answer!

  4. #4
    cereal killer dP munky's Avatar
    Join Date
    Nov 2002
    Posts
    655
    quzah is on a rampage, but unfortunately i'd have to agree
    guns dont kill people, abortion clinics kill people.

  5. #5
    ~- Y u n a -~ beely's Avatar
    Join Date
    Dec 2001
    Posts
    291
    anyway, quzah was right. dont you think ppl will do think kind of question? sigh, even that person didn't have a try...

    other than that, that person also dont know anythings after he/she got the answer. coz he/she didn't do anythings, so how he/she improve the C knowledge..

  6. #6
    cereal killer dP munky's Avatar
    Join Date
    Nov 2002
    Posts
    655
    yeah, like you said, you have to do your own work. i dont mind TRYING(cuz i suck) to help someone out w/their code, but if you dont even try LOL i mean come on!!?!!
    guns dont kill people, abortion clinics kill people.

  7. #7
    ~- Y u n a -~ beely's Avatar
    Join Date
    Dec 2001
    Posts
    291
    no code, no helping hand. is it ?? LOL

  8. #8
    ouch
    Guest

    Unhappy

    ok...will do...thanx a lot

  9. #9
    ~- Y u n a -~ beely's Avatar
    Join Date
    Dec 2001
    Posts
    291
    ouch, dont be such as sad person. at lease you get ideal - do a bit of programming accordingly to your question. we will try to fix the error or comment to you. so, be happy ok ?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. A Binary Search Tree of... Binary Search Trees...
    By SlyMaelstrom in forum C++ Programming
    Replies: 5
    Last Post: 12-10-2005, 02:12 PM
  2. Binary Trees
    By wvu2005 in forum C Programming
    Replies: 7
    Last Post: 10-15-2005, 05:59 PM
  3. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 04:00 PM
  4. Tutorial review
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 11
    Last Post: 03-22-2004, 09:40 PM
  5. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 10:33 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21