Monday, December 5, 2016

Cracking the coding interview challengs - on HackerRank

Dec. 5, 2016

Julia watched the videos over 3 times.

She likes to take down some notes, and then, continue to do some researches on some ideas:

1. How Companies Evaluate Technical Interviews

2. How to Approach Behavior Questions

3. 7 Steps to Solve Algorithm Problems
1. Listen
Do you use every detail?

2. Example
big, no special case

3. Brute Force
Better to have a brute force than nothing at all

4. Optimize

5. Walk through your algorithm

6. Code
Whiteboard:
- write straight
- use space wisely

Whiteboard or computer:
- Coding style matters

- Modularize
(before, not after!)
  void doSomething(a, b){
  }

7. Test
   1. Analyse-> think about each line
                    -> Double check things that look wierd
   1. Use test cases
        - small test-case first
        - edge cases
        - big test cases

    Remember
      1. think as you test -> don't be a bot!
   

4. 3 Algorithms Strategies
1. B. U. D.

B - Bottlenecks
U - unnecessary work
D - Duplicate work

2. Space/ Time Tradeoffs

3. D. I. Y.

Do it yourself

Blog reading:

https://www.bloomberg.com/graphics/2015-cheatsheets/





No comments:

Post a Comment