Page 1 of 1

Maybe Smallest Mouse

Posted: Mon Nov 17, 2008 1:20 pm
by tog
Hi folks,

I finally got my solution down to 24 instructions. It's actually a hack that will break in the following situations:

- mem[1] is maximum and mem[0]==mem[2] (e.g., 2,1000,2,3,4,...)
- if there is a zero in the array (so I do not count up to 20 but stop at the first zero)

Nevertheless it passes all tests :P
So is there a "correct" solution to this one?

Posted: Mon Nov 17, 2008 9:52 pm
by adum
wow, nice solution! very cool.

as a special prize, i have made another puzzle in the series =)

Posted: Tue Nov 18, 2008 10:54 pm
by the_impaler
Yeh, my solution breaks too when mem[2] or mem[1] has max, but it does not break on zeros.
Oh, well. this bothered me way too much - could not do any other HVM problems.

Maybe Smallest Mouse

Posted: Wed Jul 17, 2019 7:52 pm
by ogi
Oh. I'm not soo bad :D ! My solution only sucks if mem[1] is max.
seriously: DOES there exist any CORRECT solution with 24 or less??

Re: Maybe Smallest Mouse

Posted: Wed Aug 07, 2019 8:12 am
by Hippo
ogi wrote:Oh. I'm not soo bad :D ! My solution only sucks if mem[1] is max.
seriously: DOES there exist any CORRECT solution with 24 or less??
Yep, just te last step took me 2 years ... as there is just a probabilistic solution with rather small probability of success.

(If I remember well :P)

Re: Maybe Smallest Mouse

Posted: Tue Aug 20, 2019 8:12 pm
by AMindForeverVoyaging
Hippo wrote: Yep, just te last step took me 2 years ... as there is just a probabilistic solution with rather small probability of success.
Well then it is not a correct solution. Correct means: You give the answer, it is accepted, finished.

Re: Maybe Smallest Mouse

Posted: Mon Sep 09, 2019 1:41 pm
by Hippo
AMindForeverVoyaging wrote:
Hippo wrote: Yep, just te last step took me 2 years ... as there is just a probabilistic solution with rather small probability of success.
Well then it is not a correct solution. Correct means: You give the answer, it is accepted, finished.
Well then it is not a correct puzzle :P

Re: Maybe Smallest Mouse

Posted: Wed Sep 18, 2019 8:49 pm
by AMindForeverVoyaging
Hippo wrote:Well then it is not a correct puzzle :P
Well, it isn't when you think about it. :wink:

break the barriers..

Posted: Fri Sep 20, 2019 8:09 pm
by ogi
Hey (as stated by some one else before):
This is a HACKERs challenge. Not a mathematicians one.
So be smart an hack the rules!
:D