New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dynamic Programming is important! #104
Comments
I understand, and I was adamant that it was important, too, but for the Google interview, it's not expected. I checked the Yegge article and all the Google coaching notes and interview prep they recommend and they don't even mention it. Much to my surprise. Keep in mind they are only expecting CS 101 knowledge. DP is seen as a bit more advanced. Here's why:
This isn't stopping me from trying some problems, however, but I'm not stressing about it anymore. |
Gayle McDowell herself is not very clear on that: On the other hand she, and most Algorithm books do include that topic. HackerRank has a ton of questions about Dynamic Programming too. I think I understand where this comes from: I would say, there is a decent chance (more than 10-20%) that you are asked a question requiring it, and if you do not optimize correctly, you will get not a O(N) complexity but O(N^2) which is likely a not a good enough solution. |
You make a good point. Since it's valuable, I'll move it to the required, but with a disclaimer. :) |
To strengthen the argument, LeetCode has 443 programming problems given at actual interviews, 63 of them are tagged 'dynamic programming'. |
Dynamic Programming is under the 'Everything below this point is optional' line.
These types of questions are very often used, and every person needs to study. I wouldn't consider them optional.
The text was updated successfully, but these errors were encountered: