Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Of course solution in Clear category for Colorful Disks by StefanPochmann
from itertools import accumulate
def count_discs(discs):
return len(set(accumulate(reversed(discs), max)))
Feb. 19, 2024
Comments: