Question Last Index=T? 

Forum: Com Sci 221, U Chicago, Autumn 2001, Old Classwork
Re: News Assignment #4 due Monday, 22 October (Mike O'Donnell)
Date: 2001, Oct 22
From: Mamun Tanveer <mamunt@uchicago.edu>

Hi,

What should the output be for an array where the last element is the same as the value t in question. Should this report B=0 since there is no place in the array where the values switch from less than or equal to greater than? Or should it just report the last index as the value of B? Sorry this question is so late, but I think I've figured out how to modify my program according to whatever answer I get here, so hopefully I shouldn't have too much trouble. Thanks.

Mamun


Messages

1. Feedback The problem statement determines B in all cases by Mike O'Donnell, 2001, Oct 22
(_ Question Everything less than B by Mamun Tanveer, 2001, Oct 22
(_ Agree Yes, when X[N]<=T, B=N by Mike O'Donnell, 2001, Oct 22

to: "Last Index=T?"