Python Forum
a solution to the Subset Sum Problem
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
a solution to the Subset Sum Problem
#7
(Jan-24-2018, 04:56 AM)Skaperen Wrote: i've been having trouble understanding how the set {-3, 13} adds up to zero, unless this is all modulo 10.

It's decimal numbers, or standard ints.

I suppose the snippet could be rewritten to make the numeric base a variable.
Reply


Messages In This Thread
a solution to the Subset Sum Problem - by league55 - Jan-15-2018, 02:56 AM
RE: a solution to the Subset Sum Problem - by league55 - Jan-24-2018, 06:15 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020