JingMa87 / Tech-Interview

Algorithms and Data Structures implemented in Java
12 stars 20 forks source link

Add a solution to a common interview question #1

Open JingMa87 opened 7 years ago

JingMa87 commented 7 years ago

The goal of this project is to make common implementations of interview questions available to the general public. The general rule to contribute is that your code has to solve a common interview question. The guideline for what's a common question is the book 'Cracking the Coding Interview' by Gayle McDowell which you can find here. I don't accept pull request for very specialized algorithms and data structures. In case you're not sure whether you should contribute certain code, discuss it with me first.

Good luck hackers! 😄 💯

erriapo commented 7 years ago

Should it be in Java 8/Java7 ?

minibhati93 commented 7 years ago

Can the solutions be in Python 2.7? Also, is there a specific list of problems that you are expecting?

JingMa87 commented 7 years ago

@erriapo In Java 8! @minibhati93 I only accept pull requests in Java 8 and you can check out the book I linked before for common questions. You can find a free pdf version online. 👍

prashant2018 commented 7 years ago

@JingMa87 can I add the question and its solution which was asked to me in an tech interview ?

jayMcoder commented 7 years ago

4 Bit Manipulation solution added

JingMa87 commented 7 years ago

@prashant2018 If the solution solves a common interview question, then yes!

popovbodya commented 7 years ago

7 Recursion solution added

javouhey commented 7 years ago

8 Insertion sort O(n) best, O(n^2) worst.

differsthecat commented 7 years ago

9 Generate all permutations of a string added

@JingMa87 Can we add multiple questions?

JingMa87 commented 7 years ago

@rmcute You can add multiple questions if you want. 😋

popovbodya commented 7 years ago

13 #11 Added 2 new question solutions

popovbodya commented 7 years ago

17 Added one more question solution