The repository contains solutions to various coding interview problems extracted from websites like Hackerrank, Hackerearth, Codechef, Geeks For Geeks, Hackerblocks and Codeforces. I've tried to provide the detailed solution and the intution behind it through comments. These questions are classical problems that are most frequently asked by the tech giants in technical interviews and are not related to hard core competitive coding. All the code provided inside the repository is purely original and completely my own.
These interview questions are real, they are not pulled out of computer science textbooks. They reflect what's truly being asked at the top companies, so that you can be as prepared as possible.
- Fundamentals of STL
- Array
- Stack/Queue
- Linked List
- Binary Tree & BST
- Bit Manipulation
- Binary Search
- Graph [DFS, BFS, Topological Sorting]
- Divide & Conquer
- Mathematics
- Number Theory
- Recursion & Backtracking
- Segment Trees
Till now I have covered all the above mentioned topics & looking forward to get more done by the mid of the year.
- Fork the repository
- Do the desired changes (add/delete/modify)
- Make a pull request
- If there is no solution to a problem in the main branch.
- If your solution is asymptotically faster than the one in the main branch.
- If your algorithm is of the same time complexity but with reduced code size. In this case, comment out the original solution and make a pull request with your solution.
- If you have another method of solving the problem which is asymptotically slower than the original method then, comment your solution in the main file and make a pull request.
So before you start judging me, let me give a brief introduction about myself. I'm a computer science sophomore at the Indian Institute of Information Technology(IIIT), Gwalior who's primarily interested into software development & open source contributions. But to crack the technical interviews of these product based companies you need something more than building web applications i.e good knowledge of DSA and computer science fundamentals.
Though I admit that this repo is not yet complete and need major refactoring which I'll be doing one day in the foreseeable future once I'm done with these coding problems. Till then feel free to contribute and let the community grow. Constructive criticisms or code reviews of any kind are very much welcome.
If you have any doubts about the solutions, you can feel free to contact me sastava007@gmail.com