Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with Search options user 85183

A competition to solve a particular problem through the usage and manipulation of arrays.

1
vote
APL (Dyalog Unicode), 21 bytesSBCS -3 bytes thanks to @Adám. (⌊2÷⍨≢)(↑{+⌿↑⍺⍵}∘⌽↓)⊢ Try it online! Explanation: (⌊2÷⍨≢)(↑{+⌿↑⍺⍵}∘⌽↓)⊢ ⍝ Monadic function train (⌊2÷⍨≢) ⍝ Left p …
answered Feb 15 by voidhawk
0
votes
APL (Dyalog Unicode), 17 bytesSBCS Also known as "how much can I abuse iota-underbar?" ≢∘∪0~⍨(⍸≤)⍸(⍸0≥⊢) Try it online!
answered Mar 17 by voidhawk
0
votes
APL (Dyalog Unicode), 26 bytesSBCS Requires ⎕IO←0 {m⊣{m[⍵]←m[m[⍵]]}¨⍳≢m←⍵}⍣≡ Try it online!
answered Feb 26 by voidhawk
2
votes
APL (Dyalog Unicode), 52 bytesSBCS Saved 7 bytes thanks to @ngn and @Adám. 0{⍬≡⍵:⍺⋄n←⍺+1⋄0=⊃⍵:n∇1↓⍵⋄n∇∊(⊂1n/-∘1@1¨)@1⊆∘⍵⍳⍨⌊\⍵}⌽ Try it online! Explanation: 0{...}⌽ ⍝ A monadic function trai …
answered Mar 13 by voidhawk
1
vote
APL (Dyalog Extended), 4 bytesSBCS ∪∘∊⍭ Try it online!
answered Mar 17 by voidhawk
5
votes
APL (Dyalog Unicode), 41 bytesSBCS Saved 30 bytes (!) by consulting the wisdom of the APL Orchard, especially @ngn and @Sherlock9. {0::⍵⋄∊∇¨⌽∘⊖¨@4,⌽@1⊢∘⍉\⌽↑∘⍵¨∘.,⍨2 ¯2÷⍨≢⍵} Try it online! Explan …
answered Mar 2 by voidhawk
0
votes
APL (Dyalog Extended), 21 bytesSBCS {⍵⌷↑,/(↓0 1↓⍳≥\⍳)¨⍳⍵} Try it online!
answered Mar 17 by voidhawk
0
votes
APL (Dyalog Unicode), 28 bytesSBCS {1=≢⍸s←⍵=3⌈/∊0⍵0:s/⍵⋄∇⍵/⍨~s} Try it online!
answered Mar 16 by voidhawk
2
votes
APL (Dyalog Unicode), 7 bytesSBCS 1=≢-≢∘∪ Try it online! Explanation: 1=≢-≢∘∪ ⍝ Monadic function train ≢∘∪ ⍝ Generate a list of unique items in the input, ⍝ and return the length …
answered Mar 2 by voidhawk