Dropping Eggs from a building | Inmobi interview

You stand before a 100-story building with two eggs. chaussures nike Using only these two eggs, nike air presto hombre you must figure out the highest floor from which you can drop an egg such that the egg won’t break when it hits the ground (we’ll call this the “highest safe floor”). nike air max pas cher Every floor is equally likely to be the highest safe floor,

  • Nike Air Max 2016 Nero Uomo
  • including the top floor, Chaussures Nike Pas Cher and it’s also just as likely that the egg will break from every floor.

  • ROSHE LD-1000 QS
  • You can assume that if you drop an egg and it doesn’t break,

  • Air Max 90 Donna Bianche
  • its shell is just as strong as it was before you dropped it. asics gel kinsei 4 cena If you want to minimize the expected number of drops you have to perform,

    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 |