Activity for A username
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
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 | — | almost 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) |
— | almost 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 | — | about 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) |
— | about 3 years ago |
Edit | Post #284126 | Initial revision | — | about 3 years ago |
Answer | — |
A: Expand a polynomial Vyxal, 2 bytes ``` ∆ṙ ``` Try it Online! That cheap builtin. (more) |
— | about 3 years ago |
Edit | Post #283911 | Initial revision | — | about 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) |
— | about 3 years ago |
Comment | Post #283908 |
Also, can we assume that there will be no ties? (more) |
— | about 3 years ago |
Edit | Post #283857 | Initial revision | — | about 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) |
— | about 3 years ago |
Edit | Post #283856 | Initial revision | — | about 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) |
— | about 3 years ago |
Edit | Post #283854 | Initial revision | — | about 3 years ago |
Answer | — |
A: Make my value binary Vyxal, 1 byte ``` b ``` Try it Online! `b` is for binary... (more) |
— | about 3 years ago |
Edit | Post #283775 | Initial revision | — | about 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) |
— | about 3 years ago |
Edit | Post #283762 | Initial revision | — | about 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) |
— | about 3 years ago |
Edit | Post #283761 |
Post edited: |
— | about 3 years ago |
Edit | Post #283761 | Initial revision | — | about 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) |
— | about 3 years ago |
Edit | Post #283755 | Initial revision | — | about 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) |
— | about 3 years ago |
Edit | Post #283733 | Initial revision | — | about 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) |
— | about 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 |