|
Hi,
In the problem it says that our program should just contain a tiny bit of initialization before the while loop. Does this strictly mean just defining l, u and setting their initial values? I put in an extra statement handling the case X[n]<t
if(X[n]<t) u=0;
Is this not the right thing to do? Should the loop just handle all cases without any additional ifs? Thanks.
Mamun
|
I think that should be handled at the end by Kristina Matesa, 2001, Oct 22
Keep initialization very simple by Mike O'Donnell, 2001, Oct 22
to: