Skip to content

Instantly share code, notes, and snippets.

@faiq
Last active December 10, 2015 00:22
Show Gist options
  • Save faiq/c41aee677b92cb58508a to your computer and use it in GitHub Desktop.
Save faiq/c41aee677b92cb58508a to your computer and use it in GitHub Desktop.

Question 1:

Suppose you have a dictionary of words in plain text. Come up with an algorithim that takes in a set of letters and returns all the words you can make up with those letters.

'intwer' -> [winter] you can probably come up with more but you get the point

Question 2:

Suppose you have a file that's too large to fit in to memory filled with numbers. Come up with a method that returns the top 10 items in the file.

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