Crossing the BRIDGE past the GUARD | Amazon Interview

A guard is stationed at the entrance to a bridge.

  • Scarpe Running Nike Uomo
  • He is tasked to shoot anyone who tries to cross to the other side of the bridge, and to turn away anyone who comes in from the opposite side of the bridge. College Jerseys You are on his side of the bridge and want to escape to the other side. Women Air Jordan 6 Because the bridge is old and rickety, anyone who tries to cross it does so at a constant speed, asics gel nimbus 17 mujer and it always takes exactly 10 minutes to cross. new balance blanche asos The guard comes out of his post every 6 minutes and looks down the bridge for any people trying to leave, and at all other times he sits in his post and snoozes.

  • Air Max 90 Flyknit
  • You know you can sneak past him when he’s sleeping, adidas original pas cher fille but the problem is that you won’t be able to make it all the way to the other side of the bridge before he sees you (since he comes out every 6 minutes,

  • nike free run 5 0 blu uomo
  • but it takes 10 minutes to cross). One day a brilliant idea comes to you, Canotte Utah Jazz and soon you’ve successfully crossed to the other side of the bridge without being shot.

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    For Inserting code :
    Paste your code in the comment form, select it and then click the language link

    C | C++ | Java |