Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
thih9
on April 12, 2024
|
parent
|
context
|
favorite
| on:
Here's a puzzle game. I call it Reverse the List o...
Not trivial - I do not see how to solve [3, 2, 1] without this kind of swapping. Perhaps we need to clarify the rules for a starting point first.
Sharlin
on April 12, 2024
|
next
[–]
I mean that if you allow swapping then every instance of the problem becomes trivial because swapping is all that reversing is. Doesn’t mean the problem as intended is always solvable.
anthk
on April 12, 2024
|
prev
[–]
Learn Forth. Consequent swappings will reverse an stack.
Join us for
AI Startup School
this June 16-17 in San Francisco!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: