Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
7-liner: right to the point solution in Clear category for Colder-Warmer by przemyslaw.daniel
def checkio(steps):
if len(steps) == 12:
x = sum([x[2]+1 for x in steps[2:7]])
y = sum([x[2]+1 for x in steps[7:12]])
return [x if x < 10 else 9, y if y < 10 else 9]
r = "0020406080909294969899"
return [int(r[2*len(steps)-2]), int(r[2*len(steps)-1])]
Sept. 19, 2016
Comments: