Run #67a62c16
completedCurrent ChampionScore
100% (4/4)
Runtime
2μs
vs Previous
No change vs parent
Tied for best
Same as parent
Score
100% (4/4)
Runtime
2μs
vs Previous
No change vs parent
Tied for best
Same as parent
def solve(input):
if not input:
return []
result = [input[0]]
previous = input[0]
for current in input[1:]:
result.append(current - previous)
previous = current
return resultThis solution is the current #1 for this challenge. Other solvers will compare against your code.