<?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 Programming Interview Question, Explored</title>
	<atom:link href="http://lbrandy.com/blog/2008/08/a-programming-interview-question-explored/feed/" rel="self" type="application/rss+xml" />
	<link>http://lbrandy.com/blog/2008/08/a-programming-interview-question-explored/</link>
	<description>{ on programming and the internets, every monday }</description>
	<lastBuildDate>Thu, 17 May 2012 07:59:48 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: key</title>
		<link>http://lbrandy.com/blog/2008/08/a-programming-interview-question-explored/comment-page-1/#comment-29441</link>
		<dc:creator>key</dc:creator>
		<pubDate>Thu, 17 May 2012 07:12:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.lbrandy.com/blog/2008/08/a-programming-interview-question-explored/#comment-29441</guid>
		<description>This summer the room temperature is lower than the &lt;a href=&quot;http://aluminievadograma.com/&quot; rel=&quot;nofollow&quot;&gt; pvc дограма &lt;/a&gt;standard and the winter is higher. Glass Sunenergy savings on heating and air conditioning, &lt;a href=&quot;http://xn--80aafybakikq7bg7c.org&quot; rel=&quot;nofollow&quot;&gt; автоклиматици &lt;/a&gt;thanks to its excellent production technology.</description>
		<content:encoded><![CDATA[<p>This summer the room temperature is lower than the <a href="http://aluminievadograma.com/" rel="nofollow"> pvc дограма </a>standard and the winter is higher. Glass Sunenergy savings on heating and air conditioning, <a href="http://xn--80aafybakikq7bg7c.org" rel="nofollow"> автоклиматици </a>thanks to its excellent production technology.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: key</title>
		<link>http://lbrandy.com/blog/2008/08/a-programming-interview-question-explored/comment-page-1/#comment-29407</link>
		<dc:creator>key</dc:creator>
		<pubDate>Wed, 18 Apr 2012 11:27:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.lbrandy.com/blog/2008/08/a-programming-interview-question-explored/#comment-29407</guid>
		<description>This method consists in carrying on a conversation between manager &lt;a href=&quot;http://vimaks-klimatici.com/&quot; rel=&quot;nofollow&quot;&gt; климатици &lt;/a&gt; and employee evaluations of the results of his work.</description>
		<content:encoded><![CDATA[<p>This method consists in carrying on a conversation between manager <a href="http://vimaks-klimatici.com/" rel="nofollow"> климатици </a> and employee evaluations of the results of his work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: key</title>
		<link>http://lbrandy.com/blog/2008/08/a-programming-interview-question-explored/comment-page-1/#comment-29381</link>
		<dc:creator>key</dc:creator>
		<pubDate>Wed, 18 Apr 2012 08:34:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.lbrandy.com/blog/2008/08/a-programming-interview-question-explored/#comment-29381</guid>
		<description>First stage: the leader and subordinate meet, discuss and identify &lt;a href=&quot;http://xn--hxajxbacedk6ejc.net&quot; rel=&quot;nofollow&quot;&gt; κλιματιστικά &lt;/a&gt; clear and well defined objectives of the activity to be performed by him for a certain period of time.</description>
		<content:encoded><![CDATA[<p>First stage: the leader and subordinate meet, discuss and identify <a href="http://xn--hxajxbacedk6ejc.net" rel="nofollow"> κλιματιστικά </a> clear and well defined objectives of the activity to be performed by him for a certain period of time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bruno</title>
		<link>http://lbrandy.com/blog/2008/08/a-programming-interview-question-explored/comment-page-1/#comment-26713</link>
		<dc:creator>Bruno</dc:creator>
		<pubDate>Fri, 05 Nov 2010 11:30:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.lbrandy.com/blog/2008/08/a-programming-interview-question-explored/#comment-26713</guid>
		<description>As a biologist/would-be programmer (who happened to land here by typing &quot;genetic algorithms&quot;, heh), this question was nearly non-sensical to me.

Because, well, I mean, a &quot;biologist&quot; would instantly react to this by assuming that both would still be poisoned. The idea that a poison (e.g. from well #6) can be a cure for another one is actually very valid (hell, even arsenic, which is very, VERY toxic, is used as a drug in certain cases of leukemia), but for a substance to be effective both as a cure and a poison (which is the cas for the substances of wells #2 to #6), it has to be quite concentrated.

Therefore, if one was to drink from well #6 to cure oneself from another poisoning, one would still be poisoned because of the still-too-high concentration of the poison of well #6 in one&#039;s blood (my my this is a complicated sentence).

I don&#039;t know if I was clear enough, and of course this kind of considerations should not be taken into account for what is essentially a riddle. Yet, I think this shows that different people with different background would respond in very distinct ways to this kind of question.

By the way, your blog is really, really good. I&#039;ve learned a lot of things, and you&#039;ve even made me want to learn C.

Bruno

PS : Sorry if there are grammar mistakes, I try to improve my English as much as I can, but the mistakes you don&#039;t see are the worst to get ride of.

PS 2 : Would you have any advice on a good textbook on pattern recognition and signal analysis ? You mentioned it a couple of times.</description>
		<content:encoded><![CDATA[<p>As a biologist/would-be programmer (who happened to land here by typing &#8220;genetic algorithms&#8221;, heh), this question was nearly non-sensical to me.</p>
<p>Because, well, I mean, a &#8220;biologist&#8221; would instantly react to this by assuming that both would still be poisoned. The idea that a poison (e.g. from well #6) can be a cure for another one is actually very valid (hell, even arsenic, which is very, VERY toxic, is used as a drug in certain cases of leukemia), but for a substance to be effective both as a cure and a poison (which is the cas for the substances of wells #2 to #6), it has to be quite concentrated.</p>
<p>Therefore, if one was to drink from well #6 to cure oneself from another poisoning, one would still be poisoned because of the still-too-high concentration of the poison of well #6 in one&#8217;s blood (my my this is a complicated sentence).</p>
<p>I don&#8217;t know if I was clear enough, and of course this kind of considerations should not be taken into account for what is essentially a riddle. Yet, I think this shows that different people with different background would respond in very distinct ways to this kind of question.</p>
<p>By the way, your blog is really, really good. I&#8217;ve learned a lot of things, and you&#8217;ve even made me want to learn C.</p>
<p>Bruno</p>
<p>PS : Sorry if there are grammar mistakes, I try to improve my English as much as I can, but the mistakes you don&#8217;t see are the worst to get ride of.</p>
<p>PS 2 : Would you have any advice on a good textbook on pattern recognition and signal analysis ? You mentioned it a couple of times.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tagz &#124; &#34;lbrandy.com » Blog Archive » A Programming Interview Question, Explored&#34; &#124; Comments</title>
		<link>http://lbrandy.com/blog/2008/08/a-programming-interview-question-explored/comment-page-1/#comment-6725</link>
		<dc:creator>Tagz &#124; &#34;lbrandy.com » Blog Archive » A Programming Interview Question, Explored&#34; &#124; Comments</dc:creator>
		<pubDate>Sat, 16 May 2009 16:59:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.lbrandy.com/blog/2008/08/a-programming-interview-question-explored/#comment-6725</guid>
		<description>[...]               [upmod] [downmod]     lbrandy.com » Blog Archive » A Programming Interview Question, Explored  (lbrandy.com)    1 points posted 8 months ago by SixSixSix  tags imported career interviews   [...]</description>
		<content:encoded><![CDATA[<p>[...]               [upmod] [downmod]     lbrandy.com » Blog Archive » A Programming Interview Question, Explored  (lbrandy.com)    1 points posted 8 months ago by SixSixSix  tags imported career interviews   [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: EJ</title>
		<link>http://lbrandy.com/blog/2008/08/a-programming-interview-question-explored/comment-page-1/#comment-3541</link>
		<dc:creator>EJ</dc:creator>
		<pubDate>Wed, 04 Mar 2009 22:06:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.lbrandy.com/blog/2008/08/a-programming-interview-question-explored/#comment-3541</guid>
		<description>You&#039;re mis-stating the original riddle.
Here are the differences:

1. There are no other sources of water in the Kingdom other than the wells.
2. Neither is permitted to go &amp; drink subsequent to the duel.
3. The duel is actually: They each bring *two* glasses of well water to the duel.  Each gives one glass to the othe
r to drink.  Each then drinks from a glass he brought with him.
4. The Knight lives &amp; the dragon dies.  How?

The canonical answer is that the dragon brings two #6 glasses, under the assumption that he will give the Knight wa
ter for which there is no antidote, &amp; under the assumption that whatever the Knight brings, he has the antidote for
.

The Knight drinks from well #1 prior to the duel.  He drinks the #6 the dragon gives him, which is the antidote for
 the #1 he had prior to the duel.  He then need to drink what he brought.  What did he bring?  He brought a mixture
 of well #1, mixed with well #2 which neutralized #1, creating a placebo.

The Knight gives the dragon a similar #1/#2 concoction.  The dragon drinks the innocuous water, then poisons himsel
f with his own #6 &amp; dies.

There you go.

I&#039;m a programmer, by the way.
20+ years on Wall St.</description>
		<content:encoded><![CDATA[<p>You&#8217;re mis-stating the original riddle.<br />
Here are the differences:</p>
<p>1. There are no other sources of water in the Kingdom other than the wells.<br />
2. Neither is permitted to go &amp; drink subsequent to the duel.<br />
3. The duel is actually: They each bring *two* glasses of well water to the duel.  Each gives one glass to the othe<br />
r to drink.  Each then drinks from a glass he brought with him.<br />
4. The Knight lives &amp; the dragon dies.  How?</p>
<p>The canonical answer is that the dragon brings two #6 glasses, under the assumption that he will give the Knight wa<br />
ter for which there is no antidote, &amp; under the assumption that whatever the Knight brings, he has the antidote for<br />
.</p>
<p>The Knight drinks from well #1 prior to the duel.  He drinks the #6 the dragon gives him, which is the antidote for<br />
 the #1 he had prior to the duel.  He then need to drink what he brought.  What did he bring?  He brought a mixture<br />
 of well #1, mixed with well #2 which neutralized #1, creating a placebo.</p>
<p>The Knight gives the dragon a similar #1/#2 concoction.  The dragon drinks the innocuous water, then poisons himsel<br />
f with his own #6 &amp; dies.</p>
<p>There you go.</p>
<p>I&#8217;m a programmer, by the way.<br />
20+ years on Wall St.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: EJ</title>
		<link>http://lbrandy.com/blog/2008/08/a-programming-interview-question-explored/comment-page-1/#comment-3539</link>
		<dc:creator>EJ</dc:creator>
		<pubDate>Wed, 04 Mar 2009 22:05:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.lbrandy.com/blog/2008/08/a-programming-interview-question-explored/#comment-3539</guid>
		<description>You&#039;re mis-stating the original riddle.
Here are the differences:

1. There are no other sources of water in the Kingdom other than the wells.
2. Neither is permitted to go &amp; drink subsequent to the duel.
3. The duel is actually: They each bring *two* glasses of well water to the duel.  Each gives one glass to the other to drink.  Each then drinks from a glass he brought with him.
4. The Knight lives &amp; the dragon dies.  How?

The canonical answer is that the dragon brings two #6 glasses, under the assumption that he will give the Knight water for which there is no antidote, &amp; under the assumption that whatever the Knight brings, he has the antidote for.

The Knight drinks from well #1 prior to the duel.  He drinks the #6 the dragon gives him, which is the antidote for the #1 he had prior to the duel.  He then need to drink what he brought.  What did he bring?  He brought a mixture of well #1, mixed with well #2 which neutralized #1, creating a placebo.

The Knight gives the dragon a similar #1/#2 concoction.  The dragon drinks the innocuous water, then poisons himself with his own #6 &amp; dies.

There you go.

I&#039;m a programmer, by the way.
20+ years on Wall St.</description>
		<content:encoded><![CDATA[<p>You&#8217;re mis-stating the original riddle.<br />
Here are the differences:</p>
<p>1. There are no other sources of water in the Kingdom other than the wells.<br />
2. Neither is permitted to go &amp; drink subsequent to the duel.<br />
3. The duel is actually: They each bring *two* glasses of well water to the duel.  Each gives one glass to the other to drink.  Each then drinks from a glass he brought with him.<br />
4. The Knight lives &amp; the dragon dies.  How?</p>
<p>The canonical answer is that the dragon brings two #6 glasses, under the assumption that he will give the Knight water for which there is no antidote, &amp; under the assumption that whatever the Knight brings, he has the antidote for.</p>
<p>The Knight drinks from well #1 prior to the duel.  He drinks the #6 the dragon gives him, which is the antidote for the #1 he had prior to the duel.  He then need to drink what he brought.  What did he bring?  He brought a mixture of well #1, mixed with well #2 which neutralized #1, creating a placebo.</p>
<p>The Knight gives the dragon a similar #1/#2 concoction.  The dragon drinks the innocuous water, then poisons himself with his own #6 &amp; dies.</p>
<p>There you go.</p>
<p>I&#8217;m a programmer, by the way.<br />
20+ years on Wall St.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

