in reply to (Golf) Kaprekar's Process
sub a { $_=pop;/495/&&$i||do{$_=join'',sort/./g;$i++;a(reverse()-$_)} #234567890123456789012345678901234567890123456789012345678901 }
Update:Changed code from 65 chars to 61.
The 15 year old, freshman programmer,
Stephen Rawls
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: (Golf) Kaprekar's Process
by MeowChow (Vicar) on Jun 16, 2001 at 23:33 UTC | |
by srawls (Friar) on Jun 16, 2001 at 23:41 UTC | |
by MeowChow (Vicar) on Jun 17, 2001 at 00:11 UTC | |
by srawls (Friar) on Jun 17, 2001 at 00:57 UTC |