r/ProgrammerHumor • • 2d ago

Meme dynamicProgramming

Post image
5.4k Upvotes

142 comments sorted by

View all comments

57

u/rahvan 2d ago

I shit you not, I’m 10 years into my professional career as a software engineer, and to this day I have no idea how to write a DP algorithm. My job has never asked me to. Only LeetCode asks me to and I skip those interviews lol.

28

u/ss_damon 1d ago

I would be surprised if you hadn't put a cache on a function at some point

14

u/Shehzman 1d ago

I’ve used dictionaries/hash maps as a cache and front end memoized data hundreds of times. It’s just the combination of recursion + memoization that I’ve almost never used.

5

u/snf 1d ago

I've been at this for about 25 years and I've used it exactly once, and that was for a coding competition

-7

u/Ok-Scheme-913 1d ago

That's kinda sad, tbh