URL Optimal game strategy-1: https://ide.codingblocks.com/s/109417
I solved the previous question without overthinking consider it as a fluke, but when I try to answer this question I cannot think of any solution…when I googled I found that they have used a 2D array, but I cannot even do that because of n<=10000…What should I do?