Searching the index of the maximum
This animation shows how to find the maximum and its index (mi) in an array. In the beginning, we
set the index of the maximum (mi) to 0. Next, we compare every other element in the array with the
element at the maximum index (mi). If we find a new maximum, we set the maximum index (mi) to the
place of the new maximum.
rate animations, add them among their favorites, and mark them as not working.