Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
kleiba
on April 12, 2024
|
parent
|
context
|
favorite
| on:
Here's a puzzle game. I call it Reverse the List o...
Couldn't you split 3 into [4,-1] ?
b3orn
on April 12, 2024
[–]
None of the implementations support negative numbers, but the rules say integer which includes negative numbers, so that should be a legal move.
Tao3300
on April 12, 2024
|
parent
|
next
[–]
Negative numbers would break the game by making the number of possible splits infinite. E.g. 1 could split into [-2, 3], [-3, 4], [-4, 5], etc.
It also violates Rule 1 because one of the splits is larger than the original number.
basil-rash
on April 12, 2024
|
root
|
parent
|
next
[–]
Rules say you can’t ever produce a number greater than the original largest number, so the possibilities will always be finite. (fixed number of ways to make a list of distinct integers that sum to N such that all values are <=M).
kleiba
on April 14, 2024
|
root
|
parent
|
prev
|
next
[–]
You're right in the first sentence, but you're second sentence if we're talking about splitting the largest original number itself that way.
fuglede_
on April 12, 2024
|
parent
|
prev
[–]
They also say that a given integer should be split into two smaller integers.
Join us for
AI Startup School
this June 16-17 in San Francisco!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: