Activity for Adám
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Edit | Post #286633 | Initial revision | — | over 2 years ago |
Answer | — |
A: Make a frequency table (histogram) APL(Dyalog Unicode), 4 bytes SBCS Anonymous tacit prefix function. ``` ,∘≢⌸ ``` Try it on APLgolf! …`⌸` between each unique element and its indices, apply: `,∘≢` concatenate the unique element to the tally of indices (more) |
— | over 2 years ago |
Comment | Post #284407 |
It seems as if we can choose symbol for each operation, but you should state that explicitly. (more) |
— | about 3 years ago |
Edit | Post #284095 | Initial revision | — | about 3 years ago |
Answer | — |
A: Repeat the characters [APL (Dyalog Unicode)], 1 byte / Try it online! `/` is called Replicate. (more) |
— | about 3 years ago |
Edit | Post #283694 |
Post edited: |
— | over 3 years ago |
Edit | Post #283694 | Initial revision | — | over 3 years ago |
Answer | — |
A: Multiply two strings BQN, 3 bytes Anonymous tacit infix function, taking the second string as left argument and the first string as right argument. ``` ⥊⌊⌜ ``` `⌊⌜` minimum table `⥊` deshape (flatten) BQN treats characters as an affine space which is basically a fancy name for each character being an integ... (more) |
— | over 3 years ago |
Edit | Post #283416 | Initial revision | — | over 3 years ago |
Answer | — |
A: Small integer swapping [APL (Dyalog Extended)], 3 bytes ⊢⍮⌽ Try it online! `⊢` the argument `⍮` paired up with `⌽` its reverse (more) |
— | over 3 years ago |
Comment | Post #283341 |
afaict, there are infinitely many. How would we return these? (more) |
— | over 3 years ago |
Edit | Post #283309 | Initial revision | — | over 3 years ago |
Answer | — |
A: Are All Elements Equal? [APL (Dyalog Unicode)], 3 bytes ⍋≡⍒ Try it online! `⍋` computes the permutation vector that would sort the argument into ascending order `⍒` computes the permutation vector that would sort the argument into descending order If they are identical (`≡`), all elements must be eq... (more) |
— | over 3 years ago |
Comment | Post #283133 |
@#53588 Replaced with a built-in that includes 0. (more) |
— | over 3 years ago |
Edit | Post #283133 |
Post edited: fix for 0 |
— | over 3 years ago |
Edit | Post #283270 |
Post edited: |
— | over 3 years ago |
Edit | Post #283270 | Initial revision | — | over 3 years ago |
Answer | — |
A: Reduce over the range [1..n] [APL (Dyalog Unicode)], 4 bytes ```apl ⎕/⍳⎕ ``` Try it online! `⎕` input `/` reduction over `⍳` the integers until `⎕` input. (more) |
— | over 3 years ago |
Edit | Post #283133 | Initial revision | — | over 3 years ago |
Answer | — |
A: It's Hip to be Square [APL (Dyalog Extended)], 3 bytes √∊… Try it online! Is the square root in the range? (more) |
— | over 3 years ago |
Edit | Post #282282 |
Post edited: |
— | over 3 years ago |
Edit | Post #282282 | Initial revision | — | over 3 years ago |
Answer | — |
A: Word Count Tool [APL (Dyalog Unicode)], 27 bytes Anonymous tacit prefix function '\w+' '.' '[^ ]'{≢⍺⎕S⍬⊢⍵}¨⊂ Try it online! `'\w+' '.' '[^ ]'{`…`}¨⊂` apply the following anonymous lambda on each of the PCRE patterns (`⍺`) and the entire string (`⍵`): `⊢⍵` on the string `⍺⎕S⍬` find matches... (more) |
— | over 3 years ago |
Comment | Post #282280 |
Can we take multi-line text as a list of strings? (more) |
— | over 3 years ago |
Comment | Post #282280 |
"you may assume all inputs will consist of printable bytes" conflicts with `"Hello \t\nworld"` (more) |
— | over 3 years ago |
Edit | Post #282075 |
Post edited: important typo |
— | over 3 years ago |
Suggested Edit | Post #282075 |
Suggested edit: important typo (more) |
helpful | over 3 years ago |
Edit | Post #280949 | Initial revision | — | almost 4 years ago |
Answer | — |
A: Is it a near-anagram? [APL (Dyalog Extended)], 18 bytes Anonymous tacit prefix function taking a list of two strings as argument. 2=1⊥(≠⌿∊≢⍤⊢⌸⍤,⍤1↑) Try it online! `(`…`)` apply the following tacit function to the argument:  `↑` mix the list of strings into a 2-row character matrix (padding any... (more) |
— | almost 4 years ago |
Edit | Post #280948 | Initial revision | — | almost 4 years ago |
Answer | — |
A: Word Set Square [APL (Dyalog Unicode)], 23 bytes Anonymous tacit prefix function. Reuires 0-based indexing (`⎕IO←0`) (⊢⍪⍨¯1↓⊢,∘↑-∘⍳∘≢↑¨⊢)⊢,⌽ Try it online! `⌽` reverse the argument `⊢,` prepend the argument `(`…`)` apply the following tacit function to that:  `⊢` on the characters o... (more) |
— | almost 4 years ago |
Comment | Post #279444 |
@dzaima Updated. (more) |
— | about 4 years ago |
Edit | Post #279444 |
Post edited: |
— | about 4 years ago |
Comment | Post #279444 |
@Razetime No. :-) (more) |
— | about 4 years ago |
Edit | Post #279444 | Initial revision | — | about 4 years ago |
Question | — |
Shape of an array Given a non-ragged array (an array where all sub-arrays at a particular level have the same length) of non-negative integers, answer its shape, that is, the length along every dimension. You may assume that the given array has at least one empty dimension, and that only the trailing dimension can hav... (more) |
— | about 4 years ago |
Edit | Post #279439 |
Post edited: |
— | about 4 years ago |
Edit | Post #279441 | Initial revision | — | about 4 years ago |
Question | — |
Link with Stack Exchange When editing my profile, I see: >### Link with Stack Exchange >>You can't link a Stack Exchange account to your account on this site because there is no associated Stack Exchange site from which to transfer your content. Maybe codegolf.stackexchange.com would be an appropriate candidate? (more) |
— | about 4 years ago |
Edit | Post #279439 |
Post edited: |
— | about 4 years ago |
Edit | Post #279439 | Initial revision | — | about 4 years ago |
Answer | — |
A: Weave Strings Together [APL (Dyalog Unicode)], 10 bytes Full program. Prompts for list of strings from stdin. ```apl 0⍨,⍉↑0,¨⎕ ``` Try it online! `⎕` prompt for list of strings `0,¨` prepend a zero to each `↑` convert to orthogonal matrix (increase rank at cost of depth), padding with 0s `⍉` transpose ... (more) |
— | about 4 years ago |
Comment | Post #279159 |
"Input can be in any format of choice, as long as it is a list of numbers" ― does this mean we can take the list in reverse order? (more) |
— | about 4 years ago |