Project Euler #105: Special subset sums: testing

  • + 0 comments

    I found a 6-codeline Python3 solution that is robust — no ad-hoc hacks for size > 20 or 30.

    For the case of B and C having the same size, rigorously think about minimal and maximal counter-examples. It may be helpful to sort the list A. If B and C don't have the same size, I used math logic that didn't directly check if they're disjoint, but rather a consequence of it.