linguistics, computers, and puns
TopQueue in Scala - Part 3

In the last post we finished implementing the TopQueue class and looked at how it was able to perform so much better than the plain sorting solution from Part 1.

This time we're going to drill down into Scala and turn our special purpose integer collection into an elegant, general purpose tool. We'll implement and briefly discuss a number of Scala features along the way. ...more

July 08, 2018 #Algorithms #Data Structures #Deep Dive #Generics #Interviews #Scala #TopQueue
TopQueue in Scala - Part 2

In this post we'll be developing the solution that we began designing in the last post. As a refresher, here's the problem we're solving.

Design and implement a method to select the largest m values from a very large list of n numbers.

Last time we learned that sorting the entire sequence of n numbers doesn't scale. In some cases, the numbers may not even fit in memory. But with our solution, this won't be a problem. ...more

July 06, 2018 #Algorithms #Deep Dive #Interviews #Scala #TopQueue