<p>I wrote a &quot;solution&quot; to this problem, but it appears to return incorrect results. There&#39;s a pastebin of the code at <a href="http://hpaste.org/fastcgi/hpaste.fcgi/view?id=2121">http://hpaste.org/fastcgi/hpaste.fcgi/view?id=2121</a> and a picture of the inputs, outputs, and expected results graphed at <a href="http://img510.imageshack.us/img510/9971/resultsg.jpg">http://img510.imageshack.us/img510/9971/resultsg.jpg</a><br clear="all">
</p><p>I&#39;m wondering if this is a flaw in my code, my understanding of the problem, or both. Any ideas on how to track this one down would be very much appreciated.</p><p>Thank you!</p><br>-- <br>ヽ(^o^)ノ &nbsp;-rob<br>