def indexes_of_max_eleme nt self arr list int int max_elements list ma

1
2
3
4
5
6
def indexes_of_max_element(self, arr: list) -> (int, int):
max_elements = list(map(max, arr))
max_element = max(max_elements)
row = max_elements.index(max_element)
column = arr[row].index(max_element)
return row, column