Timeline for Determine if an Array contains something other than 2
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 19, 2017 at 1:48 | vote | accept | ATaco | ||
May 13, 2017 at 8:38 | comment | added | Stewie Griffin |
Yes, 2=p works fine. The shorter version in the end, 2= , doesn't. Also, "the strange edge cases" are two of the test cases. :-)
|
|
May 13, 2017 at 8:36 | comment | added | DJMcMayhem | @stewiegriffin That seems like a strange edge case to need to handle, but conveniently it does work: Try it online! | |
May 13, 2017 at 8:34 | comment | added | Stewie Griffin |
I believe 2= fails for empty matrices, or?
|
|
May 13, 2017 at 8:22 | comment | added | Erik the Outgolfer | I don't think the 2-byte version is valid, since in the comments ATaco said that a unique output pair is valid. | |
May 13, 2017 at 8:20 | history | edited | DJMcMayhem | CC BY-SA 3.0 |
added 124 characters in body
|
May 13, 2017 at 8:18 | comment | added | Erik the Outgolfer | A list containing 0 is falsy? Oh man. | |
May 13, 2017 at 8:05 | history | answered | DJMcMayhem | CC BY-SA 3.0 |