I am trying to solve Maximum Length Of Pair Chain Problem on Leetcode. I am stuck with Memoization part for my solution.
Here, I have tried to store 2-d tuple, which