Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Verbatim DP solution in Creative category for Stair Steps by ale1ster
checkio = c = lambda ns,whisker=True: \
0 if ns == [] else max([ ns[0] + c(ns[2:], False),
ns[0] + c(ns[1:], True) ] + [ c(ns[1:], False) ]*(whisker == True))
June 5, 2014
Comments: