<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>@ infinity, plus 1 &#187; puzzle</title>
	<atom:link href="http://www.sids.in/blog/tag/puzzle/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sids.in/blog</link>
	<description>if I&#039;m not having fun, I&#039;m not doing it right</description>
	<lastBuildDate>Sat, 27 Aug 2011 19:32:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>A CS Puzzle</title>
		<link>http://www.sids.in/blog/2008/05/a-cs-puzzle/</link>
		<comments>http://www.sids.in/blog/2008/05/a-cs-puzzle/#comments</comments>
		<pubDate>Mon, 19 May 2008 18:43:39 +0000</pubDate>
		<dc:creator>sids</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[puzzle]]></category>

		<guid isPermaLink="false">http://www.sids.in/blog/2008/05/20/a-cs-puzzle/</guid>
		<description><![CDATA[Here is an interesting puzzle a friend/colleague put me to a few days ago: You are given a very (very, very &#8230;.you get how very, don&#8217;t you?) long array of natural numbers and another natural number k. The task is to find out if there is any the first sequence of numbers in the array [...]]]></description>
			<content:encoded><![CDATA[<p>Here is an interesting puzzle a friend/colleague put me to a few days ago:</p>
<p>You are given a very (very, very &#8230;.you get how <em>very</em>, don&#8217;t you?) long array of natural numbers and another natural number <em>k</em>. The task is to find out <strike>if there is any</strike> <em>the first</em> sequence of numbers in the array whose sum is divisible by <em>k (if there is any)</em>. Of course, you need to come up with the most efficient algorithm for this.</p>
<p>Useless hint: This can be accomplished in <em>O(n)</em>, <em>n</em> being the size of the array. <strong>Update:</strong> I&#8217;m not sure if my solution is correct, so I&#8217;m not even sure if this (useless) hint is correct.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sids.in/blog/2008/05/a-cs-puzzle/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

