Return list of running maximums. Example: [3,1,4,1,5] => [3,3,4,4,5]
Implement this function:
def running_max(lst: list) -> list:
Write the function only — the arguments are read for you and the return value is printed automatically.
Arguments arrive as one Python literal per line, in this order: lst.
Input
[3, 1, 4, 1, 5]
Output
[3, 3, 4, 4, 5]