No such thing as a small change | |
PerlMonks |
Re: Re: (Golf) Kaprekar's Processby MeowChow (Vicar) |
on Jun 16, 2001 at 23:33 UTC ( [id://89089]=note: print w/replies, xml ) | Need Help?? |
... it handles 0s in numbers correctly
There are many such cases, though I misstated the problem somewhat. It isn't so much zeroed digits, as intermediate two-digit results. So far, all the solutions in this thread (except my own :) fail on many three-digit numbers. Also, in Golf, it may be ok to violate strict, but your subroutine should be re-runnable (ie. $i should be reset somewhere). MeowChow s aamecha.s a..a\u$&owag.print
In Section
Meditations
|
|