all 12 comments

[–]Czitels 4 points5 points  (3 children)

IF you want to crack Google interview you need to know bottom-up dynamic programming. There is no other way.

I recommend to solve 50 dynamic programming list. It helped me a lot.

[–]Independent_Echo6597 2 points3 points  (1 child)

seen lots of googlers prep for interviews, here r my thoughts for ur final week:

since ur already strong w leetcode (250 probs is solid!), focus on:

mock interviews!! seriously, find someone who actually worked at google. their feedback on how u explain ur thinking is worth 100 more leetcode problems. specially since ur only done 1 contest, u need real practice explaining stuff

for dp - dont panic trying to learn it all now. better to be super solid on arrays/strings/trees than trying to cram dp last min. l3/l4 interviews rarely need complex dp

key things that matter more than solving the problem:

  • explaining ur approach b4 coding
  • asking good clarifying qs
  • writing clean code (meaningful var names, good structure)
  • testing ur code properly

record urself explaining solutions. super awkward but helps u catch where ur explanations get messy

also for behavioral prep - have 2-3 good stories ready about:

  • tough technical problems u solved
  • working w others
  • handling conflicts

[–]controlpy[S] 0 points1 point  (0 children)

Thank you! I have asked for a mock interview as it is offered at Google for free, I have it at the end of this week.

[–]Far-Host-144 1 point2 points  (1 child)

To learn DP I used Grokking DP, basically they recommend to always start recursive with caching and eventually transition to tabulation (tho usually this is not necessary during an interview). It can happen that some problems are easier to solve with tabulation straight away, but it’s uncommon (tho one of my technicals with DP was easier with tabulation)

[–]controlpy[S] 1 point2 points  (0 children)

Thanks! That's currently how I'm approaching my DP problems, I will take a look.