Git Product home page Git Product logo

coding_problems's Introduction

What is this?

It is a set of tests and solutions to the coding problems in the book "Cracking the Coding Interview".

Requirements

  • Java 8
  • ruby 1.9+

Structure

Solutions are under the src directory

/src/Chapter1.java
/src/Chapter2.java
...
/src/ChapterN.java

Tests are under the test directory

/test/Chapter1Test.java
/test/Chapter2Test.java
...
/test/ChapterNTest.java

How To

Work on solutions

To start working on solutions you need the continuous runner to execute. It will execute the test of the corresponding solution that you modified, or if the test is modified, it will execute the test that was modified, there is currently no way to execute all tests or to execute tests that correspond to utility files, this can be done later.

# install all required gems
bundle install
# execute the continuous runner (Guard)
bundle exec guard

Recommended Study Plan

MVP

You should solve all of these problems at the minimum, to even have a chance at success.

  • Chapter 1: Arrays and Strings
  • Chapter 2: Linked Lists
  • Chapter 3: Stacks and Queues
  • Chapter 4: Trees and Graphs
  • Chapter 9: Recursion and Dynamic Programming
  • Chapter 11: Sorting and Searching
  • Chapter 17: Moderate

HIGH VALUE

Solving these significatively increases your chances of success.

  • Chapter 10: Scalability and Memory Limits
  • Chapter 18: Hard
  • Chapter 5: Bit Manipulation
  • Chapter 12: Testing

RELATED TO THINGS RARELY ASKED

Solving these will increase your chances if you don't already know these subjects, but if you've worked with these before, they won't help a lot.

  • Chapter 7: Mathematics and Probability
  • Chapter 16: Threads and Locks
  • Chapter 15: Databases
  • Chapter 13: C and C++

NOT VERY USEFUL

I found these to be of low value and having little to no useful information that one could benefit from in order to pass the interviews.

  • Chapter 13: Java
    • Too basic to be of worth.
  • Chapter 6: Brain Teasers
    • Nobody does brain teasers anymore.
  • Chapter 8: Object-oriented design
    • The reason this was useless in my case, is that the information it has is very generic. I did my master's thesis on this subject.

coding_problems's People

Contributors

marcel-valdez avatar marcelvaldez avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.