DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   C++ (http://www.daniweb.com/forums/forum8.html)
-   -   binary tree traversal .. (http://www.daniweb.com/forums/thread49878.html)

joshilay Jul 12th, 2006 9:41 am
binary tree traversal ..
 
can anyone tell me the code for inorder traversal of binary tree non recursively and using a constant memory ...??

iamthwee Jul 12th, 2006 10:05 am
Re: binary tree traversal ..
 
Is this for c or c++?

joshilay Jul 12th, 2006 10:13 am
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 ..

WolfPack Jul 12th, 2006 10:43 am
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.

joshilay Jul 12th, 2006 10:48 am
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 ??

WolfPack Jul 12th, 2006 10:49 am
Re: binary tree traversal ..
 
Wait and see.

Narue Jul 12th, 2006 10:59 am
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.

joshilay Jul 12th, 2006 12:12 pm
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...

Narue Jul 12th, 2006 12:46 pm
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.

hollystyles Jul 12th, 2006 5:36 pm
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.


All times are GMT -4. The time now is 9:16 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC