Fix: Ensure all skills are tracked as files, not submodules

This commit is contained in:
sck_0
2026-01-14 18:48:48 +01:00
parent 7f46ed8ca1
commit 8bd204708b
1113 changed files with 82065 additions and 2 deletions

View File

@@ -0,0 +1,35 @@
# HumanEval/70
# Loki Mode Multi-Agent Solution
# Attempts: 1
# Passed: True
def strange_sort_list(lst):
'''
Given list of integers, return list in strange order.
Strange sorting, is when you start with the minimum value,
then maximum of the remaining integers, then minimum and so on.
Examples:
strange_sort_list([1, 2, 3, 4]) == [1, 4, 2, 3]
strange_sort_list([5, 5, 5, 5]) == [5, 5, 5, 5]
strange_sort_list([]) == []
'''
if not lst:
return []
sorted_lst = sorted(lst)
result = []
left = 0
right = len(sorted_lst) - 1
pick_min = True
while left <= right:
if pick_min:
result.append(sorted_lst[left])
left += 1
else:
result.append(sorted_lst[right])
right -= 1
pick_min = not pick_min
return result