Timeline for My array should equal this, but it doesn't!
Current License: CC BY-SA 4.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 1, 2018 at 12:51 | comment | added | TFeld | @JonathanFrech Thanks, I must have been tired yesterday ;) | |
Nov 1, 2018 at 12:51 | history | edited | TFeld | CC BY-SA 4.0 |
added 47 characters in body
|
Nov 1, 2018 at 11:12 | comment | added | Jonathan Frech | Possible 106 bytes. | |
Nov 1, 2018 at 7:41 | history | edited | TFeld | CC BY-SA 4.0 |
added 7 characters in body
|
Oct 31, 2018 at 20:56 | comment | added | Jonathan Allan |
You could use range(-len(a),1) and -l to save 2, but lambda a,n:[x for l in range(len(a)+1)for x in combinations(a,l)if sum(x)==n][-1] saves 4.
|
|
Oct 31, 2018 at 15:45 | history | edited | TFeld | CC BY-SA 4.0 |
added 657 characters in body
|
Oct 31, 2018 at 15:28 | history | answered | TFeld | CC BY-SA 4.0 |