(no title)
thalesfc | 9 years ago
- go to the root of the problem, run some examples by hand and try to think as a computer. e.g., I was at apple interview and there was this trick question that could be solved using a modified version of binary search. When I ran some example I kept asking myself "if I know that this element in the middle of the matrix is smaller (or larger) than X, what does that mean?"
- be very comfortable about big O notation. If necessary, be ready to present some formula.
- show that you can do the brute force solution. Sometimes the brute force solution seems very stupid (e.g., enumerate all possible subsets and find the best one), but you need to say it!
- most of all, be confident, but not arrogant. It is not the end of the world to not know something, but it is important to show what you do know!
fspear|9 years ago
I'm currently working through Cracking the coding interview & Elements of programming interviews but I really need to revisit the fundamentals, specially recurrence relations and calculating the order of complexity for an algorithm but I can't find any resources that are not too academically verbose, I have a really hard time reading mathematical notation.
thalesfc|9 years ago
- Skiena algorithm book: https://www.amazon.com/Algorithm-Design-Manual-Steve-Skiena/...
for this book one can focuses on the first 7 chapters (revision)
- Leet code editorial solutions https://leetcode.com/articles/ . They provide with the solution and complexity analysis of a few problems. I suggest you try to solve and give your complexity analysis then compare it with the "official" one.
lil1729|9 years ago