{"id":7509,"date":"2009-12-04T21:36:52","date_gmt":"2009-12-05T01:36:52","guid":{"rendered":"http:\/\/ok-cleek.com\/blogs\/?p=7509"},"modified":"2009-12-04T21:36:52","modified_gmt":"2009-12-05T01:36:52","slug":"two-eggs","status":"publish","type":"post","link":"https:\/\/ok-cleek.com\/blogs\/?p=7509","title":{"rendered":"Two iPhones"},"content":{"rendered":"<p>Another interview question:<\/p>\n<p>You are in a 100 story building. You have <strong>two <\/strong>iPhones. Assume the iPhones are identical and will break when dropped out the window (ie. they fall all the way to the street below) from floor <em>X<\/em> or higher, but they will not break if dropped from below floor <em>X<\/em>. If an iPhone doesn't break, it doesn't grow weaker (ie. you can safely drop it from floor <i>X - 1<\/i> an infinite number of times, if you have the time).<\/p>\n<p><em>X<\/em> can be 1, it can be 100, or any number in between. <\/p>\n<p>What is the <em>fewest<\/em> number of drops you need to find <i>X<\/i>?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Another interview question: You are in a 100 story building. You have two iPhones. Assume the iPhones are identical and will break when dropped out the window (ie. they fall all the way to the street below) from floor X or higher, but they will not break if dropped from below floor X. If an [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7509","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/ok-cleek.com\/blogs\/index.php?rest_route=\/wp\/v2\/posts\/7509","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ok-cleek.com\/blogs\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ok-cleek.com\/blogs\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ok-cleek.com\/blogs\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ok-cleek.com\/blogs\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7509"}],"version-history":[{"count":0,"href":"https:\/\/ok-cleek.com\/blogs\/index.php?rest_route=\/wp\/v2\/posts\/7509\/revisions"}],"wp:attachment":[{"href":"https:\/\/ok-cleek.com\/blogs\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7509"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ok-cleek.com\/blogs\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7509"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ok-cleek.com\/blogs\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7509"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}