Hey guys, Can someone point out why my approach gets TLE in this problem?
My intuition was that mapping (storing old answers) is the way to go. I tried this by creating a 2-D map and storing it like-
mp[dish_no][ingredient at last in the dish]
This stores the answer for the sub-problem.
My solution link-
https://www.codechef.com/viewsolution/15872361 (this one uses unordered map. Got through 1 more TC but last 2 still TLE)