Activity for pxegerâ€
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
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) |
— | over 2 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) |
— | almost 3 years ago |