Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Tools solution in Creative category for Stones Placing by StefanPochmann
from itertools import *
def stones_placing(row: list[int], col: list[int]) -> int:
for c in col[1:]:
row = accumulate(
pairwise(row),
lambda x, p: sorted(p)[x],
initial=c
)
return list(row)[-1]
July 9, 2025
Comments: