Implement a function that returns the index of the maximum value along a specified axis of a 2D list.
Constraints
Example
```python
# Example 1:
arr = [[5, 2, 9],
[1, 8, 3],
[7, 4, 6]]
argmax_axis(arr, 0)
# Output: [2, 1, 0]
argmax_axis(arr, 1)
# Output: [2, 1, 0]
# Example 2:
arr2 = [[1, 1, 1],
[2, 2, 2]]
argmax_axis(arr2, 0)
# Output: [1, 1, 1]
argmax_axis(arr2, 1)
# Output: [0, 0]
```
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints