Kerekiw's blog

By Kerekiw, history, 3 years ago, In English

You are given an array a(1 <= ai <= 1e9) of length n(1 <= n <= 25). You need to choose two non-empty disjoint subsets with the same sum. Print the maximum possible sum among such pairs of subsets.

My solution gets TLE when n is 25 -> https://pastebin.com/B5nRW1pZ

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

| Write comment?