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 Shaggy‭

Type On... Excerpt Status Date
Comment Post #284040 This is [A006577](https://oeis.org/A006577).
(more)
about 3 years ago
Comment Post #284049 Dunno what purpose the `a[99]` serves but it seems to work without the `99`.
(more)
about 3 years ago
Comment Post #283990 https://tio.run/##JcjBCoIwGADgcz7FjxRu/E6nQgdt9RAdI3DoFgvZxI0u5rMvodvH95Yf6YfFzIFZN6oYtSA294JTcbU3TWzZoD01Zf3leZZRTJFxZOljP6yfrY/aLWRSAQwIYBXn3a4L/IFIYU0Og7PeTaqY3Iv0x9VsLfTFLMd7kEsgZwoImhhKu2SLPw
(more)
about 3 years ago
Edit Post #284041 Initial revision about 3 years ago
Answer A: "Hello, {name}!"
Japt, 10 bytes `HÁM, {U}! Try it The backtick decompresses a compressed string, the `{}` is Japt's string interpolation and `U` is the first input variable.
(more)
about 3 years ago
Comment Post #284035 Those shapes look like they're of size `n+2` to me ;) Also, I don't personally see this as being significantly different enough to your "build me a house" challenge; others may have different opinions, of course.
(more)
about 3 years ago
Edit Post #284039 Initial revision about 3 years ago
Answer A: Stairs? Stairs! Stairs.
Japt `-R`, 13 bytes Uses `=` in place of `#`. Æ"/"+Xç¥ÃoÅù Try it Æ"/"+Xç¥ÃoÅù :Implicit input of integer U Æ :Map each X in the range [0,U) "/" : Literal string + : Append Xç : X times repeat...
(more)
about 3 years ago
Comment Post #283990 On my phone so haven't double checked all your test cases. https://tio.run/##JcZBDoIwEADAs7xiQ2K6m02lwg2sPsR4INiakmZrgHBB315JPM2M/drPwxTei5b0dDl7K/YqN49SNYxytA1V9ccQl6wN6/IuXD9apbJPE0a3QAAL@mxMt@8C/zATbMVhSDKn6E4xvTAAg2pB7XgMRF3xzT8
(more)
about 3 years ago
Edit Post #283939 Post edited:
about 3 years ago
Comment Post #283941 I think it needs to be clarified that `a` must be mutable and that the operation(s) performed on it must mutate it. For example, in JavaScript, if `a` is a string or an integer then something like `a+a` wouldn't modify the original input. But if `a` is an array then some methods, like `push` & `sort...
(more)
about 3 years ago
Edit Post #283939 Initial revision about 3 years ago
Answer A: 1, 2, Fizz, 4, Buzz!
Rockstar, 138 135 133 bytes F takes I&S let M be N/I turn up M if N-IM S's"" return S N's0 while N-100 let N be+1 say F taking 3,"Fizz"+F taking 5,"Buzz" or N Try it here (Code will need to be pasted in)
(more)
about 3 years ago
Edit Post #283925 Post edited:
about 3 years ago
Edit Post #283933 Initial revision about 3 years ago
Answer A: Word Set Square
JavaScript, 76 bytes Outputs an array of lines. s=>[...s+=[...s].reverse().join``].map((c,x)=>s[-x]?c.padEnd(x)+(x?c:``):s) Try it online! – Try It Online")
(more)
about 3 years ago
Edit Post #283925 Post edited:
about 3 years ago
Edit Post #283925 Post edited:
about 3 years ago
Edit Post #283925 Post edited:
about 3 years ago
Edit Post #283925 Post edited:
about 3 years ago
Edit Post #283925 Post undeleted about 3 years ago
Edit Post #283923 Post undeleted about 3 years ago
Comment Post #283917 Specifically in the case of the <span class="badge is-tag">finalised</span> tag, we should burninate it and start encouraging people to delete sandboxed challenges once they are posted in order to avoid clutter in the Sandbox.
(more)
about 3 years ago
Edit Post #283923 Post deleted about 3 years ago
Edit Post #283925 Post deleted about 3 years ago
Edit Post #283925 Post edited:
about 3 years ago
Edit Post #283925 Initial revision about 3 years ago
Answer A: Generalized Sort
Japt `-h`, 5 bytes Takes the array to be sorted as input and assigns the array of functions, in reverse order, to variable V. V£=ñX Try the names test case I could save a byte by replacing `=ñ` with just `n` and tweaking the functions but doing it this way allows me to do something Ja...
(more)
about 3 years ago
Edit Post #283923 Initial revision about 3 years ago
Answer A: Generalized Sort
JavaScript, 25 bytes Arguments are curried, i.e. `f(a)(s)`, where `a` is the array to be sorted and `s` is an array of functions to sort by, in reverse order. Modifies `a` in place, which I don't know that we have a consensus on here yet - if it's not permitted then add `&&a` to the end to return ...
(more)
about 3 years ago
Comment Post #283908 Can we take input of the black box comparitor functions in reverse order? If, instead of taking the functions as input, we're assigning them to a variable then may we assign them all to a _single_ variable as an array? Could you add a few more test cases with 3 or more sorting criteria? (Apologies fo...
(more)
about 3 years ago
Comment Post #283858 While the use of `_` and `/` is obvious for the overall shape of the staircase, may we substitute and alternative character for `#`?
(more)
about 3 years ago
Edit Post #283841 Initial revision about 3 years ago
Answer A: Make my value binary
JavaScript, 16 bytes n=>n.toString(2) Try it online!
(more)
about 3 years ago
Edit Post #283840 Initial revision about 3 years ago
Answer A: Make my value binary
Japt, 1 byte ¤ Try it or run all test cases
(more)
about 3 years ago
Comment Post #283383 https://tio.run/##ZVHLbtwwDDzHXzH1JTbg@AMaeO855QOSBSJrZVuNLAqS/GrRb9/qscEW7cWkZ4YcUvzBVua4lcY/abqI69BdWXdirSPrq2pvjro7jdVeP43VUTdjt3en8sBohUBv4Th6xUAcRsAuPUhhxQAlMRL4hBncCnA4WAKDCiKMMAs2GBD6snVGSf@Bj3aQ@vKiL2KvfHf6trcy5q9D5eu6vnLSzsML5x06vBUPb@cmfMo4iC4blL1aRIxWXNKvpU2XNw2phAXtcYviiwszB6w8hFK0hSSVZ@V...
(more)
about 3 years ago
Edit Post #283771 Post edited:
about 3 years ago
Comment Post #283782 [31 bytes](https://tio.run/##TYrRCoIwGEbv9xQfRrGfWUR0N@1Juonp6h81Yyko4rOvaQTefB@cc8z@bkyMVvb5QGOo2y549GpQsi/L025IQ3qKG/bm2VU1ik9bcXN4XAT7Fq8be0liFIBtAuTMGCWOOl2Bs4ZSTMnOxapxv8b9G0eLB94haSuzLSPLreTcEWmxNlefLWQSk4hf) or [29 bytes](https://tio.run/##TcrRCoIwGMXx@z3FwQg21Aipm2b1It3EdPWNmrEUHOazr2kEXh04/5...
(more)
about 3 years ago
Edit Post #283781 Initial revision about 3 years ago
Answer A: My house is destroyed! Can you make me one?
Rockstar, 82 bytes listen to N let N be-2 X's-1 say "##"+"#"N while N-X say "#"+" "N+"#" let X be+1 Try it (code will need to be pasted in)
(more)
about 3 years ago
Edit Post #283774 Initial revision about 3 years ago
Answer A: Make $2 + 2 = 5$
JavaScript, 19 bytes x=>y=>x-2|y-2?x+y:5 Try it online!
(more)
about 3 years ago
Edit Post #283771 Post edited:
about 3 years ago
Edit Post #283771 Post edited:
about 3 years ago
Edit Post #283771 Initial revision about 3 years ago
Answer A: Make $2 + 2 = 5$
Japt `-x`, 6 5 bytes Takes input as an array of integers p!UdÍ Try it p!UdÍ :Implicit input of array U p :Push ! : Logical NOT of Ud : Any true (not zero) when Í : Subtracted from 2 :Implicit output of sum ...
(more)
about 3 years ago
Edit Post #283735 Post edited:
about 3 years ago
Edit Post #283769 Post edited:
about 3 years ago
Edit Post #283769 Initial revision about 3 years ago