Task: Sort Parallel Vectors by Key Vector
Task: Sort Parallel Vectors by Key Vector: a task in Terminal-Lego-15k (Harbor dataset). Implement a C++ program that sorts multiple parallel std::vector containers based on the values of a designated "key" vector. When the key vector is sorted, all other vectors should undergo the same index…
The task
Implement a C++ program that sorts multiple parallel `std::vector` containers based on the values of a designated "key" vector. When the key vector is sorted, all other vectors should undergo the same index transformation, maintaining the correspondence between elements at each position.
Part of PrimeIntellect/Terminal-Lego-15k.