Task: Sort a List of Lists with a Custom Compare Function
Task: Sort a List of Lists with a Custom Compare Function: a task in Terminal-Lego-15k (Harbor dataset). You need to create a Python script that sorts a list of lists using a custom compare/key function. The list contains sublists, each with 5 numeric elements. The sorting should be based on a…
The task
You need to create a Python script that sorts a list of lists using a custom compare/key function. The list contains sublists, each with 5 numeric elements. The sorting should be based on a "fitness" function that calculates the sum of all elements in each sublist.
Part of PrimeIntellect/Terminal-Lego-15k.