Template:Algorithm-end


 * "&larr;" denotes assignment. For instance, "largest &larr; item" means that the value of largest changes to the value of item.
 * "return" terminates the algorithm and outputs the following value.