Re:Dynamic Programming for Technical Interviews
by zeroonetwothree on Friday March 15, 2019 @11:36AM
(#19400638)
That just has a straightforward recursive solution. Iām not even sure where the DP comes in beyond that.
[ Parent
| on HN ]
Re:Dynamic Programming for Technical Interviews
by chillee on Friday March 15, 2019 @12:37PM
(#19401310)
What's your straightforward recursive solution? It might be what's considered Tree DP. If you want a harder problem I can give an example too :^)
Re:Dynamic Programming for Technical Interviews
by bogomipz on Friday March 15, 2019 @03:50PM
(#19403538)
Might you have some good resources you could share then on DP strategies and problem solving? Cheers.
Re:Dynamic Programming for Technical Interviews
by chillee on Friday March 15, 2019 @10:37PM
(#19406069)
I did make some slides here for my university's ICPC seminar: http://www.cs.cornell.edu/courses/cs5199/2019sp/
https://docs.google.com/presentation/d/1c1YUdhXOCLSVhH6Jn4TB...
It's partially targeted for competitive programming, though, so be warned that things like Tree DP/subset DP/convex hull optimization will likely not show up in interview questions (although they are pretty cool!)