Closed rudrakshi9 closed 3 years ago
Used knapsack approach to find the maximum sum of the element which is divisible by m and check whether the result is 0 or not. If its not zero, then we can distribute them equally else not.
Used knapsack approach to find the maximum sum of the element which is divisible by m and check whether the result is 0 or not. If its not zero, then we can distribute them equally else not.