Practo Interview Question for Software Developers
- 0of 0 votes
Write a Code- ruchitraj93 February 14, 2017 in India
Steve is going to throw a party at his place tonight.He needs to visit two shops near his home-the first shop is d1 meters away from his place,the second shop is d2 meters away from his place, and there are d3 meters between these two shops.Calculate the minimum distance he needs to walk to visit both both shops and return back home. Steve always start from his palce.He can only travel using these 3 routes.HE can use any route any amount of time necessary,the only thing he needs to achieve is the minimum distance.
Find the minimum distance Steve has to walk to visit both shops and return home.
| Report Duplicate | Flag | PURGE
Practo Software Developer Java
Interview Type: Written Test
Open Chat in New Window