Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A collection of coding interview questions and their solutions.
Python C
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.

Data Structures and Algorithms

Data Structures and Algorithms is a repository to document and collect possible coding interview questions in order to prepare myself for upcoming job interviews. I will document the question, one or more solutions, rationales and time and space complexity. Python has been used for the implementations in order to practice the language itself. Python will, however, be replaced with Java as the reference implementation language. In addition I use C for solutions involving pointers or to answer C specific questions.

The questions are chosen or created from the following books:

  • McDowel, Gayle Laakmann. Cracking the Coding Interview

  • Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest, and Clifford Stein. Introduction to Algorithms

  • Skiena Steven S. The Algorithm Design Manual

  • John Mongan, Noah Suojanen, and Eric Giguère. Programming Interviews Exposed: Secrets to Landing Your Next Job


Type Problems Solutions
Python / C Java
Arrays 4 4 0
Lists 13 15 0
Stacks 2 3 0
Strings 6 14 0
Trees 5 8 0
Graphs 3 3 0
Sorting 2 2 0
Something went wrong with that request. Please try again.