<?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>One day at a time &#187; interview question</title>
	<atom:link href="http://www.terencekwan.com/tag/interview-question/feed" rel="self" type="application/rss+xml" />
	<link>http://www.terencekwan.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Sun, 14 Mar 2010 18:28:55 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to sort data in a big file</title>
		<link>http://www.terencekwan.com/how-to-sort-data-in-a-big-file</link>
		<comments>http://www.terencekwan.com/how-to-sort-data-in-a-big-file#comments</comments>
		<pubDate>Fri, 20 Mar 2009 07:59:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[interview question]]></category>

		<guid isPermaLink="false">http://www.terencekwan.com/?p=69</guid>
		<description><![CDATA[This is from wikipedia (http://en.wikipedia.org/wiki/External_sorting)
One example of external sorting is the external mergesort algorithm. For example, for sorting 900 megabytes of data using only 100 megabytes of RAM:
1. Read 100 MB of the data in main memory and sort by some conventional method (usually quicksort).
2. Write the sorted data to disk.
3. Repeat steps 1 and [...]]]></description>
		<wfw:commentRss>http://www.terencekwan.com/how-to-sort-data-in-a-big-file/feed</wfw:commentRss>
		<slash:comments>-1</slash:comments>
		</item>
		<item>
		<title>Another silly interview question about how to swap 2 variables without temporary variable</title>
		<link>http://www.terencekwan.com/another-silly-interview-question-about-how-to-swap-2-variables-without-temporary-variable</link>
		<comments>http://www.terencekwan.com/another-silly-interview-question-about-how-to-swap-2-variables-without-temporary-variable#comments</comments>
		<pubDate>Fri, 20 Mar 2009 07:48:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[interview question]]></category>

		<guid isPermaLink="false">http://www.terencekwan.com/?p=67</guid>
		<description><![CDATA[How to swap 2 variables without using a temporary variable. Silly&#8230;
a=a+b;
b=a-b;
a=a-b;
]]></description>
		<wfw:commentRss>http://www.terencekwan.com/another-silly-interview-question-about-how-to-swap-2-variables-without-temporary-variable/feed</wfw:commentRss>
		<slash:comments>-1</slash:comments>
		</item>
		<item>
		<title>Find MYSQL Duplicate records</title>
		<link>http://www.terencekwan.com/find-mysql-duplicate-records</link>
		<comments>http://www.terencekwan.com/find-mysql-duplicate-records#comments</comments>
		<pubDate>Thu, 12 Mar 2009 03:45:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[interview question]]></category>

		<guid isPermaLink="false">http://www.terencekwan.com/?p=57</guid>
		<description><![CDATA[
If the database has a table call employees. The values are:

ID           Name
1              a
2              b
3              a
4              c
5              b

You want to find the duplicate record but not the first one (ie, ID# 3 and 5). You can do the following:
select id from employees where id not in (select distinct id from employees group by name);
]]></description>
		<wfw:commentRss>http://www.terencekwan.com/find-mysql-duplicate-records/feed</wfw:commentRss>
		<slash:comments>-1</slash:comments>
		</item>
	</channel>
</rss>
