Activity for Unrelated String
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Answer | — |
A: Cumulative Counts [Jelly], 4 bytes ¹Ƥċ" Try it online! ``` " For each element of the input, ċ how many times does it occur in ¹Ƥ " the corresponding prefix of the input? ``` (more) |
— | about 3 years ago |
Answer | — |
A: Is it a near-anagram? [Brachylog], 8 bytes pᵐ≠{b|}ᵛ Try it online! Since it takes $5!5! = 14400$ tries to determine that the first test case gives false, I've added some shorter ones... ``` pᵐ Permute each element of the input. ≠ The permuted elements are not equal, { }ᵛ bu... (more) |
— | about 3 years ago |
Answer | — |
A: Truthify an array [Jelly], 2 bytes ŒṪ Try it online! 1-indexed, but the footer converts to 0-indexed. Less built-in: [Jelly], 3 bytes œẹ1 Try it online! ``` œẹ All multidimensional indices of 1 one. ``` Less built-in: [Jelly], 7 bytes J,Ɱ"T€Ẏ Try it o... (more) |
— | over 3 years ago |
Answer | — |
A: Length of a Sumac Sequence [Jelly], 9 bytes Rȧ@Rп@L Try it online! Takes $t1$ on the left and $t2$ on the right. `R}ȧ@RпL` works given the arguments in the opposite order. ``` R Ascending range from 1 to t1 (truthy if positive), ȧ and: п collecting intermediate results,... (more) |
— | over 3 years ago |
Answer | — |
A: Evaluate a single variable polynomial equation [Jelly], 1 byte ḅ Try it online! Essentially just Razetime's APL answer, except in that `ḅ` vectorizes rather than carrying out mixed base conversion--irrelevant if, as is the case here, the provided base is scalar. Takes a reversed coefficient list on the left and $x$ on the right. (more) |
— | over 3 years ago |