CSC300: Thinking about loops [0/21] |
Video [1/21] |
What does this function do? [2/21] |
How do you know? [3/21] |
How do you know? [4/21] |
How do you know? [5/21] |
You don't need the code! [6/21] |
Manual Testing [7/21] |
Automatic Testing [8/21] |
Using an array of length 3 [9/21] |
Using a loop [10/21] |
Generalizing [11/21] |
Loop invariant [12/21] |
A bad solution [13/21] |
Exceptions [14/21] |
Designing loops from scratch [15/21] |
Solution with while loop [16/21] |
General rules for desiging loops [17/21] |
Another way to compute max [18/21] |
Another way to compute max [19/21] |
Using a timer [20/21] |
Conclusions [21/21] |