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,19 @@
# HumanEval/47
# Loki Mode Multi-Agent Solution
# Attempts: 1
# Passed: True
def median(l: list):
"""Return median of elements in the list l.
>>> median([3, 1, 2, 4, 5])
3
>>> median([-10, 4, 6, 1000, 10, 20])
15.0
"""
sorted_l = sorted(l)
n = len(sorted_l)
mid = n // 2
if n % 2 == 1:
return sorted_l[mid]
else:
return (sorted_l[mid - 1] + sorted_l[mid]) / 2