Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^3: Data compression by 50% + : is it possible?

by BrowserUk (Patriarch)
on May 12, 2019 at 01:52 UTC ( [id://1233626]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Algorithm::Combinatorics qw[ variations_with_repetition ];;
    
    ...
    
    $d = 0; $_->[0]+1 == $_->[1] or $_->[1]+1 == $_->[2] and ++$d for @c; 
    +print $d;;
    7922
    
  2. or download this
    $d = 0; $_->[0] == $_->[2]+1 and ++$d for @c; print $d;;
    8010
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1233626]
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: (6)
As of 2024-04-23 19:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found