Given a 2-D array Z, return its unique rows: duplicate rows removed, with the remaining rows sorted.
Z
Input
[[0 1 0] [1 1 1] [0 1 0] [1 0 1]]
Output
[[0 1 0] [1 0 1] [1 1 1]]
This one's part of Premium. Unlock the full NumPy track plus every other premium problem on the site.
solve(...)