algorithm-freezer icon indicating copy to clipboard operation
algorithm-freezer copied to clipboard

Know your algorithms cold!

logo

Know your algorithms cold! Love 'm or hate 'm, algorithmic questions reign supreme at tech interviews so take the opportunity to practice them while sharpening your Haskell skills.

This project contains tests and solutions for the most commonly asked questions from major tech companies -- all in Haskell. You can challenge yourself to rewrite (and improve!) the solutions while keeping the tests passing.

Each answer contains notes about clarifying questions to ask the interviewer, a strategic breakdown and runtime complexity analysis.

Two-Level Approach

There are two types of questions. One is to implement data structures and simple operations from scratch and the other to apply and combine known techniques to solve higher level problems. For the latter we use the containers, unordered-containers, vector, matrix, KMP and fgl packages as our arsenal to demolish problems.

The Questions

  • Quora
    • General | Tests
    • Strings | Tests
    • Trees
    • Stacks, Queues, and Heaps
    • Linked Lists
    • Sorting