Skip to content

Instantly share code, notes, and snippets.

@adregan
Created December 8, 2021 00:22
Show Gist options
  • Save adregan/3294af52c7e7f8decfbc9f517fad3921 to your computer and use it in GitHub Desktop.
Save adregan/3294af52c7e7f8decfbc9f517fad3921 to your computer and use it in GitHub Desktop.
⌊/+/(|(⍳1+⌈/)∘.-⊢)in
⌊/+/((+/(1∘+⍤⍳⊢))⍤0⊢)(|(⍳1+⌈/)∘.-⊢)in
@adregan
Copy link
Author

adregan commented Dec 9, 2021

┌→──────┐
│5 3 5 3│
└~──────┘

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment