<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: A Googlish puzzle</title>
	<atom:link href="http://www.sitepoint.com/blogs/2006/06/10/a-googlish-puzzle/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sitepoint.com/blogs/2006/06/10/a-googlish-puzzle/</link>
	<description>News, opinion, and fresh thinking for web developers and designers. The official podcast of sitepoint.com.</description>
	<lastBuildDate>Sun, 08 Nov 2009 19:29:21 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Gili</title>
		<link>http://www.sitepoint.com/blogs/2006/06/10/a-googlish-puzzle/comment-page-2/#comment-523600</link>
		<dc:creator>Gili</dc:creator>
		<pubDate>Thu, 29 Nov 2007 06:50:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=1567#comment-523600</guid>
		<description>Thanks Zjivko! Now I understand why the MS API looks like it does...</description>
		<content:encoded><![CDATA[<p>Thanks Zjivko! Now I understand why the MS API looks like it does&#8230;</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Zhivko</title>
		<link>http://www.sitepoint.com/blogs/2006/06/10/a-googlish-puzzle/comment-page-2/#comment-438052</link>
		<dc:creator>Zhivko</dc:creator>
		<pubDate>Mon, 05 Nov 2007 09:19:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=1567#comment-438052</guid>
		<description>the reaason questions like these are important is that companies like Google/ Microsoft are the ones that write the API. While a majority of the programming community is just using these API the Googles and Microsofts need to be really carefully with what kind of programmers they select. Hence such mind testing questions.</description>
		<content:encoded><![CDATA[<p>the reaason questions like these are important is that companies like Google/ Microsoft are the ones that write the API. While a majority of the programming community is just using these API the Googles and Microsofts need to be really carefully with what kind of programmers they select. Hence such mind testing questions.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Cs</title>
		<link>http://www.sitepoint.com/blogs/2006/06/10/a-googlish-puzzle/comment-page-2/#comment-221361</link>
		<dc:creator>Cs</dc:creator>
		<pubDate>Mon, 09 Apr 2007 19:33:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=1567#comment-221361</guid>
		<description>Binary gives the best average amount of drops</description>
		<content:encoded><![CDATA[<p>Binary gives the best average amount of drops</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Smart</title>
		<link>http://www.sitepoint.com/blogs/2006/06/10/a-googlish-puzzle/comment-page-2/#comment-74798</link>
		<dc:creator>Smart</dc:creator>
		<pubDate>Thu, 26 Oct 2006 22:24:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=1567#comment-74798</guid>
		<description>Don&#039;t the eggshells get weaker with each drop?</description>
		<content:encoded><![CDATA[<p>Don&#8217;t the eggshells get weaker with each drop?</p>]]></content:encoded>
	</item>
	<item>
		<title>By: krt</title>
		<link>http://www.sitepoint.com/blogs/2006/06/10/a-googlish-puzzle/comment-page-2/#comment-47384</link>
		<dc:creator>krt</dc:creator>
		<pubDate>Thu, 24 Aug 2006 04:46:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=1567#comment-47384</guid>
		<description>&lt;blockquote&gt;&quot;i assume on the 14 model that if the first breaks on 77, you then drop from 71 73 75 to find the exact floor.&quot;&lt;/blockquote&gt;
No, eg: if the highest floor you can drop from is 73, the egg would survive from floor 73 and break on 75. How do you know if the highest floor you can drop from is 73 or 74?

Dev T, good job on beating me to it, that is very close to the best answer. I think my numbers were a bit different towards the end.</description>
		<content:encoded><![CDATA[<blockquote><p>&#8220;i assume on the 14 model that if the first breaks on 77, you then drop from 71 73 75 to find the exact floor.&#8221;</p></blockquote>
<p>No, eg: if the highest floor you can drop from is 73, the egg would survive from floor 73 and break on 75. How do you know if the highest floor you can drop from is 73 or 74?</p>
<p>Dev T, good job on beating me to it, that is very close to the best answer. I think my numbers were a bit different towards the end.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: dionsiseire</title>
		<link>http://www.sitepoint.com/blogs/2006/06/10/a-googlish-puzzle/comment-page-2/#comment-34529</link>
		<dc:creator>dionsiseire</dc:creator>
		<pubDate>Sun, 02 Jul 2006 05:07:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=1567#comment-34529</guid>
		<description>i assume on the 14 model that if the first breaks on 77, you then drop from 71 73 75 to find the exact floor.

if it breaks on 75 you know 74 is the highest

but without physically testing 74 cant you be sure it wont break</description>
		<content:encoded><![CDATA[<p>i assume on the 14 model that if the first breaks on 77, you then drop from 71 73 75 to find the exact floor.</p>
<p>if it breaks on 75 you know 74 is the highest</p>
<p>but without physically testing 74 cant you be sure it wont break</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Dev T</title>
		<link>http://www.sitepoint.com/blogs/2006/06/10/a-googlish-puzzle/comment-page-2/#comment-32211</link>
		<dc:creator>Dev T</dc:creator>
		<pubDate>Fri, 23 Jun 2006 06:24:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=1567#comment-32211</guid>
		<description>- Drop the first egg at floors 14,27,39,50,60,69,77,84,90,95,99,100

- when the first egg breaks, drop second egg in the range of floors underneath the floor between the previously tested floor and the floor
at which the first egg breaks.

eg.  if first egg breaks at 77 then test range of floors 70 to 76

When the second egg breaks, the floor beneath is the highest floor you can drop the eggs safely without the egg breaking.

The maximum number of drops is 14 with this method.

Why begin at 14? 14 is the last number in the arithmetic progression
1+2+3+4+5+6+7+8+9+10+11+12+13+14 which just exceeds 100.
The next floor is 14 + 13 = 27
The next floor is 27 + 12 = 39
The next floor is 39 + 11 = 50
,etc,etc,etc

Dev T
TTCS OSSWIN CD at http://www.ttcsweb.org/osswin-cd/</description>
		<content:encoded><![CDATA[<p>- Drop the first egg at floors 14,27,39,50,60,69,77,84,90,95,99,100</p>
<p>- when the first egg breaks, drop second egg in the range of floors underneath the floor between the previously tested floor and the floor<br />
at which the first egg breaks.</p>
<p>eg.  if first egg breaks at 77 then test range of floors 70 to 76</p>
<p>When the second egg breaks, the floor beneath is the highest floor you can drop the eggs safely without the egg breaking.</p>
<p>The maximum number of drops is 14 with this method.</p>
<p>Why begin at 14? 14 is the last number in the arithmetic progression<br />
1+2+3+4+5+6+7+8+9+10+11+12+13+14 which just exceeds 100.<br />
The next floor is 14 + 13 = 27<br />
The next floor is 27 + 12 = 39<br />
The next floor is 39 + 11 = 50<br />
,etc,etc,etc</p>
<p>Dev T<br />
TTCS OSSWIN CD at <a href="http://www.ttcsweb.org/osswin-cd/" rel="nofollow">http://www.ttcsweb.org/osswin-cd/</a></p>]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://www.sitepoint.com/blogs/2006/06/10/a-googlish-puzzle/comment-page-2/#comment-31967</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Thu, 22 Jun 2006 12:52:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=1567#comment-31967</guid>
		<description>Doesn&#039;t sqrt(n) give you a good delta size??
What about going up in a triangular number series 1,3,6,10,15.. with the first egg and using a linear search with the second egg?</description>
		<content:encoded><![CDATA[<p>Doesn&#8217;t sqrt(n) give you a good delta size??<br />
What about going up in a triangular number series 1,3,6,10,15.. with the first egg and using a linear search with the second egg?</p>]]></content:encoded>
	</item>
	<item>
		<title>By: RobR</title>
		<link>http://www.sitepoint.com/blogs/2006/06/10/a-googlish-puzzle/comment-page-2/#comment-31746</link>
		<dc:creator>RobR</dc:creator>
		<pubDate>Wed, 21 Jun 2006 17:12:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=1567#comment-31746</guid>
		<description>easy.

use a &lt;em&gt;binary chop&lt;/em&gt;. this is a technique for locating an item in a list quickly and with a consistent and predictable elapsed time.

for 100 floors, this finds the correct floor with a maximum of 7 attempts.

increase the number of floors to 1000 and it will find the correct floor with a maximum of 17 attempts.

this is the correct answer and i claim my $5! :)</description>
		<content:encoded><![CDATA[<p>easy.</p>
<p>use a <em>binary chop</em>. this is a technique for locating an item in a list quickly and with a consistent and predictable elapsed time.</p>
<p>for 100 floors, this finds the correct floor with a maximum of 7 attempts.</p>
<p>increase the number of floors to 1000 and it will find the correct floor with a maximum of 17 attempts.</p>
<p>this is the correct answer and i claim my $5! :)</p>]]></content:encoded>
	</item>
	<item>
		<title>By: rommi</title>
		<link>http://www.sitepoint.com/blogs/2006/06/10/a-googlish-puzzle/comment-page-2/#comment-30634</link>
		<dc:creator>rommi</dc:creator>
		<pubDate>Fri, 16 Jun 2006 23:20:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=1567#comment-30634</guid>
		<description>Or drop an egg from every 10 floor - 10 drops max.

Then when and if it breaks go the previous X1 floor and start with the second egg.

This whay you will have a maximum of 19 drops to figure it out.</description>
		<content:encoded><![CDATA[<p>Or drop an egg from every 10 floor &#8211; 10 drops max.</p>
<p>Then when and if it breaks go the previous X1 floor and start with the second egg.</p>
<p>This whay you will have a maximum of 19 drops to figure it out.</p>]]></content:encoded>
	</item>
</channel>
</rss>
