Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

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

by mr.nick (Chaplain)
on Jun 17, 2001 at 08:11 UTC ( #89131=note: print w/ replies, xml ) Need Help??


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

Oh, it loops indefinately, all right. I ran it | head. And yes, that is the exact code.

If you grab the top of the output, do the see the odd value of @_ = 312321,123312? I would think that @_ would contain the same value as the output from c() since it uses the same map statement (- the pop). But I can't shake the feeling I'm missing something simple here (as I often do) :)

Btw, I split the subroutine up into individual statements for debugging. It used many fewer temporary variables at first.

mr.nick ...


Comment on Re: Re: Re: (Golf) Kaprekar's Process
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2014-09-20 05:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (153 votes), past polls