Skip to content

Numerous algorithms & data structures implemented in Java & tested with Spock

Notifications You must be signed in to change notification settings

todd-elvers/java-algorithms

Repository files navigation

java-algorithms

Initially this started as just a fork of this repo but quickly grew into a testing ground for all things Java interview-prep related.

Contained in this repo are my attempts at:

  • Algorithms & data structures from Cracking the Coding Interview (6th Edition)
  • Algorithms & data structures from leetcode.com

If you're interested in preparing for coding interviews, I suggest you:

  • Fork coding-interview-university (or mine) and go through some of it
  • Purchase Cracking the Coding Interview and go through their data structures up to, but not including, bit manipulation
  • Attempt a wide breadth of problems from leetcode.com

Class structure

Most classes in this project are structured in one of the following ways:

  • Annotated with a link to the corresponding problem on leetcode.com
  • Annotated with a decimal value which corresponds to some problem in Cracking The Coding Interview
  • Annotated with nothing, in which case it is probably a data structure or algorithm that does not correspond to any particular problem