Search Results

Showing results 1 to 7 of 7
Search took 0.00 seconds.
Search: Posts Made By: mapidea ; Forum: C# and child forums
Forum: C# Nov 18th, 2008
Replies: 11
Views: 1,232
Posted By mapidea
We have a binary tree

50
30 70

10 40 60 80


The following code doesn't work for...
Forum: C# Nov 18th, 2008
Replies: 11
Views: 1,232
Posted By mapidea
I have a binary tree

50

30 70

10 40 60 80

The below code is not giving the correct result for test cases 80, 83, 60, 11
Forum: C# Nov 18th, 2008
Replies: 11
Views: 1,232
Posted By mapidea
How will you write


if self.rightChild:
succ = self.rightChild.findMin()


in C#
Forum: C# Nov 18th, 2008
Replies: 11
Views: 1,232
Posted By mapidea
How can I start to convert the code in C# and test it?
Forum: C# Nov 18th, 2008
Replies: 11
Views: 1,232
Posted By mapidea
I have not done this in C#.



int findSuccessor(self):
succ = None
if self.rightChild:
succ = self.rightChild.findMin()
else:
if self.parent.leftChild == self:
Forum: C# Nov 18th, 2008
Replies: 11
Views: 1,232
Posted By mapidea
What will be the C# version of the below code.

int findSuccessor(self):
succ = None
if self.rightChild:
succ = self.rightChild.findMin()
else:
if...
Forum: C# Nov 18th, 2008
Replies: 11
Views: 1,232
Posted By mapidea
How can we find the next highest value in the binary tree?

We have a binary tree and an number is being input. We need to find the next highest number.
Showing results 1 to 7 of 7

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC