<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" media="screen" href="/styles/xslt/rss.xslt"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:c9="http://channel9.msdn.com">
<channel>
	<title>Channel 9 Forums - Tech Off - Coding Interview Question </title>
	<atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/Forums/rss"></atom:link>
	<image>
		<url>http://mschnlnine.vo.llnwd.net/d1/Dev/App_Themes/C9/images/feedimage.png</url>
		<title>Channel 9 Forums - Tech Off - Coding Interview Question </title>
		<link>http://channel9.msdn.com/Forums</link>
	</image>
	<description>Channel 9 keeps you up to date with the latest news and behind the scenes info from Microsoft that developers love to keep up with. From LINQ to SilverLight – Watch videos and hear about all the cool technologies coming and the people behind them.</description>
	<link>http://channel9.msdn.com/Forums</link>
	<language>en</language>
	<pubDate>Wed, 19 Jun 2013 18:39:56 GMT</pubDate>
	<lastBuildDate>Wed, 19 Jun 2013 18:39:56 GMT</lastBuildDate>
	<generator>Rev9</generator>
	<c9:totalResults>5</c9:totalResults>
	<c9:pageCount>-5</c9:pageCount>
	<c9:pageSize>-1</c9:pageSize>
	<item>
		<title>Tech Off - Coding Interview Question </title>
		<description><![CDATA[<p>An old co-worker uses this as his interview question and I'm curious about how you might solve it.</p><p>&quot;Given an array of integers, find the mean and the frequency&quot;</p><p>The mean is very simple, but the frequency part is where different methodologies can come in. &nbsp;Feel free to show and explain your process. &nbsp;There is no right or wrong way, it's just a test of your intelligence/creativity. &nbsp;</p><p><pre class="brush: csharp">
//TODO: Find the frequency

int[] intArray

int meanDivisor = intArray.Count();
int meanToBeDivided = 0;

foreach(int number in intArray)
{
    meanToBeDivided &#43;= number;
}

var mean = meanToBeDivided / meanDivisor;
</pre></p><p>&nbsp;</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/Coding-Interview-Question/a7f14574c6d042808a4aa10b0113dc00#a7f14574c6d042808a4aa10b0113dc00</link>
		<pubDate>Fri, 16 Nov 2012 16:44:22 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/Coding-Interview-Question/a7f14574c6d042808a4aa10b0113dc00#a7f14574c6d042808a4aa10b0113dc00</guid>
		<dc:creator>Robert Hamilton</dc:creator>
		<slash:comments>5</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/Rhamilton/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Coding Interview Question </title>
		<description><![CDATA[<p>This isn't a great interview question, because it's not really about programming, it's about knowledge - namely what is the mean and the frequency.</p><p>Instead, ask someone a question that encourages them to think about&nbsp;<em>how&nbsp;</em>to solve the question, like, write me a function that returns TRUE if the parameter is a prime number or not, or write me the backend to a login form for a website - and see whether they want to hash and salt and iterate the passwords, and whether they have a SQL injection in their code and so on.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/Coding-Interview-Question/6a186f637c8d4670acb5a10b012422fa#6a186f637c8d4670acb5a10b012422fa</link>
		<pubDate>Fri, 16 Nov 2012 17:43:38 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/Coding-Interview-Question/6a186f637c8d4670acb5a10b012422fa#6a186f637c8d4670acb5a10b012422fa</guid>
		<dc:creator>evildictaitor</dc:creator>
		<slash:comments>5</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/evildictaitor/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Coding Interview Question </title>
		<description><![CDATA[<p>Under pressue I'd probably use a Dictionary with the number as the key and the count as the value and build it as I looped through finding the mean.</p><p>I'm sure there are better ways to do it though.</p><p>And I'm generally against programming tests during an interview. I wouldn't be applying for the job if I didn't know how to program.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/Coding-Interview-Question/28767fc4b927493aac00a10b0138d561#28767fc4b927493aac00a10b0138d561</link>
		<pubDate>Fri, 16 Nov 2012 18:58:59 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/Coding-Interview-Question/28767fc4b927493aac00a10b0138d561#28767fc4b927493aac00a10b0138d561</guid>
		<dc:creator>Scott</dc:creator>
		<slash:comments>5</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/spivonious/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Coding Interview Question </title>
		<description><![CDATA[<p>LINQ makes this easy.</p><p>var mean = myIntArray.Average();</p><p><span class="kwd">var</span><span class="pln">&nbsp; duplicates </span><span class="pun">=</span><span class="pln">&nbsp; from val in myIntArray group val by val into result where result.Count() &gt; 1 select new { Item = val.Key, ItemCount = val.Count() };</span></p><p><span class="pln"><span class="kwd">foreach</span><span class="pun">(</span><span class="kwd">var</span><span class="pln"> i </span><span class="kwd">in</span><span class="pln"> duplicates</span><span class="pun">)</span></span><span class="pln"><span class="pun">{</span><span class="pln">&nbsp; </span><span class="typ">Debug</span><span class="pun">.</span><span class="typ">WriteLine</span><span class="pun">(</span><span class="kwd">string</span><span class="pun">.</span><span class="typ">Format</span><span class="pun">(</span><span class="str">&quot;The word {0} has {1} number of occurrences &quot;</span><span class="pun">,</span><span class="pln"> i</span><span class="pun">.</span><span class="typ">Item</span><span class="pun">,</span><span class="pln"> i</span><span class="pun">.</span><span class="typ">ItemCount</span><span class="pun">)); }</span></span></p><p><span class="pln"><span class="pun">---------------------------</span></span></p><p><span class="pln"><span class="pun">I find <em>asking questions</em> about technology is more valuable when interviewing a coder's skillset. Probably because I feel comfortable knowing what answers are relevant and revealing.</span></span></p><p><span class="pln"><span class="pun">Many interviewees&nbsp;find coding exercises too nerve-racking, even some who shouldn't be intimidated at all. I might save that for a leadership role interview. Not sure.</span></span></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/Coding-Interview-Question/a88244db87b4458d9bf1a10b013a3e38#a88244db87b4458d9bf1a10b013a3e38</link>
		<pubDate>Fri, 16 Nov 2012 19:04:07 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/Coding-Interview-Question/a88244db87b4458d9bf1a10b013a3e38#a88244db87b4458d9bf1a10b013a3e38</guid>
		<dc:creator>JohnAskew</dc:creator>
		<slash:comments>5</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/JohnAskew/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Coding Interview Question </title>
		<description><![CDATA[<p>@<a href="/Forums/TechOff/Coding-Interview-Question#c28767fc4b927493aac00a10b0138d561">spivonious</a>: An alternative depending on the question constraints&nbsp;is to just use an int array, treating the indices as the keys.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/Coding-Interview-Question/6762c4b337ba4b26a7e5a11801165829#6762c4b337ba4b26a7e5a11801165829</link>
		<pubDate>Thu, 29 Nov 2012 16:53:25 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/Coding-Interview-Question/6762c4b337ba4b26a7e5a11801165829#6762c4b337ba4b26a7e5a11801165829</guid>
		<dc:creator>System.UnauthorizedException: selected Species does not have access to target resource &#39;name&#39;.</dc:creator>
		<slash:comments>5</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/MasterPie/Discussions/RSS</wfw:commentRss>
	</item>
</channel>
</rss>