So far, we have implemented algorithms where we have a reference to our input before we run our computations and where we print the algorithm’s output when we are done. Our algorithm is the code between the input and the output. But what happens if, for example, we need to sort more than one list?
With the approach we have seen so far, we would need to copy the entire code for each time we need to run an algorithm. This will give us many copies of the same code, so what if there is an error in the code? We would need ...