0

Write a code to get the closet loop

if two trucks A,B are at (x,y) coordinate. the house is at (0,0). which one is shortest.x coordinate should be of range -20....20and y coordinate is of range -20....20. example-input- 3 -2 -5 -4 output- A

11th Sep 2017, 6:57 AM
Chandra Shekhar Kumar
Chandra Shekhar Kumar - avatar
7 odpowiedzi
11th Sep 2017, 7:42 AM
Nomeh Uchenna Gabriel
Nomeh Uchenna Gabriel - avatar
+ 6
what happenes if both are of cords(2, 2) (2, 2)
11th Sep 2017, 8:56 AM
Nomeh Uchenna Gabriel
Nomeh Uchenna Gabriel - avatar
11th Sep 2017, 7:41 AM
aklex
aklex - avatar
- 1
it will give both is at same
11th Sep 2017, 9:45 AM
Chandra Shekhar Kumar
Chandra Shekhar Kumar - avatar