Problem in converting bottom-up dp to recursive dp due to memory limitations
In this question, DIV 2C, Is is possible to solve this using recursive approach without exceeding the memory limit?