<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Algorithms on Michele Bologna</title><link>https://www.michelebologna.net/tags/algorithms/</link><description>Recent content in Algorithms on Michele Bologna</description><generator>Hugo</generator><language>en</language><lastBuildDate>Tue, 02 Feb 2016 00:00:00 +0000</lastBuildDate><atom:link href="https://www.michelebologna.net/tags/algorithms/index.xml" rel="self" type="application/rss+xml"/><item><title>Spotify puzzles: round two</title><link>https://www.michelebologna.net/2016/spotify-puzzles-round-two/</link><pubDate>Tue, 02 Feb 2016 00:00:00 +0000</pubDate><guid>https://www.michelebologna.net/2016/spotify-puzzles-round-two/</guid><description>&lt;p&gt;A few months ago, &lt;a href="https://www.michelebologna.net/2015/05/spotify-puzzles-round-one/" class="external-link" target="_blank" rel="noopener"&gt;I worked through Spotify&amp;rsquo;s first puzzle&lt;/a&gt;, a straightforward binary reversal problem. Round two is harder: the classic &lt;a href="https://en.wikipedia.org/wiki/Selection_algorithm" class="external-link" target="_blank" rel="noopener"&gt;selection problem&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The problem:&lt;/strong&gt; given an array of values (in this case, songs with a quality score), find the top &lt;code&gt;k&lt;/code&gt; values.&lt;/p&gt;</description></item><item><title>Spotify puzzles: round one</title><link>https://www.michelebologna.net/2015/spotify-puzzles-round-one/</link><pubDate>Sat, 16 May 2015 00:00:00 +0000</pubDate><guid>https://www.michelebologna.net/2015/spotify-puzzles-round-one/</guid><description>&lt;p&gt;Some time ago I came across &lt;a href="https://web.archive.org/web/20160413202413/https://labs.spotify.com/puzzles/" class="external-link" target="_blank" rel="noopener"&gt;Spotify puzzles&lt;/a&gt;, a set of CS problems that Spotify&amp;rsquo;s engineers published for interested developers to solve. What made the format interesting was the submission mechanism: you email your solution, and an automated judge tests it and sends back results. No web form, no leaderboard. Just a clean feedback loop.&lt;/p&gt;</description></item></channel></rss>