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

Re: How would you code this?

by graff (Chancellor)
on Apr 07, 2016 at 06:14 UTC ( [id://1159787]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    (a) if the current x is lower than the previous x:
        (a.1) if the current x has been seen before, discard the current p
    +oint
        (a.2) else discard the previous point.
    (b) elsif the current x is identical to the prev. x (due to a.1 on pre
    +v.iteration)
        (b.1) discard previous point
    
  2. or download this
    #! perl -slw
    use strict;
    ...
    }
    
    print join ' ', @$_ for @modified;
    
  3. or download this
    0.0036759 0.4018006     0.0036759 0.4018006
    0.0036962 0.4074616     0.0036962 0.4074616
    ...
    0.0041239 0.8591068     0.0041239 0.8591068
    0.0041341 0.864785 
    0.0041443 0.8760895     0.0041443 0.8760895
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2024-04-25 17:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found