two-star
Re:"Here's a puzzle game. I call it Reverse the List of Integers."
on Friday April 12, 2024 @09:19PM (#40019513)
Without that rule, you could decompose everything into 1's, and then recompose from there. Not the most efficient solution, but a boring one that always exists.
Re:"Here's a puzzle game. I call it Reverse the List of Integers."
on Friday April 12, 2024 @12:21PM (#40014637)
Hi. I'm the post's author. This was something I dashed off quickly, so I was a bit imprecise in the language. Clarifications:
Only positive integers are meant to be allowed. (Zero excluded.)
Combining is meant to work on adjacent pairs of integers.
If this is used in coding interviews, I deny any responsibility. Unless it's used in interviewing me, in which case I will totally take credit.