<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Disqus - Latest Comments for Saumitro</title><link>http://disqus.com/people/e3be4026f24cbf28045edb14b823fa06/</link><description></description><language>en</language><lastBuildDate>Thu, 17 Jan 2008 22:34:08 -0000</lastBuildDate><item><title>Re: Facebook job puzzles: Korn Shell | 20bits</title><link>http://20bits.disqus.com/facebook_job_puzzles_korn_shell_20bits/#comment-3793251</link><description>I believe there is a slight error in your calculations. The problem is right on the "threshold length" of 4. The maximum LCM of a length four partition of 26 is 1155, corresponding to the partition [11,7,5,3], not 1260. The set you specified [4,5,7,9] isn't a partition of 26; it adds up to 25. However, you can insert a 1 in the set, leaving the lcm unaffected which gives you the max lcm of 1260 for length 5 and beyond.&lt;br&gt;&lt;br&gt;I solved the problem on a lazy afternoon last year, and was curious about its origins and other solutions, and I came across your page. The origin as far as I can tell is an ancient 70s paper entitled "Control Structure Abstractions of the Backtracking Programming Technique". They called the problem "Malicious Secretary" (IMHO, a much better title than the misleading "Korn Shell")</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Saumitro</dc:creator><pubDate>Wed, 16 Jan 2008 01:54:51 -0000</pubDate></item><item><title>Re: Facebook job puzzles: Korn Shell | 20bits</title><link>http://20bits.disqus.com/facebook_job_puzzles_korn_shell_20bits/#comment-3793254</link><description>Ah, I used an incorrect constraint of sum(cycle-lengths)=26 instead of sum(cycle-lengths)</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Saumitro</dc:creator><pubDate>Thu, 17 Jan 2008 22:30:14 -0000</pubDate></item><item><title>Re: Facebook job puzzles: Korn Shell | 20bits</title><link>http://20bits.disqus.com/facebook_job_puzzles_korn_shell_20bits/#comment-3793255</link><description>[got truncated?] Ah, I used an incorrect constraint of sum(cycle-lengths)=26 instead of sum(cycle-lengths)</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Saumitro</dc:creator><pubDate>Thu, 17 Jan 2008 22:34:08 -0000</pubDate></item></channel></rss>