Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Code Shortening (golf)

by kcott (Archbishop)
on Oct 18, 2010 at 19:57 UTC ( [id://866037]=note: print w/replies, xml ) Need Help??


in reply to Code Shortening (golf) [RESOLVED]

Similarly, AbcdeF must be Abcde(NOP)(NOP)F, so the output is 2.

Shouldn't that be: Similarly, AbcdeF must be Abcde(NOP)(NOP)(NOP)F, so the output is 3.

Using hyphens instead of (NOP)s:

012345678
Abc-D
A---B---C
Abcde--F
Abcde---F

It may just be a typo. If not, I haven't understood the task.

-- Ken

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-03-30 01:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found