karthikvaidy
BAN USER- 4 Answers Careercup placement services
Basic but many questions:
- karthikvaidy November 30, 2009
How does this work? Has anyone been placed/interviewed by submitting their resume here? When I submit my resume do I get a confirmation? Who goes through the resumes and sends it around to companies?| Flag | PURGE
Choice 4. All could be X.
- karthikvaidy November 05, 200936 hours.
If we consider that in effect it takes 10 hours to revolve 3/4 of the orbit, it will take 3 such revolutions to pass the starting point twice at which time the satellite will be 3/4 of a revolution away from the starting point. It will take 6 more hours to reach the starting point.
So total become 3*10 + 6 = 36
For each station, find (distance that can be traveled with gas available in that station - distance to next station). Create an array of these values and find the maximum positive consecutive substring. You have to start driving at the beginning of this substring.
PS: Remember that the stations are circularly arranged, so should the array. So it is possible for you to start on the "last" station and still go around to all of them.
PPS: Another thing that can be done is to ensure that sum of all distances to be traveled is less than distance that can be traveled with available gas. Otherwise, it makes not difference where you start, you will get stranded.
Iteration 1: ABCDE becomes CDEAB
- karthikvaidy November 05, 2009Iteration 2: CDEAB becomes EABCD
Iteration 3: EABCD becomes BCDEA
D is in the middle