HF RL Explorer

Task: Implement an Efficient List Reordering Function

Task: Implement an Efficient List Reordering Function: a task in Terminal-Lego-15k (Harbor dataset). Create a Python script that implements a function to reorder elements of a list based on a given indices array. The function should take an original list and an indices list, then return a new list…

The task

Create a Python script that implements a function to reorder elements of a list based on a given indices array. The function should take an original list and an indices list, then return a new list where each position contains the element from the original list at the index specified by the indices array.

Part of PrimeIntellect/Terminal-Lego-15k.