Tired and afraid of having to read thick books on how to prepare for coding interviews?
This repo holds a good starting point of common coding problems asked during technical interviews.
Small, simple, fast and right to the important parts (as long as you have a basic background on algorithms, data structures and C++).
Code uses some C++11 features. In case you forgot, to compile a file you have to execute something like this:
g++ -std=c++11 trees.cpp -o trees
./trees
Study and check the source code of the files using this suggested order:
arrays.cpp
strings.cpp
bits.cpp
stacks.cpp
trees.cpp
lists.cpp
search_sort.cpp
-includes binary heaps-graphs.cpp
backtrack.cpp
dynamicprogramming.cpp
For system-design questions, check these github repos:
- https://github.com/donnemartin/system-design-primer#system-design-topics-start-here
- https://github.com/checkcheckzz/system-design-interview
Then, study some interesting design problem questions like: