codeedoc's blog

By codeedoc, 5 years ago, In English

this should be a classical problem: We have a group of numbers named A with the size of n. Does A have a subgroup such that the sum of it is divisible by m?
m,n>=10^5

I couldn't find any solution with an order better than O(n*m).

thanks for helping :)

Full text and comments »

  • Vote: I like it
  • +17
  • Vote: I do not like it