Episode notes
Welcome to our series on Standard Algorithms! Today, we're covering Period 16: Find Maximum. Our main goal is to help you implement the "Find Maximum" standard algorithm.
The "Find Maximum" Algorithm đ
We'll start by defining the "Find Maximum" algorithm and explaining its logic. This algorithm is designed to find the largest value within an array of numbers. The core idea is simple: you start with an initial assumption that the first number is the biggest. Then, you loop through the rest of the array, comparing each number to your current "maximum." If you find a number that's bigger, you update your "maximum" to that new value. By the time you've checked every number, your "maximum" variable will hold the largest value in the entire array.
We'll review ...Â