Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: reordering segments to form a polygon

by ikegami (Patriarch)
on Aug 13, 2004 at 18:42 UTC ( [id://382793]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # -- input --
    
    ...
    
    time complexity:
    O(n)  (without the unneccesary sort)
    
  2. or download this
    %lookup = map { join(',', $_->[0], $_->[1]) => join(',', $_->[2], $_->
    +[3]) } @r;
    
    ...
       die("broken or repeat!\n") unless defined($next);
    }
    while ($next ne $start);
    

Log In?
Username:
Password:

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

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

    No recent polls found