HF RL Explorer

Task: Sort a Vector in Descending Order in Rust

Task: Sort a Vector in Descending Order in Rust: a task in Terminal-Lego-15k (Harbor dataset). Create a Rust program that demonstrates a general-purpose way to sort a Vec in descending order (from largest to smallest). The solution should be clean, idiomatic, and extensible to different types…

The task

Create a Rust program that demonstrates a general-purpose way to sort a `Vec` in descending order (from largest to smallest). The solution should be clean, idiomatic, and extensible to different types beyond just numbers.

Part of PrimeIntellect/Terminal-Lego-15k.