Activity for lyxal
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Edit | Post #292832 | Initial revision | — | 2 months ago |
Answer | — |
A: Source with the whole alphabet in order of appearance Vyxal, 27 bytes ``` QabcdefghijKlmnopqrstUvwxyz ``` Try it Online! Works by exiting straight away. The joys of a language where every letter is a built-in function. Explained ``` QabcdefghijKlmnopqrstUvwxyz Q # Terminate the program a ... (more) |
— | 2 months ago |
Comment | Post #291891 |
https://codegolf.codidact.com/posts/288547/288548#answer-288548 (more) |
— | 2 months ago |
Edit | Post #292745 | Initial revision | — | 2 months ago |
Answer | — |
A: Multiplicative perfection Vyxal, 4 bytes ``` KΠ√= ``` Try it Online! Another 4 byter, but uses the definition of A007422 that a number returns true if `product(divisors) == input 2`. Explained ``` KΠ√= = # Does the ... (more) |
— | 2 months ago |
Edit | Post #291891 |
Post edited: |
— | 6 months ago |
Edit | Post #291891 |
Post edited: |
— | 6 months ago |
Edit | Post #291891 | Initial revision | — | 6 months ago |
Answer | — |
A: Hex detector Vyxal, 46 bitsv2, 5.75 (6) bytes ``` ɾ61p¦c ``` Try it Online! Bitstring: ``` 0010000001011001000111011010010100001111001000 ``` Link is to test suite. Should execute up to 870 or so. Try it without the test suite! Explained ``` ɾ61p¦c... (more) |
— | 6 months ago |
Edit | Post #289997 |
Post edited: |
— | about 1 year ago |
Edit | Post #289997 | Initial revision | — | about 1 year ago |
Answer | — |
A: Single digit Roman numeral Vyxal, 12 bitsv2, 1.5 or 2 bytes ``` øṘ ``` Try it Online! or Try the entire test suite Bitstring: ``` 000101111100 ``` Very simply a built-in (more) |
— | about 1 year ago |
Edit | Post #288648 |
Post edited: |
— | over 1 year ago |
Comment | Post #288548 |
The leaderboard does not floor - it takes the number after the decimal place and counts that as the score. The `5.5` case happened to be a coincidence. [Source](https://codegolf.codidact.com/posts/288563/288648#answer-288648) (more) |
— | over 1 year ago |
Edit | Post #288648 | Initial revision | — | over 1 year ago |
Answer | — |
A: Build a replacement ball in regex. Vyxal, 62 bitsv2, 8 bytes ``` ẏḋ\.vȦ\|j ``` Try it Online! Really 7.75 bytes, but leaderboard regex is a thing. Explained ``` ẏḋ\.vȦ\|j ẏ # Range [0, len(X)) ḋ # n-length combinations of X without replacement \.vȦ # for each combination c: # repl... (more) |
— | over 1 year ago |
Edit | Post #288547 | Initial revision | — | over 1 year ago |
Question | — |
Codidact Fractional Byte Consensus Over on the Code Golf StackExchange site, there is a meta consensus that answers can be scored in fractional bytes if there exists such an encoding method. So, to quote the linked consensus question: > For languages with fractional byte code pages, such as half-byte code pages or huffman coding... (more) |
— | over 1 year ago |
Edit | Post #288546 | Initial revision | — | over 1 year ago |
Answer | — |
A: Efficient censorship Vyxal, 44 bitsv2, 5.5 bytes ``` ṗ'⁰c¬;ÞG ``` Try it Online! Or, try a test suite This is like the second time this week I've used powerset for golf on a site that isn't SE. Explained ``` ṗ'⁰c¬;ÞG ṗ # Powerset of the first input ' ;ÞG # longest string s where: c¬ ... (more) |
— | over 1 year ago |
Edit | Post #287328 | Initial revision | — | about 2 years ago |
Answer | — |
A: Can you give me half? Vyxal, 1 byte ``` . ``` Try it Online! Very simple 1 byter (more) |
— | about 2 years ago |
Edit | Post #287271 | Initial revision | — | about 2 years ago |
Answer | — |
A: Balanced quinary quasiquine Vyxal `D`, 62 bytes ``` `$f3uV4udV5β$I$:∇₍λ2|62∵Ẏ;ȯ$0<i`$f3uV4udV5β$I$:∇₍λ2|62∵Ẏ;ȯ$0<i ``` Try it Online! Character map: ``` 4 : -2 3 : -1 0 : 0 1 : 1 2 : 2 ``` Nice, long and yummy quine. Explained ``` `$f3uV4udV5β$I$:∇₍λ2|62∵Ẏ;ȯ$0<i` ``` Push the string `... (more) |
— | about 2 years ago |
Edit | Post #287184 |
Post edited: |
— | about 2 years ago |
Edit | Post #287184 | Initial revision | — | about 2 years ago |
Answer | — |
A: Just the vowels please Vyxal, 2 bytes ``` A ``` Try it Online! Takes input as a string, outputs a list of vowels. Explained ``` A # Keep only letters from the input where A # the letter is a vowel ``` (more) |
— | about 2 years ago |
Edit | Post #287115 |
Post edited: |
— | about 2 years ago |
Edit | Post #287115 | Initial revision | — | about 2 years ago |
Answer | — |
A: The holeyest base Vyxal, 19 18 bytes ``` 16Ḣλ»≤ṪḢ»3τ?nτİ∑;∴ ``` Try it Online! The link goes to a program which has every test case. -1 thanks to Steffan Explained (old) ```python 16Ḣλ?$τ»≤ṪḢ»3τ$İ∑;O 16Ḣ # The range [2, 16] λ ;O # Get the maximal items in the list... (more) |
— | about 2 years ago |
Edit | Post #286981 |
Post edited: |
— | about 2 years ago |
Edit | Post #286981 | Initial revision | — | over 2 years ago |
Answer | — |
A: Looping counter Vyxal, 5 4 bytes ``` ¤{‹… ``` Try it Online! This is so stupid and I love it Explained ``` ¤{‹… ¤ # Push an empty string { # Forever: ‹ # Append a "-" to the top of the stack … # And print it without popping ``` (more) |
— | over 2 years ago |
Edit | Post #286860 | Initial revision | — | over 2 years ago |
Answer | — |
A: Cumulative Counts Vyxal, 4 bytes ``` KƛtO ``` Try it Online! Explained ``` KƛtO Kƛ # For each prefix of the input tO # How many times does the tail occur in the prefix? ``` (more) |
— | over 2 years ago |
Edit | Post #286857 | Initial revision | — | over 2 years ago |
Answer | — |
A: Make a frequency table (histogram) Vyxal, 1 byte ``` Ċ ``` Try it Online! Yes, there really is a built-in for this. (more) |
— | over 2 years ago |
Edit | Post #286856 | Initial revision | — | over 2 years ago |
Answer | — |
A: Find n Niven Numbers Vyxal, 4 bytes ``` ‡∑Ḋȯ ``` Try it Online! Explained ``` ‡∑Ḋȯ ‡ ȯ # Find the first input numbers where: ∑ # The sum Ḋ # Divides that number ``` (more) |
— | over 2 years ago |
Comment | Post #283775 |
Although I had `2J≈[5` (more) |
— | over 3 years ago |
Comment | Post #283775 |
Dang it I was just about to post that! (more) |
— | over 3 years ago |
Edit | Post #283414 | Initial revision | — | over 3 years ago |
Answer | — |
A: Small integer swapping Vyxal `o`, 5 bytes ``` $"," ``` Try it Online! I'd say this counts, because `$` is quite literally "swap the top two items on the stack". Explained ``` $"," $ # Swap the top two items, but peek instead of pop ", # pair and output " # pair what remains and output with th... (more) |
— | over 3 years ago |
Edit | Post #283134 | Initial revision | — | over 3 years ago |
Answer | — |
A: It's Hip to be Square Vyxal, 2 bytes ``` ∆² ``` Try it Online! Woooooooo built-in elements ftw. (more) |
— | over 3 years ago |
Edit | Post #279368 |
Post edited: |
— | over 3 years ago |
Edit | Post #279166 |
Post edited: |
— | almost 4 years ago |
Edit | Post #279368 |
Post edited: |
— | about 4 years ago |
Edit | Post #279368 | Initial revision | — | about 4 years ago |
Answer | — |
A: 1, 2, Fizz, 4, Buzz! Vyxal `Hj`, 10 bytes ``` ƛ₍₃₅kF½∑∴ ``` Try it Online! Vyxal has gotten a whole lot better since first posting this. Explained Very simply, this is: for each item in the range `[1, 100]`, create the list `[item % 3 == 0, item % 5 == 0]`, multiply that by `["Fizz",... (more) |
— | about 4 years ago |