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.
Average rating: 10.00
Please REGISTER or LOG IN, it's totally free! Registered users can
rate animations, add them among their favorites, and mark them as not working.
rate animations, add them among their favorites, and mark them as not working.
Category:Fundamentals 2
Technology:JavaScript animation
Programming language:Pseudocode
Interactivity:Medium
Please REGISTER or LOG IN, it's totally free! Only registered users can write reviews!