Careers@Directi

Plotter dilemma

1.4 Plotter dilemma

You are given a plotter which can plot points provided to it in the form of 'x' and 'y' coordinates. The plotter hand can move horizontally or vertically only. Your program will be given a list of 'n' coordinates in the form of {(x1,y1), (x2,y2} ... (xn,yn)}. Your program must print a sorted list of all 'n' points that would represent the least cumulative distance for the plotter hand to plot all 'n' points in that sorted order. If you are feeling adventurous - modify the program to provide the same output if the plotter can also move diagonally

Labels

 
(None)
 
Benefits@Directi
  • Life & Medical Insurance coverage
  • Education Sponsorships
  • Attractive loan policies
  • Free Domain and hosting for Life
  • Snacks and beverages on the house
  • Concierge Services

Life@Directi


Fun Facts about Directi
  • 98% of Directians love Star Wars
  • 100 players in the Directi Cricket League
  • 48% of Directians wear sneakers to work
  • 52% percent wear sandals
  • 6.5 ping pong games per employee, per month.
Company Facts
  • Founded in 1998
  • 600 employees globally
  • 8 offices on 3 continents
  • Powers 4.2 million domains in 240 countries


Directi Blogs & Wikis


Directi on Slideshare

General Wikis

Directi Univ Wikis

Company Blogs

Businesses

TechCamp
Home.pw - Chat and collaboration for companies and individuals. LogicBoxes - Registry & Registrar Solutions Hosting Reseller Skenzo - Exclusive Traffic Monetization Programs WebHosting - Web Hosting Information CodeChef - Online Programming Competition
All content in the Directi Wiki is licensed under a Creative Commons Attribution-Share Alike 3.0 License.