Return the coordinates (row, col) of every element of 2-D array X that is divisible by 3.
X
Input
[[1 3 5] [6 8 9]]
Output
[[0 1] [1 0] [1 2]]
This one's part of Premium. Unlock the full NumPy track plus every other premium problem on the site.
solve(...)