Hello everyone. I started leetcode around a month back and have been doing as much as I can.Atfirst i was stuggling especially at DP problems but now it feels good that after hammering questions and sitting through questions for hours until I figure out the solution myself I have made very good progress.
Now I can come up with a recursive solution and then improve it TopDown wise and mostly through caching the repeated recursive calls. BUT i face this issue of always TLE for extremely large cases eventhough my logic has improved lot better of Topodown.
I see that logic is correct but just TLE for 1 or few cases.
Please share your learnings or suggestion. Thank you :)