Premium problem45. Replace Max with 0

Medium Locked

Replace the maximum value of array a with 0 and return the result.

Input

[1. 5. 3. 9. 2.]

Output

[1. 5. 3. 0. 2.]

Premium problem

This one's part of Premium. Unlock the full NumPy track plus every other premium problem on the site.

Implement solve(...)