r/CS_Questions • u/Individual_Strike484 • Sep 23 '22
How often have you had to use Dynamic Programming in FAANG/Quant interviews?
Title. Also, was your code expected to run or was it pseudocode? What approach did you take while explaining your algo?
13
Upvotes
2
1
u/kingj3144 Sep 26 '22
As an interviewer I like to ask a question which has a dynamic programming solution, but also has some math theory, iterative, and recursive solutions. I usually don’t expect the dynamic solution unless the candidate is applying for a senior position. With multiple solutions I like to see what people try first, then how they improve on it.
2
u/AD5805 Sep 24 '22
Interviewed three times with FANNG. Only 1 DP question out of 12+ programming questions.