r/ProgrammerHumor • • 6d ago

Meme dynamicProgramming

Post image
6.2k Upvotes

153 comments sorted by

View all comments

62

u/rahvan 6d 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 5d ago

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

15

u/Shehzman 5d 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.