LeetCode

The holy grail of programming interviews. Plus I think it’s actually pretty fun focusing more on Competitive Programming because it’s harder

I actually suck at LeetCode for some reason (started summer 2022)

  • 2022-12-22: Actually getting better, I can do hards

You can use Binarysearch to practice by company (NOPE, site is down)

Weaknesses:

However, I think the Codeforces problems are a lot more rewarding to solve, I guess just because they are harder.

Main Topics

  1. Sliding Window
  2. Two Pointers
  3. Merge Intervals
  4. Cyclic Sort
  5. Binary Search
  6. Shuffling an array

https://hackernoon.com/14-patterns-to-ace-any-coding-interview-question-c5bb3357f6ed

Other CP Topics

Algorithms

Problems

Strategy

  1. Attempt the problem (obviously)
  2. If too hard, see if you have solved similar problems in the past
  3. Read the discussion forum, but just look at the titles for inspiration
  4. If it still doesn’t work, check the answer, but do not just copy paste. Try to understand and put your own implementation of it without looking at the original solutions

Leetcode Tip (NEVER DO THE SAME PROBLEMS)

Do not repeat trying the same problems, because you are actually trying to get better at pattern recognition.

If the interviewer gives you a variation of the problem you solved, then you don’t know how to exactly tackle it, so there is no point.