Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: What's the answer to this puzzle? Most unique/golfed solution? (fun)

by liverpole (Monsignor)
on Sep 23, 2011 at 14:42 UTC ( [id://927574]=note: print w/replies, xml ) Need Help??


in reply to Re: What's the answer to this puzzle? Most unique/golfed solution? (fun)
in thread What's the answer to this puzzle? Most unique/golfed solution? (fun)

thundergnat,

This just trims a few characters from your approach, which I think is a very good one (I couldn't find an inherently better one).

# 68 strokes perl -E'map{say$_=$t||1;$t="";$t.=(length$&).$1while/(.)\1*/g}0..19'

s''(q.S:$/9=(T1';s;(..)(..);$..=substr+crypt($1,$2),2,3;eg;print$..$/
  • Comment on Re^2: What's the answer to this puzzle? Most unique/golfed solution? (fun)
  • Download Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (8)
As of 2024-04-18 16:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found