Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Re: Re: (Golf) Kaprekar's Process

by tachyon (Chancellor)
on Jun 18, 2001 at 03:19 UTC ( #89205=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: (Golf) Kaprekar's Process
in thread (Golf) Kaprekar's Process

Good point, what can I say, seemed like a good idea at the time. The thinking was that any combination of 4,5,9 will sort to 954 and reverse to 459 so the timing of the sort was not important. As you note this breaks down in some cases. The QA was a bit suboptimal - I just bunged in the two examples and when they worked...

Drat! I knew sneaking in a solution shorter than MeowChow was to good to be true :-)

Cheers

tachyon


Comment on Re: Re: Re: (Golf) Kaprekar's Process

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://89205]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2014-12-22 10:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (116 votes), past polls