Re: binary search
- From: "JD" <joydeep.paul@xxxxxxxxx>
- Date: 27 Jul 2005 22:32:24 -0700
It is not a homework problem rather an interview question. I searched
google and got one solution wherein they kept additional pointers that
points to the node in the middle, a decision is made at the first node
to find out if we need to check the first or the second half of the
linked list and the same is continued with each half-list.
However it incurs some inefficiency because we always need to keep
track of the middle element in the list.
.
- Follow-Ups:
- Re: binary search
- From: Ed Prochak
- Re: binary search
- From: Randy Howard
- Re: binary search
- References:
- binary search
- From: JD
- Re: binary search
- From: Randy Howard
- binary search
- Prev by Date: Re: programming job market in bay area in US
- Next by Date: Re: binary search
- Previous by thread: Re: binary search
- Next by thread: Re: binary search
- Index(es):