Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Short solution in Clear category for Pearls in the Box by Pouf
def checkio(marbles, step):
w, T = marbles.count('w'), len(marbles)
for turn in range(1, step):
w = T*w + T**turn - 2*w
return w/T**step
Oct. 10, 2015
Comments: