Hint 2

Model the lockers with an array of ints. Each position in the array stands for a locker.

How do you keep track of the locker numbers? How do you account for the fact that there are 1000 lockers, numbered 1 through 1000? What information do you keep at each array position?


Thomas VanDrunen
Last modified: Mon Sep 15 16:13:26 CDT 2008