|
Look very carefully at the problem statement. When X[N]=T, there is precisely one value of B satisfying the problem statement. It is not 0. What is the value of B such that every array entry at index <=B is <=T, and every array entry at index >B is >T? Look back at the notes on extreme cases. Mike O'D. |
Everything less than B by Mamun Tanveer, 2001, Oct 22
Yes, when X[N]<=T, B=N by Mike O'Donnell, 2001, Oct 22
to: