Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • 3
    \$\begingroup\$ I think a consistent input format should be defined. "The input can have any structure you like" is a big red flag. Can the input be the solution? \$\endgroup\$ Commented Sep 4, 2015 at 7:21
  • \$\begingroup\$ @Calvin'sHobbies I have updated the question \$\endgroup\$ Commented Sep 4, 2015 at 7:59
  • \$\begingroup\$ Any chance we could get an example input/output for 1-2 cases? \$\endgroup\$ Commented Mar 3, 2016 at 20:29
  • \$\begingroup\$ So the question (and I'm assuming solution) assume that the road(s) in question are right-hand-drive? \$\endgroup\$ Commented Mar 27, 2016 at 14:30
  • \$\begingroup\$ This is exactly how Google Cars work \$\endgroup\$ Commented Jun 6, 2016 at 19:31