go to previous page   go to home page   go to next page
4  5  12  23  23  37  27  41  53

Answer:

No.

The pair starting with 37 is out of order.


Algorithm

Recall that an algorithm is a systematic procedure to perform an operation on data. Here, the operation determines if the list is in order. The algorithm is:

For each pair of integers starting at the left:
  if any pair is out of order, the list is not in order

If one pair is out of order the entire list is out of order.


QUESTION 5:

Is the pair 23 23 out of order?


go to previous page   go to home page   go to next page