<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">
<channel>
	<title>Comments for My Tech Interviews</title>
	
	<link>http://www.mytechinterviews.com</link>
	<description>PREPARE FOR A TECHNICAL INTERVIEW</description>
	<lastBuildDate>Tue, 03 Aug 2010 12:27:52 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/MyTechInterviewsComments" /><feedburner:info uri="mytechinterviewscomments" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Comment on 100 Prisoners in Solitary Cells by Doggie</title>
		<link>http://feedproxy.google.com/~r/MyTechInterviewsComments/~3/Z6gALE9n2Mc/comment-page-1</link>
		<dc:creator>Doggie</dc:creator>
		<pubDate>Tue, 03 Aug 2010 12:27:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.mytechinterviews.com/?p=76#comment-363</guid>
		<description>If bob is not allowed more than once, then it is impossible to say “Every prisoner has been in the special room at least once”. Do you have any suggestions if that is the case?</description>
		<content:encoded><![CDATA[<p>If bob is not allowed more than once, then it is impossible to say “Every prisoner has been in the special room at least once”. Do you have any suggestions if that is the case?</p>
]]></content:encoded>
	<feedburner:origLink>http://www.mytechinterviews.com/100-prisoners-in-solitary-cells/comment-page-1#comment-363</feedburner:origLink></item>
	<item>
		<title>Comment on 100 Prisoners in Solitary Cells by rak</title>
		<link>http://feedproxy.google.com/~r/MyTechInterviewsComments/~3/rrKRCDMmYJw/comment-page-1</link>
		<dc:creator>rak</dc:creator>
		<pubDate>Tue, 03 Aug 2010 06:28:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.mytechinterviews.com/?p=76#comment-362</guid>
		<description>what if bob is not allowed more then once    ,even if every other persons enterd more than 1000 times</description>
		<content:encoded><![CDATA[<p>what if bob is not allowed more then once    ,even if every other persons enterd more than 1000 times</p>
]]></content:encoded>
	<feedburner:origLink>http://www.mytechinterviews.com/100-prisoners-in-solitary-cells/comment-page-1#comment-362</feedburner:origLink></item>
	<item>
		<title>Comment on How Strong is an Egg? by Ruchi</title>
		<link>http://feedproxy.google.com/~r/MyTechInterviewsComments/~3/Mq7O7w-Ra3U/comment-page-1</link>
		<dc:creator>Ruchi</dc:creator>
		<pubDate>Mon, 02 Aug 2010 12:38:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.mytechinterviews.com/?p=252#comment-361</guid>
		<description>What if your egg breaks on the 100th floor and the 50th floor. You won't have any more eggs to try with. This won't solve the problem.</description>
		<content:encoded><![CDATA[<p>What if your egg breaks on the 100th floor and the 50th floor. You won&#8217;t have any more eggs to try with. This won&#8217;t solve the problem.</p>
]]></content:encoded>
	<feedburner:origLink>http://www.mytechinterviews.com/how-strong-is-your-egg/comment-page-1#comment-361</feedburner:origLink></item>
	<item>
		<title>Comment on 100 Prisoners in Solitary Cells by Ruchi</title>
		<link>http://feedproxy.google.com/~r/MyTechInterviewsComments/~3/UmT3GOAaDs8/comment-page-1</link>
		<dc:creator>Ruchi</dc:creator>
		<pubDate>Mon, 02 Aug 2010 12:37:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.mytechinterviews.com/?p=76#comment-360</guid>
		<description>The second time Sam goes in, he doesn't do anything. So picking them at alternating frequencies will not change the outcome. Bob will only count it once.</description>
		<content:encoded><![CDATA[<p>The second time Sam goes in, he doesn&#8217;t do anything. So picking them at alternating frequencies will not change the outcome. Bob will only count it once.</p>
]]></content:encoded>
	<feedburner:origLink>http://www.mytechinterviews.com/100-prisoners-in-solitary-cells/comment-page-1#comment-360</feedburner:origLink></item>
	<item>
		<title>Comment on 8 Identical Balls Problem by Huseyin Gultekin</title>
		<link>http://feedproxy.google.com/~r/MyTechInterviewsComments/~3/ttZtKipAXR0/comment-page-1</link>
		<dc:creator>Huseyin Gultekin</dc:creator>
		<pubDate>Sat, 31 Jul 2010 21:11:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.mytechinterviews.com/?p=46#comment-359</guid>
		<description>Good question for efficiency measurement :)</description>
		<content:encoded><![CDATA[<p>Good question for efficiency measurement <img src='http://www.mytechinterviews.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	<feedburner:origLink>http://www.mytechinterviews.com/8-identical-balls-problem/comment-page-1#comment-359</feedburner:origLink></item>
	<item>
		<title>Comment on 5 Pirates Fight for 100 Gold Coins by Huseyin Gultekin</title>
		<link>http://feedproxy.google.com/~r/MyTechInterviewsComments/~3/sBhydjTInYU/comment-page-1</link>
		<dc:creator>Huseyin Gultekin</dc:creator>
		<pubDate>Sat, 31 Jul 2010 20:26:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.mytechinterviews.com/?p=167#comment-358</guid>
		<description>Since the site doesn't show my second function correcty, I only want to display first one. Please disregard my previous comment
&lt;code&gt;
//ASSUMPTION: totalGold &gt;= numProrates/2
// Checks are left out intentionally


//Displays distribution after totalGold distributed to pirates
void displayDistribute(int numPirates, int totalGold)
{
    cout&lt;=0;i-=2)   
    {
         cout&lt;&lt;"1,"; 
         totalGold--;   
    }
    cout&lt;&lt;totalGold&lt;&lt;"}"&lt;&lt;endl;
}
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Since the site doesn&#8217;t show my second function correcty, I only want to display first one. Please disregard my previous comment<br />
<code><br />
//ASSUMPTION: totalGold &gt;= numProrates/2<br />
// Checks are left out intentionally</p>
<p>//Displays distribution after totalGold distributed to pirates<br />
void displayDistribute(int numPirates, int totalGold)<br />
{<br />
    cout&lt;=0;i-=2)<br />
    {<br />
         cout&lt;&lt;&quot;1,&quot;;<br />
         totalGold--;<br />
    }<br />
    cout&lt;&lt;totalGold&lt;&lt;&quot;}&quot;&lt;&lt;endl;<br />
}<br />
</code></p>
]]></content:encoded>
	<feedburner:origLink>http://www.mytechinterviews.com/5-pirates-fight-for-100-gold-coins/comment-page-1#comment-358</feedburner:origLink></item>
	<item>
		<title>Comment on 5 Pirates Fight for 100 Gold Coins by HEDGE</title>
		<link>http://feedproxy.google.com/~r/MyTechInterviewsComments/~3/jR47A2oeTDM/comment-page-1</link>
		<dc:creator>HEDGE</dc:creator>
		<pubDate>Sat, 31 Jul 2010 12:35:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.mytechinterviews.com/?p=167#comment-354</guid>
		<description>Considering the answer in reverse order:
