my code for the above problem is this :
it is giving memory limit exceeded in the 22nd test case.
i want to ask that how do we handle the cases of large numbers in DP because the elements are of the order 10^9, so their sum would also be of that order. so if we want to solve the problem : subset sum such that it is divisible by m,
we will need to make a dp array of index and sum but sum goes till 10^9 which can not be made into an array. so how do we handle this?