<?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>Fri, 03 Feb 2012 14:14:15 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<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>
	<item>
		<title>By: dragon master</title>
		<link>http://lbrandy.com/blog/2008/08/a-programming-interview-question-explored/comment-page-1/#comment-391</link>
		<dc:creator>dragon master</dc:creator>
		<pubDate>Mon, 27 Oct 2008 16:53:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.lbrandy.com/blog/2008/08/a-programming-interview-question-explored/#comment-391</guid>
		<description>when i was in grade 8 we loved to play dungeons and dragons...

but now i&#039;m 48 and don&#039;t have time for trivialities and would ask you if you wanted to hire a person who knows all about WOW or someone who actually can do some work within the budget of your department and within the timeline of the customer.

Either you went to school and learned or else you just read WROX/o&#039;Rielly books...talking with you for about 5 minutes would reveal that and any other &quot;tests&quot; like this will hint at someone having a &quot;superiority complex&quot; (which I mean in the nicest of ways of course).

wait another 20 years and re-read your posting...then grasshopper...you will understand</description>
		<content:encoded><![CDATA[<p>when i was in grade 8 we loved to play dungeons and dragons&#8230;</p>
<p>but now i&#8217;m 48 and don&#8217;t have time for trivialities and would ask you if you wanted to hire a person who knows all about WOW or someone who actually can do some work within the budget of your department and within the timeline of the customer.</p>
<p>Either you went to school and learned or else you just read WROX/o&#8217;Rielly books&#8230;talking with you for about 5 minutes would reveal that and any other &#8220;tests&#8221; like this will hint at someone having a &#8220;superiority complex&#8221; (which I mean in the nicest of ways of course).</p>
<p>wait another 20 years and re-read your posting&#8230;then grasshopper&#8230;you will understand</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lbrandy.com &#187; Blog Archive &#187; Here be the Code Monkeys</title>
		<link>http://lbrandy.com/blog/2008/08/a-programming-interview-question-explored/comment-page-1/#comment-128</link>
		<dc:creator>lbrandy.com &#187; Blog Archive &#187; Here be the Code Monkeys</dc:creator>
		<pubDate>Mon, 22 Sep 2008 15:14:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.lbrandy.com/blog/2008/08/a-programming-interview-question-explored/#comment-128</guid>
		<description>[...] started when I was completely struck by some of the responses to my post about the Knight &amp; Dragon problem. For those of you that don&#8217;t want to read it, it is basically a puzzle which effectively [...]</description>
		<content:encoded><![CDATA[<p>[...] started when I was completely struck by some of the responses to my post about the Knight &amp; Dragon problem. For those of you that don&#8217;t want to read it, it is basically a puzzle which effectively [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: louis</title>
		<link>http://lbrandy.com/blog/2008/08/a-programming-interview-question-explored/comment-page-1/#comment-114</link>
		<dc:creator>louis</dc:creator>
		<pubDate>Sat, 20 Sep 2008 23:55:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.lbrandy.com/blog/2008/08/a-programming-interview-question-explored/#comment-114</guid>
		<description>@mike, and others,

I sympathize with people who say this is a bad interview question. I even said as much in the article. I disagree on the reasons why, however.

The meat of the problem amounts to developing an algorithm (which is what an optimal strategy is). I don&#039;t see how anyone can reject algorithm development as a necessary skill for programmers.

I think you could easily object that there&#039;s alot of unstated rules that need to be assumed and therefore it&#039;s a bit more of a brain-teaser or puzzler than a simple algorithm metaphor. I think that&#039;s a valid point. But if we brush those issues aside and state the problem more clearly, it becomes a simple &quot;make me an algorithm&quot; question. </description>
		<content:encoded><![CDATA[<p>@mike, and others,</p>
<p>I sympathize with people who say this is a bad interview question. I even said as much in the article. I disagree on the reasons why, however.</p>
<p>The meat of the problem amounts to developing an algorithm (which is what an optimal strategy is). I don&#8217;t see how anyone can reject algorithm development as a necessary skill for programmers.</p>
<p>I think you could easily object that there&#8217;s alot of unstated rules that need to be assumed and therefore it&#8217;s a bit more of a brain-teaser or puzzler than a simple algorithm metaphor. I think that&#8217;s a valid point. But if we brush those issues aside and state the problem more clearly, it becomes a simple &#8220;make me an algorithm&#8221; question.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

