pull down to refresh
0 sats \ 0 replies \ @satcat 9 Dec 2024 \ parent \ on: [Logic Puzzle] Chinese Dumplings science
Ah yes, how about this:
optimal_move = if N ≤ 2: invalid
if N ≤ 4: N-1
if N mod 4 ∈ {1,3}: 2
if N mod 4 ∈ {0,2}: 3
pull down to refresh