Re: Binary search tree
- From: CBFalconer <cbfalconer@xxxxxxxxx>
- Date: Sun, 25 Nov 2007 11:47:12 -0500
sarajan82@xxxxxxxxx wrote:
Given a binary search tree and a number n, how can we find the
smallest node of the tree greater than n and the largest node
smaller than n?
For example for the following binary search tree where 5 is root
and 4 is the left and 6 the right child, for an input of 5,
4 and 6 will be output:
5
4 6
You omitted the email address of your instructor. This would
enable much easier direct submission of your homework. There is
also a fee involved when doing others homework.
--
Chuck F (cbfalconer at maineline dot net)
<http://cbfalconer.home.att.net>
Try the download section.
--
Posted via a free Usenet account from http://www.teranews.com
.
- References:
- Binary search tree
- From: sarajan82
- Binary search tree
- Prev by Date: Re: reading network data
- Next by Date: High Performance Computing by Dowd and Severance
- Previous by thread: Re: Binary search tree
- Next by thread: High Performance Computing by Dowd and Severance
- Index(es):