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 »

Posts by emanresu A‭

18 posts
75%
+4 −0
Challenges Make $2 + 2 = 5$

Vyxal s, 5 bytes 2=A[5 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...

posted 3y ago by emanresu A‭

Answer
71%
+3 −0
Challenges Caesar shift cipher

JavaScript (Node.js), 67 60 bytes o=>r=>Buffer(o).map(c=>c%32<26&c>64?(c%32+r)%26+c-c%32:c)+'' Try it online! o=>r=> // Define a function taking o an...

posted 3y ago by emanresu A‭  ·  edited 3y ago by emanresu A‭

Answer
71%
+3 −0
Challenges 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?

posted 3y ago by emanresu A‭

Answer
66%
+2 −0
Challenges Just the vowels please

Vyxal, 3 bytes k∨↔ Try it Online! ↔ # Keep chars from k∨ # vowels

posted 2y ago by emanresu A‭

Answer
66%
+2 −0
Challenges 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«`›‹²…`Ŀ # Translit...

posted 3y ago by emanresu A‭  ·  edited 3y ago by emanresu A‭

Answer
66%
+2 −0
Challenges 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

posted 3y ago by emanresu A‭

Answer
66%
+2 −0
Challenges Make my value binary

Vyxal, 1 byte b Try it Online! b is for binary...

posted 3y ago by emanresu A‭

Answer
66%
+2 −0
Challenges 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... ...

posted 3y ago by emanresu A‭

Answer
66%
+2 −0
Challenges 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', an...

posted 3y ago by emanresu A‭

Answer
66%
+2 −0
Challenges Expand a polynomial

Vyxal, 2 bytes ∆ṙ Try it Online! That cheap builtin.

posted 3y ago by emanresu A‭

Answer
66%
+2 −0
Challenges 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 ...

posted 3y ago by emanresu A‭

Answer
60%
+1 −0
Challenges 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...

posted 24d ago by emanresu A‭

Answer
60%
+1 −0
Challenges 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 ...

posted 2y ago by emanresu A‭

Answer
60%
+1 −0
Challenges Stairs? Stairs! Stairs.

Vyxal jṀ, 11 bytes ƛd‛_/$꘍⁰d↳Ḣ Try it Online! ƛ # Map 0...n to... ‛_/ # '_/' $꘍ # And append... d # Double # (Implicit input) $꘍ ...

posted 3y ago by emanresu A‭

Answer
60%
+1 −0
Challenges 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 po...

posted 3y ago by emanresu A‭

Answer
60%
+1 −0
Challenges 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

posted 3y ago by emanresu A‭

Answer
60%
+1 −0
Challenges Roll n fair dice

Vyxal ṪR, 3 bytes (⁰℅ Try it Online! ( # N times... ℅ # Generate a random integer between one and... ⁰ # First argument

posted 3y ago by emanresu A‭

Answer
60%
+1 −0
Challenges Merge two strings

Vyxal, 1 byte ⋎ Try it Online! Builtin be like

posted 3y ago by emanresu A‭

Answer