Fix: Ensure all skills are tracked as files, not submodules
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
# HumanEval/62
|
||||
# Loki Mode Multi-Agent Solution
|
||||
# Attempts: 1
|
||||
# Passed: True
|
||||
|
||||
def derivative(xs: list):
|
||||
""" xs represent coefficients of a polynomial.
|
||||
xs[0] + xs[1] * x + xs[2] * x^2 + ....
|
||||
Return derivative of this polynomial in the same form.
|
||||
>>> derivative([3, 1, 2, 4, 5])
|
||||
[1, 4, 12, 20]
|
||||
>>> derivative([1, 2, 3])
|
||||
[2, 6]
|
||||
"""
|
||||
return [xs[i] * i for i in range(1, len(xs))]
|
||||
Reference in New Issue
Block a user