Maximum updates

[2, 5, 3, 7], if x > m: m = x; c += 1 → 2

You can also choose a level by clicking a star.

About the course

Description
How many times the best value so far is overwritten while searching for the maximum (or minimum)
More information
An algorithm is a precise sequence of steps. Code examples are in Python.
Sample question
[2, 5, 3, 7], if x > m: m = x; c += 1 → 2
Author
Jiří Preisler
Version
1.0