in reply to Odd Ball Challenge
I have included a currently non-working Perl6 solution below.
I say currently because I suspect the problem is with Pugs and not with the code.
So, maybe my time was not wasted.. perhaps if we compare our results, we can determine whether or not it's your algorithm that is to blame.
My translation of your algorithm returned correct results in most cases, but failed the following:
If you're getting the same failures, perhaps the problem is in your algorithm.actual detected ball 2 light ball 2 heavy ball 5 light ball 6 light ball 6 light ball 5 light ball 7 light ball 8 light ball 8 light ball 7 light ball 1 heavy ball 5 light ball 2 heavy ball 5 light ball 3 heavy ball 6 light ball 9 heavy ball 10 heavy ball 10 heavy ball 9 heavy
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Odd Ball Challenge
by Limbic~Region (Chancellor) on Jun 24, 2005 at 23:13 UTC | |
by kaif (Friar) on Jun 25, 2005 at 22:27 UTC | |
by Limbic~Region (Chancellor) on Jun 26, 2005 at 16:09 UTC | |
Re^2: Odd Ball Challenge
by Limbic~Region (Chancellor) on Jun 30, 2005 at 17:52 UTC |