<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://united-coders.com"  xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>united-coders.com - challenge</title>
 <link>http://united-coders.com/taxonomy/term/92/0</link>
 <description></description>
 <language>en</language>
<item>
 <title>Java Challenge: Dropping Balloons in Java</title>
 <link>http://united-coders.com/nico-heid/java-challenge-dropping-balloons-in-java</link>
 <description>&lt;!--paging_filter--&gt;&lt;p&gt;Recently I read about a nice article in one of my monthly magazines. I won&#039;t give you the author right now, otherwise googling for the solution would be too easy.&lt;br /&gt;
He stated it as a possible interview question, but I really like it for the algorithm side of it. It reminded my strongly of some of the&lt;br /&gt;
examples given in the book &lt;a href=&quot;http://www.amazon.com/gp/product/0316778494?ie=UTF8&amp;amp;tag=nicoheidcom-20&amp;amp;linkCode=as2&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=0316778494&quot;&gt;How Would You Move Mount Fuji?&lt;/a&gt;&lt;img src=&quot;http://www.assoc-amazon.com/e/ir?t=nicoheidcom-20&amp;amp;l=as2&amp;amp;o=1&amp;amp;a=0316919160&quot; alt=&quot;&quot; style=&quot;border: medium none ! important; margin: 0px ! important;&quot; border=&quot;0&quot; height=&quot;1&quot; width=&quot;1&quot; /&gt; Which is excellent by the way.&lt;/p&gt;
&lt;p&gt;So your task is to write a Java function which computes the following:&lt;span class=&quot;read-more&quot;&gt;&lt;a href=&quot;/nico-heid/java-challenge-dropping-balloons-in-java&quot;&gt;&lt;strong&gt;Read more&lt;/strong&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;

&lt;!--
&lt;rdf:RDF xmlns:rdf=&quot;http://www.w3.org/1999/02/22-rdf-syntax-ns#&quot; xmlns:dc=&quot;http://purl.org/dc/elements/1.1/&quot; xmlns:trackback=&quot;http://madskills.com/public/xml/rss/module/trackback/&quot;&gt;
&lt;rdf:Description rdf:about=&quot;http://united-coders.com/nico-heid/java-challenge-dropping-balloons-in-java&quot; dc:identifier=&quot;http://united-coders.com/nico-heid/java-challenge-dropping-balloons-in-java&quot; dc:title=&quot;Java Challenge: Dropping Balloons in Java&quot; trackback:ping=&quot;http://united-coders.com/trackback/40&quot; /&gt;
&lt;/rdf:RDF&gt;
--&gt;
&lt;div class=&#039;sexybookmarks-default-3915&#039;&gt;&lt;/div&gt;</description>
 <comments>http://united-coders.com/nico-heid/java-challenge-dropping-balloons-in-java#comments</comments>
 <category domain="http://united-coders.com/category/tags/algorithms">algorithms</category>
 <category domain="http://united-coders.com/category/tags/challenge">challenge</category>
 <category domain="http://united-coders.com/category/tags/java">java</category>
 <category domain="http://united-coders.com/category/tags/puzzle">puzzle</category>
 <pubDate>Sun, 15 Nov 2009 17:24:22 +0000</pubDate>
 <dc:creator>Nico Heid</dc:creator>
 <guid isPermaLink="false">40 at http://united-coders.com</guid>
</item>
<item>
 <title>Javascript Challenge: Lotto Number Generator</title>
 <link>http://united-coders.com/matthias-reuter/javascript-challenge-lotto-number-generator</link>
 <description>&lt;!--paging_filter--&gt;&lt;p&gt;The &lt;a href=&quot;http://www.lotto.de&quot;&gt;German lottery&lt;/a&gt; currently holds a jackpot of about 30 million Euro. A friend of mine took the bait and participated yesterday. Since he is a software developer, he wrote a small program to get him six random numbers in the range of 1 and 49.&lt;/p&gt;
&lt;p&gt;Well, it&#039;s not difficult to write such a programm. The challenge is to do so in little bytes. So I challenge you:&lt;/p&gt;
&lt;p&gt;Write a JavaScript function that generates random lotto numbers. This function has to return an array of six different numbers from 1 to 49 (including both) in ascending order. You may use features of &lt;a href=&quot;http://www.ecma-international.org/publications/standards/Ecma-262.htm&quot;&gt;ECMA-262&lt;/a&gt; only, that means no Array.contains and stuff. You must not induce global variables.&lt;/p&gt;
&lt;p&gt;The function has to look like this&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;geshifilter&quot;&gt;&lt;div class=&quot;javascript geshifilter-javascript&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;var&lt;/span&gt; getRandomLottoNumbers &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;function&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #006600; font-style: italic;&quot;&gt;// your implementation here&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class=&quot;read-more&quot;&gt;&lt;a href=&quot;/matthias-reuter/javascript-challenge-lotto-number-generator&quot;&gt;&lt;strong&gt;Read more&lt;/strong&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;

&lt;!--
&lt;rdf:RDF xmlns:rdf=&quot;http://www.w3.org/1999/02/22-rdf-syntax-ns#&quot; xmlns:dc=&quot;http://purl.org/dc/elements/1.1/&quot; xmlns:trackback=&quot;http://madskills.com/public/xml/rss/module/trackback/&quot;&gt;
&lt;rdf:Description rdf:about=&quot;http://united-coders.com/matthias-reuter/javascript-challenge-lotto-number-generator&quot; dc:identifier=&quot;http://united-coders.com/matthias-reuter/javascript-challenge-lotto-number-generator&quot; dc:title=&quot;Javascript Challenge: Lotto Number Generator&quot; trackback:ping=&quot;http://united-coders.com/trackback/39&quot; /&gt;
&lt;/rdf:RDF&gt;
--&gt;
&lt;div class=&#039;sexybookmarks-default-5575&#039;&gt;&lt;/div&gt;</description>
 <comments>http://united-coders.com/matthias-reuter/javascript-challenge-lotto-number-generator#comments</comments>
 <category domain="http://united-coders.com/category/tags/challenge">challenge</category>
 <category domain="http://united-coders.com/category/tags/javascript">javascript</category>
 <pubDate>Wed, 23 Sep 2009 13:18:01 +0000</pubDate>
 <dc:creator>Matthias Reuter</dc:creator>
 <guid isPermaLink="false">39 at http://united-coders.com</guid>
</item>
</channel>
</rss>


