Hi Ashish,

Your algo does not have a chance for jump_back.
This may be required for certain cases, especially when multiple cars
are running on one lane.

My solution was for one car on one lane, hence car_times[i] gives the
car in i-th lane will take to hit the path frog is trying to cross.
It should not be too difficult to put multiple cars on single lane in
my algo.

Actually, from a game perspective, the problem can have many parts
like:
speed of cars vary,
frog can move sideways too instead of vertically on the road.
frog can make upto m jumps
etc etc.

Regards
Techie

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to