Welcome guest!

Searching the maximum

This animation shows how to find the maximum in an array. In the beginning, we copy the first element
of the array to the maximum. Next, we compare the maximum with every other element in the array.
If any of the compared element in the array is bigger than the maximum, we copy it to the maximum.

Average rating:   –
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.

Category:Fundamentals 1

Technology:JavaScript animation

Programming language:Pseudocode

Interactivity:Medium

Please REGISTER or LOG IN, it's totally free! Only registered users can write reviews!