1 test case is not passing

https://ide.codingblocks.com/s/241094… plz help

@dhirenkinha since n=5000 and sum<=10^7 you can create a dp array of dp[5000][10^7],
therefore you are getting a run error in your code

1 Like