dhartmei
Re:"Here's a puzzle game. I call it Reverse the List of Integers."
on Friday April 12, 2024 @03:08PM (#40016546)
Brute-force says the hardest puzzle for n=6 is [1,6,3] with a minimum of 14 moves.
And for n=7 it's [5,4,1,2,7] with a minimum of 26 moves.
Re:How to Prove You Know a Secret Without Giving It Away
on Wednesday October 12, 2022 @06:28AM (#33174994)
At the beginning, where the hidden passage is explained, isn't there a "race condition", where Ali Baba would eventually (across 40 repetitions) run into the thief? The thief picks one branch, Ali Baba the other. The thief uses the passage, then walks right into Ali Baba?
I don't understand how the thief can be sure to never walk into Ali Baba coming down the other path at some time.
What am I missing?
Re:A list of practical projects that anyone can solve in any programmi...
on Wednesday November 21, 2018 @05:21AM (#18501508)
Here's an example if you want to try http://www.benzedrine.ch/pi-spigot.c
Re:A list of practical projects that anyone can solve in any programmi...
on Wednesday November 21, 2018 @04:00AM (#18501193)
You don't need arbitrary precision, use a spigot https://en.wikipedia.org/wiki/Pi#Spigot_algorithms