I have an n*n array, and I want to find the min in the array, and get the index of the min in [x,y] format
Of course, this can be done using for loops and using temporary variables, but I am looking for a more sophisticated process to do this.
Example -
[[1,2,8],
[7,4,2],
[9,1,7],
[0,1,5],
[6,-4,3]]
I should get the following output -
Output-
Min = -4
Index = [4,1]
Can I implement something similar?
TIA.