diff options
| author | Tyler Wardhaugh <tyler.wardhaugh@entercom.com> | 2020-09-05 22:37:48 -0700 |
|---|---|---|
| committer | Tyler Wardhaugh <tyler.wardhaugh@entercom.com> | 2020-09-05 23:00:25 -0700 |
| commit | a9da878f06258fecae46dcbcea8394a3bcb20b82 (patch) | |
| tree | a28c55d36b2d2b26e3895c1bd5d0ceb77d44eb10 /challenge-078/ash/python | |
| parent | 9c5c661261f28a042c133a21e677cd7cfc20ad9a (diff) | |
| download | perlweeklychallenge-club-a9da878f06258fecae46dcbcea8394a3bcb20b82.tar.gz perlweeklychallenge-club-a9da878f06258fecae46dcbcea8394a3bcb20b82.tar.bz2 perlweeklychallenge-club-a9da878f06258fecae46dcbcea8394a3bcb20b82.zip | |
Task #1: add more tests and fix the bugs uncovered
There were two problems uncovered by the tests, which include one test
that requires using a prime twice (6 = 3 + 3), one that is a prime (11),
and one that requires 3 terms (51 = 43 + 5 + 3 or 51 = 47 +2 + 2).
In find-min-primes-to-sum, I had the arguments to (conj) in the wrong
order for the case of requiring 3 terms.
In find-min-primes-to-sum-brute-force, I was not checking possibilities
involving the same primes twice, which I fixed by replacing
(combo/partitions) with (combo/selections) for both 2 and 3 terms.
Diffstat (limited to 'challenge-078/ash/python')
0 files changed, 0 insertions, 0 deletions
