Can anyone please help me understand why my code gives TLE?
https://codeforces.net/contest/1796/submission/195509093
I basically followed the editorial exactly but used memorization instead of bottom-up.
In general, is bottom-up faster, or is my implementation just flawed?
looks like u solved it urself that's pretty sheesh : )
Don't use long long when its unnecessary