Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Uncategorized category for Auto Painting by stqn
# migrated from python 2.7
def checkio(capacity, number):
capacity = min(capacity, number)
result, last = [], 0
while last < 2 * number:
first, last = last, min(last + capacity, 2 * number)
result.append(''.join([str(x % number) for x in range(first, last)]))
return ','.join(result)
March 22, 2014