|
Right I had one more question. The case for B=0 (which, for me, occurs when the array is empty, or when the value T is smaller than everything in the array) indicates that T is not to be found in the array. However, we can't check A[0] for equality with T because the problem states the array is indexed from 1 to N, and also because checking A[0] for the empty array is not a good idea. Is it alright if we explicity check for B=0? I can see that it's inelegant to do so, but it is certainly a special case and so we would expect to have to deal with it in a special way. Thanks. roni |
aha by Roni Choudhury, 2001, Oct 20
Merely compute B by Mike O'Donnell, 2001, Oct 20
to: