Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Lookup closest hash key

by nif (Sexton)
on Jan 25, 2011 at 16:20 UTC ( [id://884167]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
    print q{closest_city(290)="}, closest_city(290), qq{"\n}; 
    print q{closest_city(500)="}, closest_city(500), qq{"\n}; 
    print q{closest_city(5000)="}, closest_city(5000), qq{"\n};
    
  2. or download this
    closest_city(5)="London"
    closest_city(149)="London"
    ...
    closest_city(290)="Rome"
    closest_city(500)="Berlin"
    closest_city(5000)="Berlin"
    
  3. or download this
                  250
                 /   \ 
    ...
         100   200   300  600
          |     |     |    |
      London  Paris  Rome  Berlin
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2024-04-19 18:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found