Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Colorful Disks by Magu
def count_discs(discs: tuple[int, ...]) -> int:
n = 1; d = discs[-1]
for i in discs[-2::-1]:
if i > d:
n += 1; d = i
return n
Sept. 19, 2024
Comments: