Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: reordering segments to form a polygon

by ikegami (Patriarch)
on Aug 13, 2004 at 18:42 UTC ( #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? | Other CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2022-12-09 21:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?