<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;C0cFSHY8eyp7ImA9WhBbE0k.&quot;"><id>tag:blogger.com,1999:blog-6314876008291942531</id><updated>2013-05-11T23:43:39.873-07:00</updated><category term="v" /><category term="I" /><title>Antonio Gulli's coding playground</title><subtitle type="html">Random commentary about C++, STL, Boost, Perl, Python, Algorithms, Problem Solving and Web Search</subtitle><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://codingplayground.blogspot.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://codingplayground.blogspot.com/" /><link rel="next" type="application/atom+xml" href="http://www.blogger.com/feeds/6314876008291942531/posts/default?start-index=26&amp;max-results=25&amp;redirect=false&amp;v=2" /><author><name>codingplayground</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://2.bp.blogspot.com/_ytulV26G9JA/TBkuNj8QAEI/AAAAAAAAANc/lJAR4RxVGXA/S220/me.png" /></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>1419</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/AntonioGullisCodingPlayground" /><feedburner:info uri="antoniogulliscodingplayground" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry gd:etag="W/&quot;Ck4FR34zeCp7ImA9WhBbE0k.&quot;"><id>tag:blogger.com,1999:blog-6314876008291942531.post-8032015241468451788</id><published>2013-05-12T23:41:00.000-07:00</published><updated>2013-05-11T23:41:56.080-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-05-11T23:41:56.080-07:00</app:edited><title>A new lighter implementation of K-means</title><content type="html">See my old posting&amp;nbsp;&lt;a href="http://codingplayground.blogspot.it/2009/03/k-means-in-c.html" style="background-color: #e0e0e0; color: #669933; font-family: Verdana, sans-serif; font-size: 11px; line-height: 15.46875px;"&gt;K-means in C++&lt;/a&gt;&amp;nbsp;.&lt;br /&gt;
Here you have a lightweight&amp;nbsp;&lt;a href="http://www.di.unipi.it/~gulli/coding/kkcluster.zip"&gt;code&lt;/a&gt;&lt;img src="http://feeds.feedburner.com/~r/AntonioGullisCodingPlayground/~4/tZvU9z6x3Mc" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://codingplayground.blogspot.com/feeds/8032015241468451788/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://codingplayground.blogspot.com/2013/05/a-new-lighter-implementation-of-k-means.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6314876008291942531/posts/default/8032015241468451788?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6314876008291942531/posts/default/8032015241468451788?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AntonioGullisCodingPlayground/~3/tZvU9z6x3Mc/a-new-lighter-implementation-of-k-means.html" title="A new lighter implementation of K-means" /><author><name>codingplayground</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://2.bp.blogspot.com/_ytulV26G9JA/TBkuNj8QAEI/AAAAAAAAANc/lJAR4RxVGXA/S220/me.png" /></author><thr:total>0</thr:total><feedburner:origLink>http://codingplayground.blogspot.com/2013/05/a-new-lighter-implementation-of-k-means.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0MDRn4zeCp7ImA9WhBbE04.&quot;"><id>tag:blogger.com,1999:blog-6314876008291942531.post-4967288764101751143</id><published>2013-05-10T23:17:00.000-07:00</published><updated>2013-05-11T23:17:57.080-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-05-11T23:17:57.080-07:00</app:edited><title>Stocastic Gradient Descent</title><content type="html">Added a stocastic gradient descent to the linear regression&amp;nbsp;&lt;a href="http://www.di.unipi.it/~gulli/coding/linearRegression.tgz" style="background-color: #e0e0e0; color: #669933; font-family: Verdana, sans-serif; font-size: 13px; line-height: 19.5px;"&gt;code&lt;/a&gt;&lt;img src="http://feeds.feedburner.com/~r/AntonioGullisCodingPlayground/~4/wu9kAM1avnI" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://codingplayground.blogspot.com/feeds/4967288764101751143/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://codingplayground.blogspot.com/2013/05/stocastic-gradient-descent.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6314876008291942531/posts/default/4967288764101751143?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6314876008291942531/posts/default/4967288764101751143?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AntonioGullisCodingPlayground/~3/wu9kAM1avnI/stocastic-gradient-descent.html" title="Stocastic Gradient Descent" /><author><name>codingplayground</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://2.bp.blogspot.com/_ytulV26G9JA/TBkuNj8QAEI/AAAAAAAAANc/lJAR4RxVGXA/S220/me.png" /></author><thr:total>0</thr:total><feedburner:origLink>http://codingplayground.blogspot.com/2013/05/stocastic-gradient-descent.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0MCQXgzfip7ImA9WhBbE04.&quot;"><id>tag:blogger.com,1999:blog-6314876008291942531.post-4635265684172251238</id><published>2013-05-09T10:59:00.000-07:00</published><updated>2013-05-11T23:17:40.686-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-05-11T23:17:40.686-07:00</app:edited><title>Learning linear regression with gradient descend</title><content type="html">Last week I restarted an old and good&amp;nbsp;behavior (see&amp;nbsp;&lt;span style="background-color: #e0e0e0; color: #ff6633; font-family: 'Lucida Grande', 'Trebuchet MS'; font-size: 17px; letter-spacing: -1px;"&gt;A collection of algos and data structures published here)&lt;/span&gt;. Every day, I take an well known algorithm and code it in boost and C++. Nothing else, just pure training and geeky fun. The only constrain is the time limit of 45mins, after a running session in St. James park.&lt;br /&gt;
&lt;br /&gt;
Here you have the code for &lt;a href="http://en.wikipedia.org/wiki/Linear_regression"&gt;linear regression&lt;/a&gt; with &lt;a href="http://en.wikipedia.org/wiki/Gradient_descent"&gt;gradient descent &lt;/a&gt;in C++, &lt;a href="http://www.boost.org/"&gt;boost&lt;/a&gt;, and &lt;a href="http://www.boost.org/doc/libs/1_53_0/libs/numeric/ublas/doc/index.htm"&gt;ublas&lt;/a&gt;. &amp;nbsp;&lt;b&gt;Linear regression &lt;/b&gt;is an approach to modeling the relationship between a scalar dependent variable y and one or more explanatory variables denoted X. Ublas is a powerful set of c routines for efficient matrix and vector computations, Boost:: numeric provides an elegant C++ way of using ublas based on templates.&lt;br /&gt;
&lt;br /&gt;
Here you have the &lt;a href="http://www.di.unipi.it/~gulli/coding/linearRegression.tgz"&gt;code&lt;/a&gt;&lt;img src="http://feeds.feedburner.com/~r/AntonioGullisCodingPlayground/~4/g6vqoq534hQ" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://codingplayground.blogspot.com/feeds/4635265684172251238/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://codingplayground.blogspot.com/2013/05/learning-linear-regression-with.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6314876008291942531/posts/default/4635265684172251238?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6314876008291942531/posts/default/4635265684172251238?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AntonioGullisCodingPlayground/~3/g6vqoq534hQ/learning-linear-regression-with.html" title="Learning linear regression with gradient descend" /><author><name>codingplayground</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://2.bp.blogspot.com/_ytulV26G9JA/TBkuNj8QAEI/AAAAAAAAANc/lJAR4RxVGXA/S220/me.png" /></author><thr:total>0</thr:total><feedburner:origLink>http://codingplayground.blogspot.com/2013/05/learning-linear-regression-with.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DU8BRXo5eyp7ImA9WhBWEEg.&quot;"><id>tag:blogger.com,1999:blog-6314876008291942531.post-3571658200624168425</id><published>2013-04-03T23:44:00.001-07:00</published><updated>2013-04-03T23:44:14.423-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-04-03T23:44:14.423-07:00</app:edited><title>Scaling requests with MemCached</title><content type="html">&lt;a href="https://www.usenix.org/conference/nsdi13/scaling-memcache-facebook"&gt;A nice paper from Facebook&lt;/a&gt;&amp;nbsp;about the use of memcached for scaling requests. Classical UDP connection-less&amp;nbsp;techniques, are mixed with TCP&amp;nbsp;coalescing via mcrouter. Also, they implement flow control, new&amp;nbsp;mechanism&amp;nbsp;for cache miss, and excess of requests on a particular key. The concept of pool is quite interesting.&lt;img src="http://feeds.feedburner.com/~r/AntonioGullisCodingPlayground/~4/h4GxKbtFD20" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://codingplayground.blogspot.com/feeds/3571658200624168425/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://codingplayground.blogspot.com/2013/04/scaling-requests-with-memcached.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6314876008291942531/posts/default/3571658200624168425?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6314876008291942531/posts/default/3571658200624168425?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AntonioGullisCodingPlayground/~3/h4GxKbtFD20/scaling-requests-with-memcached.html" title="Scaling requests with MemCached" /><author><name>codingplayground</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://2.bp.blogspot.com/_ytulV26G9JA/TBkuNj8QAEI/AAAAAAAAANc/lJAR4RxVGXA/S220/me.png" /></author><thr:total>0</thr:total><feedburner:origLink>http://codingplayground.blogspot.com/2013/04/scaling-requests-with-memcached.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0UAQHk4cSp7ImA9WhBXGEk.&quot;"><id>tag:blogger.com,1999:blog-6314876008291942531.post-6597686252222167703</id><published>2013-04-01T00:57:00.000-07:00</published><updated>2013-04-01T11:34:01.739-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-04-01T11:34:01.739-07:00</app:edited><title>Implement a binary search</title><content type="html">with&amp;nbsp;minimum&amp;nbsp;number of comparisons&lt;br /&gt;
&lt;br /&gt;&lt;img src="http://feeds.feedburner.com/~r/AntonioGullisCodingPlayground/~4/YxIc-z2xB6Y" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://codingplayground.blogspot.com/feeds/6597686252222167703/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://codingplayground.blogspot.com/2013/04/implement-binary-search.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6314876008291942531/posts/default/6597686252222167703?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6314876008291942531/posts/default/6597686252222167703?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AntonioGullisCodingPlayground/~3/YxIc-z2xB6Y/implement-binary-search.html" title="Implement a binary search" /><author><name>codingplayground</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://2.bp.blogspot.com/_ytulV26G9JA/TBkuNj8QAEI/AAAAAAAAANc/lJAR4RxVGXA/S220/me.png" /></author><thr:total>0</thr:total><feedburner:origLink>http://codingplayground.blogspot.com/2013/04/implement-binary-search.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEUMSXY_eCp7ImA9WhBXFk4.&quot;"><id>tag:blogger.com,1999:blog-6314876008291942531.post-2657349793439672135</id><published>2013-03-30T02:38:00.000-07:00</published><updated>2013-03-30T02:38:08.840-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-03-30T02:38:08.840-07:00</app:edited><title>Browser war revisited</title><content type="html">&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://2.bp.blogspot.com/-eou4jUcnbq4/UVayQ3hOvaI/AAAAAAAADQI/6Yfukmw4wFw/s1600/Browser-usage-worldwide-february-2013%5B1%5D.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/-eou4jUcnbq4/UVayQ3hOvaI/AAAAAAAADQI/6Yfukmw4wFw/s1600/Browser-usage-worldwide-february-2013%5B1%5D.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;img src="http://feeds.feedburner.com/~r/AntonioGullisCodingPlayground/~4/CDyxbG17iB0" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://codingplayground.blogspot.com/feeds/2657349793439672135/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://codingplayground.blogspot.com/2013/03/browser-war-revisited.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6314876008291942531/posts/default/2657349793439672135?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6314876008291942531/posts/default/2657349793439672135?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AntonioGullisCodingPlayground/~3/CDyxbG17iB0/browser-war-revisited.html" title="Browser war revisited" /><author><name>codingplayground</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://2.bp.blogspot.com/_ytulV26G9JA/TBkuNj8QAEI/AAAAAAAAANc/lJAR4RxVGXA/S220/me.png" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/-eou4jUcnbq4/UVayQ3hOvaI/AAAAAAAADQI/6Yfukmw4wFw/s72-c/Browser-usage-worldwide-february-2013%5B1%5D.jpg" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://codingplayground.blogspot.com/2013/03/browser-war-revisited.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkMMRng_eSp7ImA9WhBXFUU.&quot;"><id>tag:blogger.com,1999:blog-6314876008291942531.post-1166331669367290680</id><published>2013-03-29T12:14:00.001-07:00</published><updated>2013-03-29T12:14:47.641-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-03-29T12:14:47.641-07:00</app:edited><title>Find largest sum in a subarray</title><content type="html">&lt;span style="background-color: white; font-family: Helvetica, Arial, Verdana, sans-serif; font-size: 13px; line-height: 19.4375px;"&gt;Given an array that may contain both positive and negative integers, find the sum of contiguous subarray of numbers which has the largest sum.&lt;/span&gt;&lt;div&gt;
&lt;span style="font-family: Helvetica, Arial, Verdana, sans-serif; font-size: x-small;"&gt;&lt;span style="line-height: 19.4375px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Helvetica, Arial, Verdana, sans-serif; font-size: x-small;"&gt;&lt;span style="line-height: 19.4375px;"&gt;Hint: there is a divide &amp;amp; conquer solution in O(nlogn) and one cool solution in O(n)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;img src="http://feeds.feedburner.com/~r/AntonioGullisCodingPlayground/~4/Q0CDBcs-wqE" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://codingplayground.blogspot.com/feeds/1166331669367290680/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://codingplayground.blogspot.com/2013/03/find-largest-sum-in-subarray.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6314876008291942531/posts/default/1166331669367290680?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6314876008291942531/posts/default/1166331669367290680?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AntonioGullisCodingPlayground/~3/Q0CDBcs-wqE/find-largest-sum-in-subarray.html" title="Find largest sum in a subarray" /><author><name>codingplayground</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://2.bp.blogspot.com/_ytulV26G9JA/TBkuNj8QAEI/AAAAAAAAANc/lJAR4RxVGXA/S220/me.png" /></author><thr:total>0</thr:total><feedburner:origLink>http://codingplayground.blogspot.com/2013/03/find-largest-sum-in-subarray.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0MMQH47eSp7ImA9WhBXFUk.&quot;"><id>tag:blogger.com,1999:blog-6314876008291942531.post-3710282036001900997</id><published>2013-03-28T01:24:00.000-07:00</published><updated>2013-03-29T01:24:41.001-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-03-29T01:24:41.001-07:00</app:edited><title>Given a sorted array which is rotated N times(N is unknown), search a number in it</title><content type="html">Hint: binary search with modification&lt;img src="http://feeds.feedburner.com/~r/AntonioGullisCodingPlayground/~4/NXsBooWE9To" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://codingplayground.blogspot.com/feeds/3710282036001900997/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://codingplayground.blogspot.com/2013/03/given-sorted-array-which-is-rotated-n.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6314876008291942531/posts/default/3710282036001900997?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6314876008291942531/posts/default/3710282036001900997?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AntonioGullisCodingPlayground/~3/NXsBooWE9To/given-sorted-array-which-is-rotated-n.html" title="Given a sorted array which is rotated N times(N is unknown), search a number in it" /><author><name>codingplayground</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://2.bp.blogspot.com/_ytulV26G9JA/TBkuNj8QAEI/AAAAAAAAANc/lJAR4RxVGXA/S220/me.png" /></author><thr:total>0</thr:total><feedburner:origLink>http://codingplayground.blogspot.com/2013/03/given-sorted-array-which-is-rotated-n.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEEGQXw9fyp7ImA9WhBXFk4.&quot;"><id>tag:blogger.com,1999:blog-6314876008291942531.post-1412106896498981887</id><published>2013-03-27T01:14:00.000-07:00</published><updated>2013-03-30T02:43:40.267-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-03-30T02:43:40.267-07:00</app:edited><title>Find the maxium integer in an array of size N, in O(N) and additional space O(1)</title><content type="html">It's easy to make this in O(N) and O(N), or in O(N) and O(K) where K is the maximum int value contained in the array. However, this is requiring O(N) and O(1).&lt;br /&gt;
&lt;br /&gt;
Hint: one way of doing this is to modify the original array.&lt;img src="http://feeds.feedburner.com/~r/AntonioGullisCodingPlayground/~4/2P6nCm-UNNs" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://codingplayground.blogspot.com/feeds/1412106896498981887/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://codingplayground.blogspot.com/2013/03/find-maxium-integer-in-array-of-size-n.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6314876008291942531/posts/default/1412106896498981887?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6314876008291942531/posts/default/1412106896498981887?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AntonioGullisCodingPlayground/~3/2P6nCm-UNNs/find-maxium-integer-in-array-of-size-n.html" title="Find the maxium integer in an array of size N, in O(N) and additional space O(1)" /><author><name>codingplayground</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://2.bp.blogspot.com/_ytulV26G9JA/TBkuNj8QAEI/AAAAAAAAANc/lJAR4RxVGXA/S220/me.png" /></author><thr:total>1</thr:total><feedburner:origLink>http://codingplayground.blogspot.com/2013/03/find-maxium-integer-in-array-of-size-n.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUQDSHY6eSp7ImA9WhBXFk4.&quot;"><id>tag:blogger.com,1999:blog-6314876008291942531.post-93864699798788465</id><published>2013-03-26T02:56:00.000-07:00</published><updated>2013-03-30T02:56:19.811-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-03-30T02:56:19.811-07:00</app:edited><title>My talk at ECIR2013</title><content type="html">Gave an invited talk @ ECIR2013 and covered:&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Bing, as a platform, new trends for Microsoft search&lt;/li&gt;
&lt;li&gt;Bing suggestion technologies, an overview&lt;/li&gt;
&lt;li&gt;Bing &amp;amp; Cosmos, massive data mining models compared to Hadoop, Map &amp;amp; Reduce, Hive, Pig&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;img src="http://feeds.feedburner.com/~r/AntonioGullisCodingPlayground/~4/INEnbR4emng" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://codingplayground.blogspot.com/feeds/93864699798788465/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://codingplayground.blogspot.com/2013/03/my-talk-at-ecir2013.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6314876008291942531/posts/default/93864699798788465?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6314876008291942531/posts/default/93864699798788465?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AntonioGullisCodingPlayground/~3/INEnbR4emng/my-talk-at-ecir2013.html" title="My talk at ECIR2013" /><author><name>codingplayground</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://2.bp.blogspot.com/_ytulV26G9JA/TBkuNj8QAEI/AAAAAAAAANc/lJAR4RxVGXA/S220/me.png" /></author><thr:total>0</thr:total><feedburner:origLink>http://codingplayground.blogspot.com/2013/03/my-talk-at-ecir2013.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D08MSHozfyp7ImA9WhBXF08.&quot;"><id>tag:blogger.com,1999:blog-6314876008291942531.post-1776211154674047301</id><published>2013-03-25T23:36:00.000-07:00</published><updated>2013-03-31T03:31:29.487-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-03-31T03:31:29.487-07:00</app:edited><title>Posted a blog about autosuggest for Bing</title><content type="html">Last week, I posted a &lt;a href="http://www.bing.com/blogs/site_blogs/b/search/archive/2013/03/25/a-deeper-look-at-autosuggest.aspx"&gt;blog about autosuggest for Bing&lt;/a&gt;&lt;img src="http://feeds.feedburner.com/~r/AntonioGullisCodingPlayground/~4/ZVa8FUcB9D8" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://codingplayground.blogspot.com/feeds/1776211154674047301/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://codingplayground.blogspot.com/2013/03/posted-blog-about-autosuggest-for-bing.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6314876008291942531/posts/default/1776211154674047301?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6314876008291942531/posts/default/1776211154674047301?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AntonioGullisCodingPlayground/~3/ZVa8FUcB9D8/posted-blog-about-autosuggest-for-bing.html" title="Posted a blog about autosuggest for Bing" /><author><name>codingplayground</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://2.bp.blogspot.com/_ytulV26G9JA/TBkuNj8QAEI/AAAAAAAAANc/lJAR4RxVGXA/S220/me.png" /></author><thr:total>0</thr:total><feedburner:origLink>http://codingplayground.blogspot.com/2013/03/posted-blog-about-autosuggest-for-bing.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkIHQHk9cCp7ImA9WhBWEk8.&quot;"><id>tag:blogger.com,1999:blog-6314876008291942531.post-1859762925674378992</id><published>2013-03-24T22:01:00.000-07:00</published><updated>2013-04-05T22:02:11.768-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-04-05T22:02:11.768-07:00</app:edited><title>Given n sets, intersect them. preserve the duplication</title><content type="html">&lt;img src="http://feeds.feedburner.com/~r/AntonioGullisCodingPlayground/~4/zZwVKSnrMho" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://codingplayground.blogspot.com/feeds/1859762925674378992/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://codingplayground.blogspot.com/2013/03/given-n-sets-intersect-them-preserve.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6314876008291942531/posts/default/1859762925674378992?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6314876008291942531/posts/default/1859762925674378992?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AntonioGullisCodingPlayground/~3/zZwVKSnrMho/given-n-sets-intersect-them-preserve.html" title="Given n sets, intersect them. preserve the duplication" /><author><name>codingplayground</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://2.bp.blogspot.com/_ytulV26G9JA/TBkuNj8QAEI/AAAAAAAAANc/lJAR4RxVGXA/S220/me.png" /></author><thr:total>0</thr:total><feedburner:origLink>http://codingplayground.blogspot.com/2013/03/given-n-sets-intersect-them-preserve.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUECRXoycSp7ImA9WhBWF0U.&quot;"><id>tag:blogger.com,1999:blog-6314876008291942531.post-2066895155355241622</id><published>2013-03-23T04:57:00.000-07:00</published><updated>2013-04-12T10:27:44.499-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-04-12T10:27:44.499-07:00</app:edited><title>Find the row with max num of 1s</title><content type="html">Given a matrix nxm where all the rows are 0/1 and sorted. Find the row with max num of 1s.&lt;img src="http://feeds.feedburner.com/~r/AntonioGullisCodingPlayground/~4/x9MQ6xGA2l0" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://codingplayground.blogspot.com/feeds/2066895155355241622/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://codingplayground.blogspot.com/2013/03/find-row-with-max-num-of-1s.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6314876008291942531/posts/default/2066895155355241622?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6314876008291942531/posts/default/2066895155355241622?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AntonioGullisCodingPlayground/~3/x9MQ6xGA2l0/find-row-with-max-num-of-1s.html" title="Find the row with max num of 1s" /><author><name>codingplayground</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://2.bp.blogspot.com/_ytulV26G9JA/TBkuNj8QAEI/AAAAAAAAANc/lJAR4RxVGXA/S220/me.png" /></author><thr:total>0</thr:total><feedburner:origLink>http://codingplayground.blogspot.com/2013/03/find-row-with-max-num-of-1s.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUEBRn0zeSp7ImA9WhBWF0U.&quot;"><id>tag:blogger.com,1999:blog-6314876008291942531.post-6304951373128005044</id><published>2013-03-22T04:57:00.000-07:00</published><updated>2013-04-12T10:27:37.381-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-04-12T10:27:37.381-07:00</app:edited><title>Do a BFS for a direct graph</title><content type="html">&lt;img src="http://feeds.feedburner.com/~r/AntonioGullisCodingPlayground/~4/ijDwftegjLU" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://codingplayground.blogspot.com/feeds/6304951373128005044/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://codingplayground.blogspot.com/2013/03/do-bfs-for-direct-graph.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6314876008291942531/posts/default/6304951373128005044?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6314876008291942531/posts/default/6304951373128005044?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AntonioGullisCodingPlayground/~3/ijDwftegjLU/do-bfs-for-direct-graph.html" title="Do a BFS for a direct graph" /><author><name>codingplayground</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://2.bp.blogspot.com/_ytulV26G9JA/TBkuNj8QAEI/AAAAAAAAANc/lJAR4RxVGXA/S220/me.png" /></author><thr:total>0</thr:total><feedburner:origLink>http://codingplayground.blogspot.com/2013/03/do-bfs-for-direct-graph.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUEBQXk4eip7ImA9WhBWF0U.&quot;"><id>tag:blogger.com,1999:blog-6314876008291942531.post-2443869226113486428</id><published>2013-03-21T04:57:00.000-07:00</published><updated>2013-04-12T10:27:30.732-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-04-12T10:27:30.732-07:00</app:edited><title>Merge two BST</title><content type="html">optimal in time and space&lt;img src="http://feeds.feedburner.com/~r/AntonioGullisCodingPlayground/~4/jtQsTckCm4M" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://codingplayground.blogspot.com/feeds/2443869226113486428/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://codingplayground.blogspot.com/2013/03/merge-two-bst.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6314876008291942531/posts/default/2443869226113486428?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6314876008291942531/posts/default/2443869226113486428?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AntonioGullisCodingPlayground/~3/jtQsTckCm4M/merge-two-bst.html" title="Merge two BST" /><author><name>codingplayground</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://2.bp.blogspot.com/_ytulV26G9JA/TBkuNj8QAEI/AAAAAAAAANc/lJAR4RxVGXA/S220/me.png" /></author><thr:total>0</thr:total><feedburner:origLink>http://codingplayground.blogspot.com/2013/03/merge-two-bst.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUEARX4_cCp7ImA9WhBWF0U.&quot;"><id>tag:blogger.com,1999:blog-6314876008291942531.post-6011724480107255162</id><published>2013-03-20T04:57:00.000-07:00</published><updated>2013-04-12T10:27:24.048-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-04-12T10:27:24.048-07:00</app:edited><title>Merge and Intersect two lists of integers</title><content type="html">&lt;img src="http://feeds.feedburner.com/~r/AntonioGullisCodingPlayground/~4/SAZEEDA2Gkk" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://codingplayground.blogspot.com/feeds/6011724480107255162/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://codingplayground.blogspot.com/2013/03/merge-and-intersect-two-lists-of.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6314876008291942531/posts/default/6011724480107255162?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6314876008291942531/posts/default/6011724480107255162?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AntonioGullisCodingPlayground/~3/SAZEEDA2Gkk/merge-and-intersect-two-lists-of.html" title="Merge and Intersect two lists of integers" /><author><name>codingplayground</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://2.bp.blogspot.com/_ytulV26G9JA/TBkuNj8QAEI/AAAAAAAAANc/lJAR4RxVGXA/S220/me.png" /></author><thr:total>0</thr:total><feedburner:origLink>http://codingplayground.blogspot.com/2013/03/merge-and-intersect-two-lists-of.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0QFSHw_eCp7ImA9WhBXGEk.&quot;"><id>tag:blogger.com,1999:blog-6314876008291942531.post-489696999470980503</id><published>2013-03-11T11:34:00.000-07:00</published><updated>2013-04-01T11:35:19.240-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-04-01T11:35:19.240-07:00</app:edited><title>Sorted array and rotated</title><content type="html">&lt;span style="background-color: white; font-family: Helvetica, Arial, Verdana, sans-serif; font-size: 13px; line-height: 19.4375px;"&gt;Given a sorted array of distinct elements, and the array is rotated at an unknown position. Find minimum element in the array.&lt;/span&gt;&lt;img src="http://feeds.feedburner.com/~r/AntonioGullisCodingPlayground/~4/UXfPs4DBjCs" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://codingplayground.blogspot.com/feeds/489696999470980503/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://codingplayground.blogspot.com/2013/03/sorted-array-and-rotated.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6314876008291942531/posts/default/489696999470980503?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6314876008291942531/posts/default/489696999470980503?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AntonioGullisCodingPlayground/~3/UXfPs4DBjCs/sorted-array-and-rotated.html" title="Sorted array and rotated" /><author><name>codingplayground</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://2.bp.blogspot.com/_ytulV26G9JA/TBkuNj8QAEI/AAAAAAAAANc/lJAR4RxVGXA/S220/me.png" /></author><thr:total>0</thr:total><feedburner:origLink>http://codingplayground.blogspot.com/2013/03/sorted-array-and-rotated.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUYNQHs-fCp7ImA9WhBXFk4.&quot;"><id>tag:blogger.com,1999:blog-6314876008291942531.post-3214216641235915688</id><published>2013-03-10T01:35:00.000-08:00</published><updated>2013-03-30T02:53:11.554-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-03-30T02:53:11.554-07:00</app:edited><title>Given an array of positive integers, select two sub-sequences having minimum difference</title><content type="html">Hint: one element can be either in one sub-sequence or in the other, so this is a&amp;nbsp;typical&amp;nbsp;recursive problem&lt;img src="http://feeds.feedburner.com/~r/AntonioGullisCodingPlayground/~4/pHe3e9tVwio" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://codingplayground.blogspot.com/feeds/3214216641235915688/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://codingplayground.blogspot.com/2013/03/given-array-of-positive-integers-select.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6314876008291942531/posts/default/3214216641235915688?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6314876008291942531/posts/default/3214216641235915688?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AntonioGullisCodingPlayground/~3/pHe3e9tVwio/given-array-of-positive-integers-select.html" title="Given an array of positive integers, select two sub-sequences having minimum difference" /><author><name>codingplayground</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://2.bp.blogspot.com/_ytulV26G9JA/TBkuNj8QAEI/AAAAAAAAANc/lJAR4RxVGXA/S220/me.png" /></author><thr:total>0</thr:total><feedburner:origLink>http://codingplayground.blogspot.com/2013/03/given-array-of-positive-integers-select.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkADQ3YycSp7ImA9WhBXGEw.&quot;"><id>tag:blogger.com,1999:blog-6314876008291942531.post-779633361440017244</id><published>2013-03-09T04:12:00.000-08:00</published><updated>2013-04-01T04:12:52.899-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-04-01T04:12:52.899-07:00</app:edited><title>A sorted array with duplicates. Count #key</title><content type="html">In O(logN)&lt;img src="http://feeds.feedburner.com/~r/AntonioGullisCodingPlayground/~4/-x9z33UIpM8" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://codingplayground.blogspot.com/feeds/779633361440017244/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://codingplayground.blogspot.com/2013/03/a-sorted-array-with-duplicates-count-key.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6314876008291942531/posts/default/779633361440017244?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6314876008291942531/posts/default/779633361440017244?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AntonioGullisCodingPlayground/~3/-x9z33UIpM8/a-sorted-array-with-duplicates-count-key.html" title="A sorted array with duplicates. Count #key" /><author><name>codingplayground</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://2.bp.blogspot.com/_ytulV26G9JA/TBkuNj8QAEI/AAAAAAAAANc/lJAR4RxVGXA/S220/me.png" /></author><thr:total>0</thr:total><feedburner:origLink>http://codingplayground.blogspot.com/2013/03/a-sorted-array-with-duplicates-count-key.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEUDRHs8eyp7ImA9WhBXF0g.&quot;"><id>tag:blogger.com,1999:blog-6314876008291942531.post-273743979452844926</id><published>2013-03-08T04:09:00.000-08:00</published><updated>2013-03-31T10:51:15.573-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-03-31T10:51:15.573-07:00</app:edited><title>Count the number of words in a text.</title><content type="html">&lt;img src="http://feeds.feedburner.com/~r/AntonioGullisCodingPlayground/~4/-fdInPbVky8" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://codingplayground.blogspot.com/feeds/273743979452844926/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://codingplayground.blogspot.com/2013/03/count-number-of-words-in-text.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6314876008291942531/posts/default/273743979452844926?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6314876008291942531/posts/default/273743979452844926?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AntonioGullisCodingPlayground/~3/-fdInPbVky8/count-number-of-words-in-text.html" title="Count the number of words in a text." /><author><name>codingplayground</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://2.bp.blogspot.com/_ytulV26G9JA/TBkuNj8QAEI/AAAAAAAAANc/lJAR4RxVGXA/S220/me.png" /></author><thr:total>0</thr:total><feedburner:origLink>http://codingplayground.blogspot.com/2013/03/count-number-of-words-in-text.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEUBQn46fCp7ImA9WhBXF0g.&quot;"><id>tag:blogger.com,1999:blog-6314876008291942531.post-8711796863228008229</id><published>2013-03-07T10:35:00.000-08:00</published><updated>2013-03-31T10:50:53.014-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-03-31T10:50:53.014-07:00</app:edited><title>Design a data structure where min, max are O(1) , delete and insert are O(logN)</title><content type="html">Hint: min is O(1) for an min-heap, delete and insert are O(log N). Same for max. Question is how to make it for both min and max&lt;img src="http://feeds.feedburner.com/~r/AntonioGullisCodingPlayground/~4/TQrj7jlaE7E" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://codingplayground.blogspot.com/feeds/8711796863228008229/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://codingplayground.blogspot.com/2013/03/design-data-structure-where-min-max-are.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6314876008291942531/posts/default/8711796863228008229?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6314876008291942531/posts/default/8711796863228008229?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AntonioGullisCodingPlayground/~3/TQrj7jlaE7E/design-data-structure-where-min-max-are.html" title="Design a data structure where min, max are O(1) , delete and insert are O(logN)" /><author><name>codingplayground</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://2.bp.blogspot.com/_ytulV26G9JA/TBkuNj8QAEI/AAAAAAAAANc/lJAR4RxVGXA/S220/me.png" /></author><thr:total>0</thr:total><feedburner:origLink>http://codingplayground.blogspot.com/2013/03/design-data-structure-where-min-max-are.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEIMQHY_eSp7ImA9WhBXF04.&quot;"><id>tag:blogger.com,1999:blog-6314876008291942531.post-8935773659337551290</id><published>2013-03-06T06:29:00.000-08:00</published><updated>2013-03-31T06:29:41.841-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-03-31T06:29:41.841-07:00</app:edited><title>Circular pumps</title><content type="html">Given a circular trace with pumps and a car running on a trace. Each pump has a well known distance from the origin, and the amount of kilometers you can run if you stop and refuel your car. Find a suitable starting point so that the car will not run out of fuel and the number of stops are minimal.&lt;img src="http://feeds.feedburner.com/~r/AntonioGullisCodingPlayground/~4/MrCpF6L7hew" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://codingplayground.blogspot.com/feeds/8935773659337551290/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://codingplayground.blogspot.com/2013/03/circular-pumps.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6314876008291942531/posts/default/8935773659337551290?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6314876008291942531/posts/default/8935773659337551290?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AntonioGullisCodingPlayground/~3/MrCpF6L7hew/circular-pumps.html" title="Circular pumps" /><author><name>codingplayground</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://2.bp.blogspot.com/_ytulV26G9JA/TBkuNj8QAEI/AAAAAAAAANc/lJAR4RxVGXA/S220/me.png" /></author><thr:total>0</thr:total><feedburner:origLink>http://codingplayground.blogspot.com/2013/03/circular-pumps.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D08DRX0_cSp7ImA9WhBXF08.&quot;"><id>tag:blogger.com,1999:blog-6314876008291942531.post-1017682392745875064</id><published>2013-03-05T03:30:00.000-08:00</published><updated>2013-03-31T03:31:14.349-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-03-31T03:31:14.349-07:00</app:edited><title>Special sort</title><content type="html">&lt;span style="background-color: white; font-family: Helvetica, Arial, Verdana, sans-serif; font-size: 13px; line-height: 19.4375px;"&gt;Given an array of numbers, arrange them in a way that generate the largest value. For instance, if the given numbers are {34, 345, 348, 50}, the arrangement 5034834534 gives the largest value.&lt;/span&gt;&lt;span id="more-114732" style="background-color: white; font-family: Helvetica, Arial, Verdana, sans-serif; font-size: 13px; line-height: 19.4375px;"&gt;&lt;/span&gt;&lt;span style="background-color: white; font-family: Helvetica, Arial, Verdana, sans-serif; font-size: 13px; line-height: 19.4375px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;img src="http://feeds.feedburner.com/~r/AntonioGullisCodingPlayground/~4/M2y4jCpW-8k" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://codingplayground.blogspot.com/feeds/1017682392745875064/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://codingplayground.blogspot.com/2013/03/special-sort.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6314876008291942531/posts/default/1017682392745875064?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6314876008291942531/posts/default/1017682392745875064?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AntonioGullisCodingPlayground/~3/M2y4jCpW-8k/special-sort.html" title="Special sort" /><author><name>codingplayground</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://2.bp.blogspot.com/_ytulV26G9JA/TBkuNj8QAEI/AAAAAAAAANc/lJAR4RxVGXA/S220/me.png" /></author><thr:total>0</thr:total><feedburner:origLink>http://codingplayground.blogspot.com/2013/03/special-sort.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUcFSX4zfSp7ImA9WhBXFks.&quot;"><id>tag:blogger.com,1999:blog-6314876008291942531.post-4758524677113464509</id><published>2013-03-04T11:06:00.000-08:00</published><updated>2013-03-30T11:10:18.085-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-03-30T11:10:18.085-07:00</app:edited><title>Visit a BST in level order</title><content type="html">Visit a BST in level order.&lt;br /&gt;
Visit a BST in reverse level order&lt;img src="http://feeds.feedburner.com/~r/AntonioGullisCodingPlayground/~4/195Pn5g3g08" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://codingplayground.blogspot.com/feeds/4758524677113464509/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://codingplayground.blogspot.com/2013/03/visit-bst-in-level-order.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6314876008291942531/posts/default/4758524677113464509?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6314876008291942531/posts/default/4758524677113464509?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AntonioGullisCodingPlayground/~3/195Pn5g3g08/visit-bst-in-level-order.html" title="Visit a BST in level order" /><author><name>codingplayground</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://2.bp.blogspot.com/_ytulV26G9JA/TBkuNj8QAEI/AAAAAAAAANc/lJAR4RxVGXA/S220/me.png" /></author><thr:total>0</thr:total><feedburner:origLink>http://codingplayground.blogspot.com/2013/03/visit-bst-in-level-order.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Ck4DSHw9fip7ImA9WhBXFko.&quot;"><id>tag:blogger.com,1999:blog-6314876008291942531.post-6171904584002848317</id><published>2013-03-03T12:16:00.000-08:00</published><updated>2013-03-30T12:16:19.266-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-03-30T12:16:19.266-07:00</app:edited><title>Implement T9 dictionary</title><content type="html">&lt;img src="http://feeds.feedburner.com/~r/AntonioGullisCodingPlayground/~4/HiquODHyWvY" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://codingplayground.blogspot.com/feeds/6171904584002848317/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://codingplayground.blogspot.com/2013/03/implement-t9-dictionary.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6314876008291942531/posts/default/6171904584002848317?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6314876008291942531/posts/default/6171904584002848317?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AntonioGullisCodingPlayground/~3/HiquODHyWvY/implement-t9-dictionary.html" title="Implement T9 dictionary" /><author><name>codingplayground</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://2.bp.blogspot.com/_ytulV26G9JA/TBkuNj8QAEI/AAAAAAAAANc/lJAR4RxVGXA/S220/me.png" /></author><thr:total>0</thr:total><feedburner:origLink>http://codingplayground.blogspot.com/2013/03/implement-t9-dictionary.html</feedburner:origLink></entry></feed>
