HF RL Explorer

Task: Implement Efficient Ascending/Descending Slice Sorting in Go

Task: Implement Efficient Ascending/Descending Slice Sorting in Go: a task in Terminal-Lego-15k (Harbor dataset). You need to implement a Go solution that sorts a slice of custom structs either in ascending or descending order based on a condition, without duplicating code by defining two separate…

The task

You need to implement a Go solution that sorts a slice of custom structs either in ascending or descending order based on a condition, without duplicating code by defining two separate sort types.

Part of PrimeIntellect/Terminal-Lego-15k.