go to previous page   go to home page   go to next page highlighting
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 is an algorithm that determines if a list is in order.

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