If pirate 5 offers 1 coin to each pirate 4 and 3, pirate 4 can still vote aganist him and make the same deal himself with other pirates. 
So by same continuity only pirate 2 can make a deal like that after voting against everybody.
So obviously pirate 5 will have to offer a larger share to pirate 4 and 3 to convice them to vote for him. so generously he will have to make a 40:30:30:0:0 or else pirate 4 will obviously vote against him and make the deal himself.</description>
		<content:encoded><![CDATA[<p>Considering the answer in reverse order:<br />
If pirate 5 offers 1 coin to each pirate 4 and 3, pirate 4 can still vote aganist him and make the same deal himself with other pirates.<br />
So by same continuity only pirate 2 can make a deal like that after voting against everybody.<br />
So obviously pirate 5 will have to offer a larger share to pirate 4 and 3 to convice them to vote for him. so generously he will have to make a 40:30:30:0:0 or else pirate 4 will obviously vote against him and make the deal himself.</p>
]]></content:encoded>
	<feedburner:origLink>http://www.mytechinterviews.com/5-pirates-fight-for-100-gold-coins/comment-page-1#comment-354</feedburner:origLink></item>
	<item>
		<title>Comment on How Old Are My Children? by rak</title>
		<link>http://feedproxy.google.com/~r/MyTechInterviewsComments/~3/jHmT_ajPC9Y/comment-page-1</link>
		<dc:creator>rak</dc:creator>
		<pubDate>Thu, 29 Jul 2010 08:44:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.mytechinterviews.com/?p=173#comment-353</guid>
		<description>3 3 8 because 2 2 6 and 3 3 8 gives same sum   if it is other than this we wouldnt ask other hint as he knows his birth  date</description>
		<content:encoded><![CDATA[<p>3 3 8 because 2 2 6 and 3 3 8 gives same sum   if it is other than this we wouldnt ask other hint as he knows his birth  date</p>
]]></content:encoded>
	<feedburner:origLink>http://www.mytechinterviews.com/how-old-are-my-children/comment-page-1#comment-353</feedburner:origLink></item>
	<item>
		<title>Comment on 10 Google Interview Puzzles by neha</title>
		<link>http://feedproxy.google.com/~r/MyTechInterviewsComments/~3/65yyscFWbdE/comment-page-1</link>
		<dc:creator>neha</dc:creator>
		<pubDate>Mon, 26 Jul 2010 06:13:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.mytechinterviews.com/?p=607#comment-349</guid>
		<description>Why not 9,4,2 for the kids age?</description>
		<content:encoded><![CDATA[<p>Why not 9,4,2 for the kids age?</p>
]]></content:encoded>
	<feedburner:origLink>http://www.mytechinterviews.com/10-google-interview-questions/comment-page-1#comment-349</feedburner:origLink></item>
	<item>
		<title>Comment on 12 Identical Balls Problem by rahul Tamilchemmal</title>
		<link>http://feedproxy.google.com/~r/MyTechInterviewsComments/~3/gnZyXNGRUws/comment-page-1</link>
		<dc:creator>rahul Tamilchemmal</dc:creator>
		<pubDate>Mon, 19 Jul 2010 16:41:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.mytechinterviews.com/?p=55#comment-346</guid>
		<description>lets split them into 4 grps of 3 each..A(1,2,3) B(4,5,6) C(7,8,9) D(10,11,12)...then weigh A against B and C vs D..So now in 2 tries we can find out which grp has the ball with the diffe weight..then in another 1 try we can find out the different ball...correct me if am wrong guys....</description>
		<content:encoded><![CDATA[<p>lets split them into 4 grps of 3 each..A(1,2,3) B(4,5,6) C(7,8,9) D(10,11,12)&#8230;then weigh A against B and C vs D..So now in 2 tries we can find out which grp has the ball with the diffe weight..then in another 1 try we can find out the different ball&#8230;correct me if am wrong guys&#8230;.</p>
]]></content:encoded>
	<feedburner:origLink>http://www.mytechinterviews.com/12-identical-balls-problem/comment-page-1#comment-346</feedburner:origLink></item>
</channel>
</rss>
