Activity for pxegerâ€
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Edit | Post #283778 | Initial revision | — | about 3 years ago |
Answer | — |
A: Make $2 + 2 = 5$ Zsh, 25 bytes >2 <$@&&<<<5||<<<$[$1+$2] Attempt This Online! Explanation: - `>2;<$@`: if both arguments are `2`: - `&&<<<5`: then print 5 - `||<<<$[$1+$2]`: otherwise print `$1 + $2` (more) |
— | about 3 years ago |
Edit | Post #283306 | Initial revision | — | about 3 years ago |
Answer | — |
A: Are All Elements Equal? Zsh, 8 bytes >$@ <^$1 Attempt This Online! Outputs via exit code: `0` for not all the same; `1` for all the same - `>$@`: create a file named for each element in the input - effectively deduplicates because you can only have one file with a given name - `<^$1`: try to find a fi... (more) |
— | about 3 years ago |