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

Type On... Excerpt Status Date
Edit Post #293039 Initial revision 24 days ago
Answer A: Partial Sums of Harmonic Series
Vyxal, 7 bytes ``` ɾĖ∑?≥)ṅ ``` Try it Online! Vyxal has arbitrary-precision rationals, so this will never run into precision errors. ``` ṅ # Find the first integer ) # where ∑ # sum of Ė # reciprocals of ɾ # range from 1 to n inclusive ≥ # is at least ...
(more)
24 days ago
Suggested Edit Post #288535 Suggested edit:
Replace "substring" with "subsequence" - "substring" generally implies a contiguous sequence of characters, "subsequence" does not.
(more)
declined over 1 year ago
Edit Post #287603 Initial revision about 2 years ago
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)
about 2 years ago
Edit Post #287183 Initial revision about 2 years ago
Answer A: Just the vowels please
Vyxal, 3 bytes ``` k∨↔ ``` Try it Online! ``` ↔ # Keep chars from k∨ # vowels ```
(more)
about 2 years ago
Edit Post #285486 Initial revision almost 3 years 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)
almost 3 years ago
Edit Post #284292 Initial revision about 3 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)
about 3 years ago
Edit Post #284273 Initial revision over 3 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 3 years ago
Edit Post #284126 Initial revision over 3 years ago
Answer A: Expand a polynomial
Vyxal, 2 bytes ``` ∆ṙ ``` Try it Online! That cheap builtin.
(more)
over 3 years ago
Edit Post #283911 Initial revision over 3 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 3 years ago
Comment Post #283908 Also, can we assume that there will be no ties?
(more)
over 3 years ago
Edit Post #283857 Initial revision over 3 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 3 years ago
Edit Post #283856 Initial revision over 3 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 3 years ago
Edit Post #283854 Initial revision over 3 years ago
Answer A: Make my value binary
Vyxal, 1 byte ``` b ``` Try it Online! `b` is for binary...
(more)
over 3 years ago
Edit Post #283775 Initial revision over 3 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 3 years ago
Edit Post #283762 Initial revision over 3 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 3 years ago
Edit Post #283761 Post edited:
over 3 years ago
Edit Post #283761 Initial revision over 3 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 3 years ago
Edit Post #283755 Initial revision over 3 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 3 years ago
Edit Post #283733 Initial revision over 3 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 3 years ago
Edit Post #283378 Initial revision over 3 years ago
Answer A: Merge two strings
Vyxal, 1 byte ``` ⋎ ``` Try it Online! Builtin be like
(more)
over 3 years ago
Edit Post #282905 Post edited:
over 3 years ago
Edit Post #282905 Initial revision over 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)
over 3 years ago