Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »

Activity for rak1507‭

Type On... Excerpt Status Date
Question Evaluation order of an APL n-train
Description APL trains are a series of functions, that get applied to an argument in this way: ``` (f g) x = f g x (f g h) x = (f x) g (h x) (a b c d e f) x = (a (b c (d e f))) x = a (b x) c (d x) e (f x) ``` Trains evaluate from the right to the left, so in the last example, (f x) is eval...
(more)
almost 3 years ago
Question Backspace an array
Challenge Given an array consisting of positive integers and 0s, return it with 0s acting like backspaces. Leading backspaces do nothing, and more backspaces than elements also does nothing. Credit: A comment on this video Test Cases ``` [0,0,0,0,0,5,7] -> [5,7] [1,2,0,3] -> [1,3] [1,...
(more)
almost 3 years ago
Answer A: Juggler sequences
[Jelly], 7 bytes Ḃ×½ḞµƬ ``` Ḃ×½ḞµƬ Ḃ input ^ (input % 2) ×½ multiply sqrt(input) Ḟ floor µƬ iterate until converged and collect results ``` Try it online!
(more)
almost 3 years ago
Question Merge two strings
Challenge Given two strings a and b, return the shortest string s so that s starts with a and ends with b. (Inspired by https://chat.stackexchange.com/transcript/message/57816868#57816868 ) Examples ``` 'ABCDEF', 'EFGHI' -> 'ABCDEFGHI' 'AAAAAA', 'AAAAAAAA' -> 'AAAAAAAA' 'ABC', '123' ->...
(more)
about 3 years ago
Answer A: Beaver Code Decryption
Solutions by ngn https://chat.stackexchange.com/transcript/message/57690032#57690032 APL 17: `{⍵[⍋⍋⍉⊖2⊥⍣¯1⍳≢⍵]}` ngn/k 13: `{x@<<+|2\!#x}` These are too good not to post.
(more)
about 3 years ago
Question Beaver Code Decryption
Credit This challenge is taken with permission from https://www.mysterytwisterc3.org/en/challenges/level-1/beaver-code Description The encryption method is as follows: The plaintext is divided into two halves, odd positions and even positions. Example: `'CRYPTO' -> ['CYT','RPO']` Th...
(more)
about 3 years ago
Question Cumulative Counts
Challenge Given an array of numbers return the cumulative count of each item. This is the number of times an item has occurred so far. Examples ``` [1,1,2,2,2,1,1,1,3,3] -> [1,2,1,2,3,3,4,5,1,2] [3,7,5,4,9,2,3,2,6,6] -> [1,1,1,1,1,1,2,2,1,2] ``` Brownie points for beating my 7 byte AP...
(more)
about 3 years ago
Question Ratio limits of fibonacci-like series
Definition \$F{n}\left(0\right)=0\$ \$F{n}\left(1\right)=1\$ \$F{n}\left(x\right)=n\cdot F{n}\left(x-1\right)+F{n}\left(x-2\right)\$ For example: \$F{1}=\left[0,1,1,2,3,5,8,13,21,34,55,89...\right]\$ \$F{2}=\left[0,1,2,5,12,29,70,169,408,985...\right]\$ \$F{3}=\left[0,1,3,10,33,1...
(more)
about 3 years ago
Question Longest parallel lines
Note: This challenge was underspecified and bad, and as such I would not encourage answering it in the future. Challenge You will be given a single 2D boolean array \$M\$. You may take its dimensions as a separate argument if needed. Find the longest parallel lines in the matrix. Parallel...
(more)
about 3 years ago
Answer A: Write a Deadfish Interpreter
[APL (Dyalog Classic)], 47 bytes i←+∘1⋄d←-∘1⋄s←×⍨⋄o←⎕∘←⋄{}{0⌈a×256≠a←⍎⍕⍺,⍵}/⌽0,⍞ Try it online!
(more)
about 3 years ago
Answer A: Truthify an array
[APL (Dyalog Extended)], 1 byte ⍸ ¯\\(ツ)/¯ Try it online!
(more)
over 3 years ago