Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
2-liner: max solution in Creative category for Colorful Disks by przemyslaw.daniel
def count_discs(discs: tuple[int, ...]) -> int:
return sum([discs[i] > max(discs[i+1:] + (0,)) for i in range(len(discs))])
Feb. 21, 2024
Comments: