Task: Move a Specified Item to the Top of a List
Task: Move a Specified Item to the Top of a List: a task in Terminal-Lego-15k (Harbor dataset). You are given a list of items, each with an id and a name . Your job is to write a small command-line program that reorders the list so that the item with a specified id is moved to the beginning of the…
The task
You are given a list of items, each with an `id` and a `name`. Your job is to write a small command-line program that reorders the list so that the item with a specified `id` is moved to the beginning of the list, while preserving the relative order of all other items.
Part of PrimeIntellect/Terminal-Lego-15k.