Due by the end of today by midnight
The two methods that fill the array (simulating counting to n) each have and return an opCount variable. But I wasn't very consistent with counting my operations. Normally, we only count operations that involve the data structure we're working with (in this case, the array).
For example, step 1 from fillIntelligently (where k is set to 1) really shouldn't be counted -- it doesn't involve any element of the array.
On the other hand, step 1 from fillStupidly (where array[0] is set to 1) should be counted -- it involves an element of the array.
Go thru fillStupidly and fillIntelligently and remove all opCount increments that don't involve operations on the array elements.
Rerun the program and note the new formulas found. Add a comment in the program indicating the new formulas found. Compare them to the old formulas you noted before. What's changed? What's the same?
Submit this/these files: