College exams are killing my productivity 📉
Still, I manage to solve at least the LeetCode POTD. If it's difficult, I study the solution and do a 1000-rated problem to keep my daily CF streak alive.
NGL, @Divyansh91565 inspired me to maintain the CF streak.
Life is so cooked rn
idk why the f*ck college exam happen , they don't test your intelligence or talent or skill.
Just how well you mug up before the exam.
✅ DP (knapsack 0/1)
- I was writing the base case wrong
- you need to eliminate the option that still has mod val > 0 after the array ends by returning -1e9 or INT_MIN
- rest was easy 2D DP with [pos][target-condition] (here mod)
- recursive code → memoization