peaceful_warrior's blog

By peaceful_warrior, history, 5 years ago, In English

So you have an array A of size N. Let's say 10 20 40 80 10 What we have to do it divide the array into two subSequence such that. The difference between the absolute value of first and second is minimum. in the above case, the answer would. first subSequence 10, 10 = 0 second 20 40 80. = (20 + 40) = 60

can anyone help?

  • Vote: I like it
  • -1
  • Vote: I do not like it