943,910 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 9580
  • C++ RSS
You are currently viewing page 1 of this multi-page discussion thread
Jul 12th, 2006
0

binary tree traversal ..

Expand Post »
can anyone tell me the code for inorder traversal of binary tree non recursively and using a constant memory ...??
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
joshilay is offline Offline
31 posts
since Jul 2006
Jul 12th, 2006
0

Re: binary tree traversal ..

Is this for c or c++?
Featured Poster
Reputation Points: 1536
Solved Threads: 431
Posting Expert
iamthwee is offline Offline
5,865 posts
since Aug 2005
Jul 12th, 2006
0

Re: binary tree traversal ..

Quote originally posted by iamthwee ...
Is this for c or c++?
u can write in anyone c or c++ ..whichever is comfortable to you ..
Reputation Points: 10
Solved Threads: 0
Light Poster
joshilay is offline Offline
31 posts
since Jul 2006
Jul 12th, 2006
0

Re: binary tree traversal ..

Quote originally posted by joshilay ...
u can write in anyone c or c++ ..whichever is comfortable to you ..
Remember one thing. Nobody writes code for you. If you have a problem with code you have written, post it, and someone may point out the errors for you. Other than that, asking someone to write code in C/C++ whichever is comfortable will be a waste of time in your part.
Moderator
Reputation Points: 572
Solved Threads: 115
Mentally Challenged Mod.
WolfPack is offline Offline
1,559 posts
since Jun 2005
Jul 12th, 2006
0

Re: binary tree traversal ..

Quote originally posted by WolfPack ...
Remember one thing. Nobody writes code for you. If you have a problem with code you have written, post it, and someone may point out the errors for you. Other than that, asking someone to write code in C/C++ whichever is comfortable will be a waste of time in your part.
whos so ever you are ..i have asked a qusetion ..its upto others whether they want to write code or not ...who are you to decide this ??
Reputation Points: 10
Solved Threads: 0
Light Poster
joshilay is offline Offline
31 posts
since Jul 2006
Jul 12th, 2006
0

Re: binary tree traversal ..

Wait and see.
Moderator
Reputation Points: 572
Solved Threads: 115
Mentally Challenged Mod.
WolfPack is offline Offline
1,559 posts
since Jun 2005
Jul 12th, 2006
1

Re: binary tree traversal ..

>who are you to decide this ??
The forum rules decided this and the community enforces it. If you have a problem with that, leave.
Administrator
Reputation Points: 6442
Solved Threads: 1393
Bad Cop
Narue is offline Offline
11,807 posts
since Sep 2004
Jul 12th, 2006
0

Re: binary tree traversal ..

its good that forum is abide by some rules and regulations to maintain legacy ..but i have seen in many others threads people have asked to write codes even some people have asked to write there code give in there assignments ...so this come as shock for me when i get a reply like this from wolfpack..if anyone can write code its good ..but he/she can also make me understand the logic behind the that algorithm...
Reputation Points: 10
Solved Threads: 0
Light Poster
joshilay is offline Offline
31 posts
since Jul 2006
Jul 12th, 2006
1

Re: binary tree traversal ..

>but i have seen in many others threads people have asked to write
>codes even some people have asked to write there code give in there assignments
And in how many of those threads did those people get flamed for it? I'm willing to bet pretty much all of them.

>but he/she can also make me understand the logic behind the that algorithm...
Yes, but you asked for code. That suggests that you're making no attempt to understand the problem or solve it for yourself. A better way to post would be to ask for help understanding the problem, while specifying things you've already tried. At least that way we know you've tried to think for yourself.
Administrator
Reputation Points: 6442
Solved Threads: 1393
Bad Cop
Narue is offline Offline
11,807 posts
since Sep 2004
Jul 12th, 2006
0

Re: binary tree traversal ..

Yeah that's right. If you can post here you're on the interweb thingy so go to that google thingy and search 'binary tree' and you get links like this:

http://www.cprogramming.com/tutorial/lesson18.html

Read and have a go, then when you get stuck come back here, post what you got and we all help.
Last edited by hollystyles; Jul 12th, 2006 at 5:40 pm.
Reputation Points: 262
Solved Threads: 68
Veteran Poster
hollystyles is offline Offline
1,181 posts
since Feb 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: stupid string replace! (c++)
Next Thread in C++ Forum Timeline: Extracting folder information with c++





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC