<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Hedge Fund Coding Skill Screening: Part I</title>
	<link>http://oliver.kaljuvee.info/blog/index.php/2008/02/12/testing/</link>
	<description>Weblog by Oliver Kaljuvee about software, technology, finance, and life.</description>
	<pubDate>Thu, 09 Sep 2010 22:04:57 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.2</generator>

	<item>
		<title>by: oliver</title>
		<link>http://oliver.kaljuvee.info/blog/index.php/2008/02/12/testing/#comment-4982</link>
		<pubDate>Sat, 16 Jan 2010 23:26:11 +0000</pubDate>
		<guid>http://oliver.kaljuvee.info/blog/index.php/2008/02/12/testing/#comment-4982</guid>
					<description>Also contributed by Mark Fitzgerald--the entire program, in-line and in Python 3.  Shows the real power of functional scripting languages.
&lt;p/&gt;
&lt;pre name=&quot;code&quot; class=&quot;python&quot;&gt;
import string
 
for testSentence in [
    'A quick brown fox jumps over the lazy dog',
    'A slow yellow fox crawls under the proactive dog',
    'Lions, and tigers, and bears, oh my!',
    'abcdefghijklmnopqrstuvwxyz']:
    print(''.join(set(string.ascii_lowercase) - set(testSentence)))
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Also contributed by Mark Fitzgerald&#8211;the entire program, in-line and in Python 3.  Shows the real power of functional scripting languages.</p>
<p/>
<pre name="code" class="python">
import string

for testSentence in [
    'A quick brown fox jumps over the lazy dog',
    'A slow yellow fox crawls under the proactive dog',
    'Lions, and tigers, and bears, oh my!',
    'abcdefghijklmnopqrstuvwxyz']:
    print(''.join(set(string.ascii_lowercase) - set(testSentence)))
</pre>
]]></content:encoded>
				</item>
	<item>
		<title>by: oliver</title>
		<link>http://oliver.kaljuvee.info/blog/index.php/2008/02/12/testing/#comment-4981</link>
		<pubDate>Sat, 16 Jan 2010 23:11:48 +0000</pubDate>
		<guid>http://oliver.kaljuvee.info/blog/index.php/2008/02/12/testing/#comment-4981</guid>
					<description>Here's a functional approach contributed by Mark Fitzgerald.  Pretty cool--enjoy! 
&lt;p/&gt;
&lt;pre name=&quot;code&quot; class=&quot;java&quot;&gt;
private static String getMissingLetters(String sentence) {
	Set&amp;#60;Character&amp;#62; missingCharSet = new TreeSet&amp;#60;Character&amp;#62;();
	Set&amp;#60;Character&amp;#62; foundCharSet = new TreeSet&amp;#60;Character&amp;#62;();
	StringBuffer missingCharsSB = new StringBuffer();
	
	for (char c='a'; c&lt;='z'; ++c)
		missingCharSet.add(c);
	for (char c: sentence.toLowerCase().toCharArray())
		foundCharSet.add(c);

	missingCharSet.removeAll(foundCharSet);

	for (char c : missingCharSet)
		missingCharsSB.append(c);

	return missingCharsSB.toString();
}
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Here&#8217;s a functional approach contributed by Mark Fitzgerald.  Pretty cool&#8211;enjoy! </p>
<p/>
<pre name="code" class="java">
private static String getMissingLetters(String sentence) {
	Set&lt;Character&gt; missingCharSet = new TreeSet&lt;Character&gt;();
	Set&lt;Character&gt; foundCharSet = new TreeSet&lt;Character&gt;();
	StringBuffer missingCharsSB = new StringBuffer();

	for (char c='a'; c<='z'; ++c)
		missingCharSet.add(c);
	for (char c: sentence.toLowerCase().toCharArray())
		foundCharSet.add(c);

	missingCharSet.removeAll(foundCharSet);

	for (char c : missingCharSet)
		missingCharsSB.append(c);

	return missingCharsSB.toString();
}
</pre>
]]></content:encoded>
				</item>
</channel>
</rss>
