Premium problem96. Extract Unique Rows

Hard Locked

Given a 2-D array Z, return its unique rows: duplicate rows removed, with the remaining rows sorted.

Input

[[0 1 0]
 [1 1 1]
 [0 1 0]
 [1 0 1]]

Output

[[0 1 0]
 [1 0 1]
 [1 1 1]]

Premium problem

This one's part of Premium. Unlock the full NumPy track plus every other premium problem on the site.

Implement solve(...)