Vijay.B
BAN USER
Comments (4)
Reputation 0
Page:
1
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
0
of 0 vote
@ChrisK - In some cases has more than one solution, below are two cases.
case1:
Distances: 10, 20, 30, 70, 80, 100, 190, 200, 260, 270, 280, 290, 300
[0, 10, 200, 270, 280, 300]
[0, 20, 30, 100, 290, 300]
case2:
'10,10,10,10,20,20,20,20,20,20,30,30,30,30,30,30,40,40,40,40,50,50,50,50,50,50,50,50,60,60,70,70,70,70,70,80,80,80,80,90,90,90,100,100,100,100,100,100,100,110,110,120,120,120,130,130,130,130,140,140,140,150,150,150,150,160,160,170,170,170,180,180,180,180,200,200,200,200,210,210,220,220,230,230,230,240,250,250,250,260,270,270,280,280,290,300,300,300,310,310,320,320,330,340,350'
[0, 20, 30, 40, 50, 70, 100, 120, 140, 170, 200, 250, 300, 340, 350]
[0, 10, 50, 100, 150, 180, 210, 230, 250, 280, 300, 310, 320, 330, 350]
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
Page:
1
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.
@ChrisK - Yes, points are always mirrored and two(or no) solutions exists for each of distances.
- Vijay.B August 21, 2017Thanks for your inputs.