Assignment 4 question.


R. Clayton (rclayton@monmouth.edu)
(no date)


  I didn't see in the assignment that there was any guaranty that the input
  vectors wouldn't have too many of one type of value.

There isn't; your code should be able to handle any input.

  Do we count moves assuming that we grow the appropriate vector, or do we
  report an error?

A move consists of moving a number from one vector to a different vector; see
the assignment for full details. What happens to make that move necessary
isn't reported in the answer returned.

  I'm assuming the former (growing vectors), but I don't like to assume.

Although assumptions can be dangerous in the wrong hands, it is a mark of
ability to be able to use assumptions well. It is a valuable and skillful
programmer who can make reasonable assumptions, document them fully, and verify
them at the first opportunity (and all three of these things are necessary, not
just one or two of them).



This archive was generated by hypermail 2.0b3 on Thu Dec 19 2002 - 20:30:05 EST