Activity for Shaggy
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Comment | Post #288502 |
I think this would benefit from reiterating the last bullet point from the "Output" section in the "Equivalence" section. On first read through, I wasn't 100% clear on whether we needed to handle rotations, etc. (more) |
— | 11 months ago |
Comment | Post #287173 |
May we take input as an array of balanced quinary digits? (more) |
— | over 1 year ago |
Comment | Post #287194 |
Ah, that's what I was missing! Thanks, @#53196. (more) |
— | over 1 year ago |
Comment | Post #287210 |
D'oh! I could, of course. Thanks, @#53890. (more) |
— | over 1 year ago |
Comment | Post #287207 |
Why do none of the characters between space & forward slash change? Each one of them has a `0` in the specified position of the binary of their charcode. So I would expect each of them to be changed to `0123456789:;<=>?`, respectively. (more) |
— | over 1 year ago |
Comment | Post #287194 |
I had considered that, thanks @#53196, but discarded it would group consecutive vowels together and potentially have empty strings in the array, giving an inconsistent output format. (more) |
— | over 1 year ago |
Comment | Post #285511 |
I'm an idiot! [5 bytes](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=ayDkzmU&input=MjA) (more) |
— | over 1 year ago |
Comment | Post #287182 |
Is `null` a valid output if there are no vowels? (more) |
— | over 1 year ago |
Comment | Post #287153 |
I think the test cases would be easier to visualise using a non-whitespace character for the "background". (more) |
— | over 1 year ago |
Comment | Post #287132 |
There are _plenty_ of others but I'm partial to codepen.io, myself. (more) |
— | over 1 year ago |
Comment | Post #285891 |
The Japt one _must_ work in a couple of other languages, surely? I'd be shocked if it didn't. (more) |
— | over 1 year ago |
Comment | Post #287133 |
I would VTC this as a dupe of your existing challenge about fruits. (more) |
— | over 1 year ago |
Comment | Post #287088 |
For the first time here, I find my finger hovering over the `-1` icon and my apologies for not bringing this up in the Sandbox; I did mean to.
This doesn't really feel like a golfing or even coding challenge to me but rather a challenge to find the permutation of the combination that compresses to... (more) |
— | over 1 year ago |
Comment | Post #287090 |
Seeing as there are only 12 possible layouts before without rotation/reflection, it'd probably be best to include them as examples. (more) |
— | over 1 year ago |
Comment | Post #282836 |
Instead of creating a new object, you're assigning the callback function of the `map` to variable `d` and using that as your object. (more) |
— | over 1 year ago |
Comment | Post #282836 |
[26 bytes](https://tio.run/##JYxBCoMwFETX5hR/V4Nfwaa1FIkXCVkETUqLNWJCNqW9ehojw8zADLyXCsqN23P19WInHQ2Pig@qeau1nHjgwySC5PVvLxpHuzgPXjvvgIMghWixxXNWm8WQSUw7wxte8YL39LDkDjtJZE@IsRuUsz4oYM1Bo/AhxU63s25m@yjzW8EJ6iFFBSYvlPbkG/8) (more) |
— | over 1 year ago |
Comment | Post #287054 |
It's an anonymous function, @#56533, just like we have in [JavaScript](https://codegolf.codidact.com/posts/287035/287045#answer-287045) .The `f=` would only need to be included if the function were recursive. (more) |
— | over 1 year ago |
Comment | Post #287054 |
I see where I went wrong! Fixed. Thanks, @#8056. (more) |
— | over 1 year ago |
Comment | Post #287050 |
Actually, screw it, I'm quite proud of that, seeing as I'm not a Python guy so I'm having it for meself! 😆 Sorry! (more) |
— | over 1 year ago |
Comment | Post #287050 |
[45 bytes](https://tio.run/##K6gsycjPM7YoKPqfZhvzPycxNyklUSHPKjOvRCNPB0TmJlZoKBkpaedp6hiaaWobauYXKeSk5mnkaf4vKAIpSNNQMjE1VtLU/J8GAA), for starters. (more) |
— | over 1 year ago |
Comment | Post #287050 |
I'm not a Python guy but would a lambda not be shorter? (more) |
— | over 1 year ago |
Comment | Post #285511 |
[6 bytes](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=ayDkpiBl&input=MjA) (more) |
— | over 1 year ago |
Comment | Post #286632 |
[32 bytes](https://tio.run/##RY3BCoMwEETP5iv2JAmsUttqDxJ/RHIIxpQWa8QEL2J/PU1SSmHYGR7DzlNu0g7rY3HFbNToNfeSd7J8yYVuvFP9JnjxjoaK7wfLc@UHM1sHbrTOAoeeZH2FEHRGuCDUCE2QwMDTqRK4/SpNUsh1KF9DOgkiWkK0WYH@X4PR3wkGO8kiN9NYTuZOI0XQyRlryeE/) (more) |
— | over 1 year ago |
Comment | Post #284951 |
Does the case of the output matter? Can we output all lowercase or all uppercase? (more) |
— | over 2 years ago |
Comment | Post #284516 |
https://tio.run/##zZRBbsIwEEXX@BTe2VaCM3ZbJFolHKJLYBGmtguKbJRYCAk4ewpOpfYG@K9m3t@81T@0p3bAfn@Mcx@@zGjr8Vw3Z9mbY9ei4RWXUmzUBcqFvlWu5Fg6UTfYMGTXK67ftiuulrpA2Rnv4nelhYzhM/Z777haiMK9oxgx@CHSaIY40JquyYwBgAINL/DKyumFhBRAAjuzswioUP/vn5QMFDKRyEbjV8Q@NRkoZCKRjUYS2X4QYkNP@d/u0GCn/RH0QmYPHjoju@B4agvKNp7OG8rup01... (more) |
— | over 2 years ago |
Comment | Post #284463 |
Is there an option to not have them at all? I don't see what value they'd add that isn't already covered by being able to upvote or downvote a solution? If they awarded rep then maybe I could see value in the "Works for me" one if it awarded twice the rep - a way of awarding a bounty to a solution un... (more) |
— | over 2 years ago |
Comment | Post #284407 |
Can we use our language's native operators (e.g., `p` in Japt for exponentiation)? I'm guessing from your use of `.` in the test cases we can. Also, you need to mention that `/` is floor/integer division. (more) |
— | over 2 years ago |
Comment | Post #284145 |
[46 bytes](https://tio.run/##K6gsycjPM/6fZhvzPycxNyklUSHPKjpPN1MrUyG/SCG1IrNEw1AzDcjMVMjMUyhKzEtP1TDUztOM/Z@mYaD5HwA) as a lambda. (more) |
— | over 2 years ago |
Comment | Post #284145 |
Could you reverse the condition to get it down to [52 bytes](https://tio.run/##K6gsycjPM7YoKPr/Py2/SCFTITNPoSgxLz1Vw1Bbo8LKNjOvRCMzr6C0REMTCKwqdDO1MhWAClMrMks0DDX//zcAAA)? (not a Python guy so it'll need verifying) (more) |
— | over 2 years ago |
Comment | Post #284132 |
This _does_ nothing if the input isn't square. [This 44 byte version](https://tio.run/##K8go@P/fxr4go0AhNTkjX0Ol0ra4sKhEQ6XCNi09taRYIzjExdNPU1NTCyhjq1Jh/f@/AQA), though, will _output_ nothing, which is falsey, if the input isn't square. Although, it can be done in at least 26 bytes ;) (more) |
— | over 2 years ago |
Comment | Post #284145 |
This exits with `0` for both 0 & 1, which are perfect squares. (more) |
— | over 2 years ago |
Comment | Post #284127 |
https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&flags=LVE&code=4CD8yst4X9cqSnBF&input=WzEsIDIsIDNd
The `*JpE` is annoying me but I can't figure out a way to shorten it right now. (more) |
— | over 2 years ago |
Comment | Post #284117 |
https://tio.run/##K8go@P/fxt5WCYhjVBKL0suiDWO1YQxrJev///8bGgAA (more) |
— | over 2 years ago |
Comment | Post #284091 |
https://tio.run/##K8go@P/fIzUnJ19HwcbeViWxKL0s2jDW3k7x////volF2QrumUWJaWmpAA (more) |
— | over 2 years ago |
Comment | Post #284040 |
This is [A006577](https://oeis.org/A006577). (more) |
— | over 2 years ago |
Comment | Post #284049 |
Dunno what purpose the `a[99]` serves but it seems to work without the `99`. (more) |
— | over 2 years ago |
Comment | Post #283990 |
https://tio.run/##JcjBCoIwGADgcz7FjxRu/E6nQgdt9RAdI3DoFgvZxI0u5rMvodvH95Yf6YfFzIFZN6oYtSA294JTcbU3TWzZoD01Zf3leZZRTJFxZOljP6yfrY/aLWRSAQwIYBXn3a4L/IFIYU0Og7PeTaqY3Iv0x9VsLfTFLMd7kEsgZwoImhhKu2SLPw (more) |
— | over 2 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) |
— | over 2 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) |
— | over 2 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) |
— | over 2 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) |
— | over 2 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) |
— | over 2 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) |
— | over 2 years ago |
Comment | Post #283383 |
https://tio.run/##ZVHLbtwwDDzHXzH1JTbg@AMaeO855QOSBSJrZVuNLAqS/GrRb9/qscEW7cWkZ4YcUvzBVua4lcY/abqI69BdWXdirSPrq2pvjro7jdVeP43VUTdjt3en8sBohUBv4Th6xUAcRsAuPUhhxQAlMRL4hBncCnA4WAKDCiKMMAs2GBD6snVGSf@Bj3aQ@vKiL2KvfHf6trcy5q9D5eu6vnLSzsML5x06vBUPb@cmfMo4iC4blL1aRIxWXNKvpU2XNw2phAXtcYviiwszB6w8hFK0hSSVZ@V... (more) |
— | over 2 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) |
— | over 2 years ago |
Comment | Post #283751 |
Are leading or trailing newlines or spaces permitted? (more) |
— | over 2 years ago |
Comment | Post #283765 |
[51 bytes](https://tio.run/##KypNqvyfZvtf1y6vOk/X1tg62v7R1CnaQGKZVh6Imq6jBRJaAGKvgQgtjtXSrcvTAbJmgbgrIaJzY2v/59mmp5YU65Xkx2dyFSik6Wnkaf43AQA) (more) |
— | over 2 years ago |
Comment | Post #283649 |
Banning built-ins (which is what I assume you mean by "_Adding to the disallowed converters, any built-in method that formats the variable as binary without actual conversion_") turns this into a nice catalogue/showcase type challenge into a ["Do X without Y"](https://codegolf.meta.stackexchange.com/... (more) |
— | over 2 years ago |
Comment | Post #283702 |
[88 bytes](https://tio.run/##K05OzEn8/z/P1s5QoSRfIU8hN7GgusLWriwxR6HYNjNNo8LGSFPp0dQpj6YuezR1ulJqTnGqAlg4DyS84NHUNY@mLgYLA7mzHk1d@WjqXCXrYg0DTW0NJSXtYg1DTU0tjTxdY00g20iz9v9/AA) (more) |
— | over 2 years ago |
Comment | Post #283702 |
You can remove the space after the last `else` to save a byte. (more) |
— | over 2 years ago |