Skip to content

Instantly share code, notes, and snippets.

@gnakan
Last active November 9, 2016 22:24
Show Gist options
  • Save gnakan/9d437f65e71de67290ce1373dfcc2c13 to your computer and use it in GitHub Desktop.
Save gnakan/9d437f65e71de67290ce1373dfcc2c13 to your computer and use it in GitHub Desktop.
Used for scala candidate validation

Code should be available for review at https://codeshare.io

#Exercise #1 Given a list of files, find the most frequently used word. Assume everything fits into memory (no problem with scale). Use functional style.

#Excercise #2

Given a file with an arbitrary number of lines i.e, each line consists of a list of integers, find the median of the medians. i.e. find the median of each line, then the median of the resulting line medians.

File available here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment