Hi developers,
I have to write a function that finds the largest key (in my node)
in a binairy ordered tree.
Like: int Maxkey(const node *n )
Someone can help meCode:struct node { int key; struct node *left, *right; }?
Thanx
This is a discussion on Find MaxKey within the C Programming forums, part of the General Programming Boards category; Hi developers , I have to write a function that finds the largest key (in my node) in a binairy ...
Hi developers,
I have to write a function that finds the largest key (in my node)
in a binairy ordered tree.
Like: int Maxkey(const node *n )
Someone can help meCode:struct node { int key; struct node *left, *right; }?
Thanx
Do it yourself. We're not here to do everything for you. I don't see your attempt at it. Wait a second...
Originally Posted by kermi3
Read and follow the above instructions, and try your post (in the same thread) again.
Quzah.
Hope is the first step on the road to disappointment.
>I have to write a function that finds the largest key (in my node) in a binairy ordered tree.
Go right. Keep going right until you can't go right anymore.
My best code is written with the delete key.