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 A username‭

Type On... Excerpt Status Date
Answer A: Mediocre pop count
Vyxal, 12 bytes ``` bṠ:₍gGvc†Tİ∑ ``` Try it Online! ``` İ # Index into input T # Indices where v # For each Ṡ # Sum of b # Binary digits ₍gG # Does [min, max] † # Not c # contain : # That ...
(more)
over 1 year ago
Answer A: Just the vowels please
Vyxal, 3 bytes ``` k∨↔ ``` Try it Online! ``` ↔ # Keep chars from k∨ # vowels ```
(more)
over 1 year ago
Answer A: Determine whether an integer is square-free
Vyxal, 4 bytes ``` K∆²a ``` Try it Online! Outputs 0 for square-free, 1 for not. ``` K # Factors ∆² # Is perfect square a # Any true? ```
(more)
over 2 years ago
Answer A: Stairs? Stairs! Stairs.
Vyxal `jṀ`, 11 bytes ``` ƛd‛/$꘍⁰d↳Ḣ ``` Try it Online! ``` ƛ # Map 0...n to... ‛/ # '/' $꘍ # And append... d # Double # (Implicit input) $꘍ # Spaces ↳ # Pad to length... d # Double ⁰ # Initial ...
(more)
over 2 years ago
Answer A: Reverse your quine
Vyxal `D`, 10 bytes ``` `:qpṘ`:qpṘ ``` Try it Online! ``` `:qp `:qp # Standard quine structure Ṙ Ṙ # Reverse ``` Or, more interestingly... Vyxal `D`, 31 bytes ``` `q\`:Ė#\`+øm`:Ė#Ė:`mø+`\#Ė:`\q` ``` Try it Online! ``` `q\`:Ė \`+ `:Ė # Standard eval quine s...
(more)
over 2 years ago
Answer A: Expand a polynomial
Vyxal, 2 bytes ``` ∆ṙ ``` Try it Online! That cheap builtin.
(more)
over 2 years ago
Answer A: Generalized Sort
[JavaScript (Node.js)], 52 bytes (A,...c)=>A.sort((a,b)=>c.map(z=>z(a,b)).find(x=>x)) Try it online! A golf of the reference code. If we can assume there will be no ties, 47 is possible in a rather neat way.
(more)
over 2 years ago
Answer A: Reduce over the range [1..n]
Vyxal `R`, 1 byte ``` R ``` Try it Online! Function must be inserted in the header. The `R` flag casts integers to ranges when an integer can't be used. `R` is the builtin for 'Reduce list by function', and it can't use an integer, so ranges before reducing.
(more)
over 2 years ago
Answer A: Word Set Square
Vyxal `J`, 12 bytes ``` ḣmėƛ÷꘍ṘǏ;⁋?m ``` Try it Online! ``` ḣ # Head extract (x[0], x[1:] ) m # Mirror the ToS (x[1:]) ė # Zip with 0...length ƛ ; # Map... ÷꘍ # Pad by spaces to correct amount ṘǏ # Append the first chara...
(more)
over 2 years ago
Answer A: Make my value binary
Vyxal, 1 byte ``` b ``` Try it Online! `b` is for binary...
(more)
over 2 years ago
Answer A: Make $2 + 2 = 5$
Vyxal `s`, 5 bytes ``` 2=A5 ``` [Try it Online! You're not the only one who can abuse flags, Shaggy... ``` 2= # Foreach, is it equal to to? A[ # If all are 2 5 # Push a 5. # (s flag) sum of top of stack. If 5, then 5 is outputted, else a+b is outputted. ```
(more)
over 2 years ago
Answer A: Tile pyramids on top of each other!
Vyxal `C`, 6 bytes ``` ƛ\/øṀ ``` Try it Online! ``` ƛ # 1...n map \/ # That many / øṀ # Ascii art mirror # (C flag) Join by newlines and center ```
(more)
over 2 years ago
Answer A: Write a Deadfish Interpreter
Vyxal `D`, 26 bytes ``` 0Ȯ(n«ƛ√J«`›‹²…`ĿĖD₈=$0<∨0 ``` [Try it Online! ``` 0 # Push 0 Ȯ(n # Iterating over the input «ƛ√J«`›‹²…`Ŀ # Transliterate into appropriate Vyxal instruction Ė # Evaluate ...
(more)
over 2 years ago
Answer A: My house is destroyed! Can you make me one?
Vyxal, 13 bytes ``` \#,‹(⇩\#꘍ṘǏ, ``` Try it Online! ``` \#, # Print a line of # ‹( # n-1 times... ⇩\#꘍Ṙ # n-2 spaces before a hash Ǐ, # Append a hash and print ```
(more)
over 2 years ago
Answer A: Roll n fair dice
Vyxal `ṪR`, 3 bytes ``` (⁰℅ ``` Try it Online! ``` ( # N times... ℅ # Generate a random integer between one and... ⁰ # First argument ```
(more)
over 2 years ago
Answer A: Merge two strings
Vyxal, 1 byte ``` ⋎ ``` Try it Online! Builtin be like
(more)
almost 3 years ago
Answer A: Caesar shift cipher
[JavaScript (Node.js)], 67 60 bytes o=>r=>Buffer(o).map(c=>c%3264?(c%32+r)%26+c-c%32:c)+'' Try it online! ``` o=>r=> // Define a function taking o and r, and returning... Buffer(o).map(c=> // a Buffer of the charcodes of o, mapped to... c%3264 //...
(more)
almost 3 years ago