Select rows from a matrix using a list of indices and return a new 2D array.
Constraints
Example
>>> fancy_index_select([[1, 2], [3, 4], [5, 6]], [0, 2]) [[1, 2], [5, 6]] >>> fancy_index_select([[1, 2], [3, 4], [5, 6]], [2, 0, 1]) [[5, 6], [1, 2], [3, 4]]
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints