Write a function that returns the position of the maximum element of @v[0..m]@. If there is a tie, the smaller position must be returned.
@m@ size of v.
| C++ | |
| C | |
| Java | |
| Python | |
| MyPy | |
You only need to submit the required procedure; your main program will be ignored.