<?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>Mon, 23 Aug 2010 09:39:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<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>
	<item>
		<title>By: Mike</title>
		<link>http://lbrandy.com/blog/2008/08/a-programming-interview-question-explored/comment-page-1/#comment-112</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Sat, 20 Sep 2008 21:43:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.lbrandy.com/blog/2008/08/a-programming-interview-question-explored/#comment-112</guid>
		<description>No, after the duel, the knight has to drink from well 1 again followed by well 5. So, if the dragon gives him water from well 6, he&#039;s not poisoned and goes through the cycle of poisoned/not poisoned. If the dragon gives him fresh water, which we assume exists on the island, he&#039;s poisoned with well 1, he basically drinks more from well 1 and then well 5 to cure himself.

I have to say this is yet another stupid programming question. It doesn&#039;t in any way pertain to domain space of building good software systems or products or even the domain space of what the software is suppose to solve.
Someone who is good a solving puzzles or possibly took a course in game theory could work this out. How does this question determine whether the interviewee is a good programmer? 

My accountant who loves riddles could solve this puzzle but sucks at coding.</description>
		<content:encoded><![CDATA[<p>No, after the duel, the knight has to drink from well 1 again followed by well 5. So, if the dragon gives him water from well 6, he&#8217;s not poisoned and goes through the cycle of poisoned/not poisoned. If the dragon gives him fresh water, which we assume exists on the island, he&#8217;s poisoned with well 1, he basically drinks more from well 1 and then well 5 to cure himself.</p>
<p>I have to say this is yet another stupid programming question. It doesn&#8217;t in any way pertain to domain space of building good software systems or products or even the domain space of what the software is suppose to solve.<br />
Someone who is good a solving puzzles or possibly took a course in game theory could work this out. How does this question determine whether the interviewee is a good programmer? </p>
<p>My accountant who loves riddles could solve this puzzle but sucks at coding.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
