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 #283407 This needs to be fleshed out a little bit to explain what a determinant is. Also, including the test cases in plain text would be handy for copying & pasting.
(more)
over 2 years ago
Comment Post #283603 Can we take input in reverse order? e.g., `123*abc=111222333`
(more)
over 2 years ago
Comment Post #283166 @#53310, while I mostly agree, given how _much_ content we've already got on PPCG there is, inevitably, going to be quite a bit of crossover here. And, more specifically with catalogue questions like this that are common on all programming & golfing sites, I think they are something we should be addi...
(more)
almost 3 years ago
Comment Post #279793 Also, it looks like yours suffers from the same problems as mine did, not (de)compressing "Bandersnatch" & "Callooh" properly.
(more)
almost 3 years ago
Comment Post #279793 [615](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=YCdUsHMg342mZywghGQgkGUgc9KQeSCRdoMKRGlkIGd5nCCEZCBni71lIIggkGUgsLw7CkGlINrfeSDYwCCQZSDekmdvdoMsCkGYIJBlINqgIM7IcyCMdGefvC4KYAoraWAKIkJl2BggkGUgez1gSmFivHJ3b2NrYH0sIG15IHONIQpUlCBqYXdzIMgJIN/SLCCQZSBjbGF3cyDICSCvdK4hCkJl2BggkGUgS...
(more)
almost 3 years ago
Comment Post #279793 [622](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=YCdUsHMg342mZywghGQgkGUgc9KQeSCRdoMKRGlkIGd5nCCEZCBni71lIIggkGUgsLw7CkGlINrfeSDYwCCQZSDekmdvdoMsCkGYIJBlINqgIM7IcyCMdGefvC4KYAoraWAKIkJl2BggkGUgSmFivHJ3b2NrLCBteSBzjSEKVJQgamF3cyDICSDf0iwgkGUgY2xhd3MgyAkgr3SuIQpCZdgYIJBlIEp1Ymp1Y...
(more)
almost 3 years ago
Comment Post #283379 Another option would be to enter them as a single argument and then add something in the header to manipulate them into the format you need.
(more)
almost 3 years ago
Comment Post #283380 And I don't think you need the `#include`s, seems to work without them.
(more)
almost 3 years ago
Comment Post #283380 Here's a TIO for you: https://tio.run/##XVFBbtswELznFYp7kSg6qJFLUFnJQ4IcqCVlLUKR6pKUkRp@u8KlWyDpgRhqOLszGMEerHKnbfuBDmzSpjqGqNE/TM933yiLw/8coTsxB5OiCvuDFALy0VLE18efb/1lR0bv5O7DWOvP@XIiY1zGgfyZMYAiayIzVsF7Rg8TmYyLUTBlpDR8MG1xZXpFf9OPqiywmOd4sbdsBJMHb1Vk6axSGQEyai6Ic/DFFe1qiJf7wAr1JxVPa@byTimEYpLjsvmSa...
(more)
almost 3 years ago
Comment Post #281574 You might want to verify that that input format is acceptable.
(more)
almost 3 years ago
Comment Post #283179 It also, unfortunately, fails on this point: "Output should be one of two _consistent_ truthy/falsey values"
(more)
almost 3 years ago
Comment Post #283179 This fails for `0`, which should return a truthy value.
(more)
almost 3 years ago
Comment Post #283231 Is `/` regular division or integer division?
(more)
almost 3 years ago
Comment Post #283175 Can we take the operators themselves as a string input?
(more)
almost 3 years ago
Comment Post #283137 No, the task is to output a truthy or falsey _value_. Any non-empty string is truthy.
(more)
almost 3 years ago
Comment Post #283160 Nice one, @#54118 :) I obviously didn't include enough red herrings; thought the extra `+` at the start of the brainfuck code to override the `x-y` might have thrown people, too.
(more)
almost 3 years ago
Comment Post #283135 And looks like you figured out the link, too :)
(more)
almost 3 years ago
Comment Post #283140 Does it translate directly to Golfscript? If so, could you add a TIO for that? So's we can verify the results.
(more)
almost 3 years ago
Comment Post #283135 Hope you don't mind my suggested edit ;)
(more)
almost 3 years ago
Comment Post #283141 Are leading or trailing newlines permitted?
(more)
almost 3 years ago
Comment Post #283107 I would credit you both, of course.
(more)
almost 3 years ago
Comment Post #283157 A-ha! I knew it was one of the Cs but it was too fiddly to test them all on my phone when I saw that post.
(more)
almost 3 years ago
Comment Post #283107 Correct, @#53310; do you want to post that to the robbers' challenge?
(more)
almost 3 years ago
Comment Post #283130 Ah, well, if you're deliberately trying to avoid that, then ... Personally, I see no harm in it; the optimal solution is the optimal solution, regardless of whether or not someone has already posted it elsewhere. Although, if you're just copying it directly then an acknowledgement of the original ...
(more)
almost 3 years ago
Comment Post #283137 Strictly speaking, both outputs here are truthy as they're both non-empty strings.
(more)
almost 3 years ago
Comment Post #283140 Can you add a [TIO](https://tio.run/) or equivalent, please?
(more)
almost 3 years ago
Comment Post #283135 While, technically, `v1` _does_ check if a number is an integer, what the `v` method actually does is check if the number it's applied to is divisible by the argument passed to it (which defaults to 2).
(more)
almost 3 years ago
Comment Post #283135 [3 bytes](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=rHYx&input=WzAgMSA2NCA4OCAyMTQ3NDgzNjQ3XQotbVM)
(more)
almost 3 years ago
Comment Post #283133 Fails for `0`, which should be truthy. I think you'll need `√∊0,⍳`, unless APL has a 0-based range built-in.
(more)
almost 3 years ago
Comment Post #283132 Welcome to Code Golf :) You can save a byte with `.5` instead of `0.5`.
(more)
almost 3 years ago
Comment Post #283130 You should be able to get this down to 24 by mapping and squaring the range and then checking if it contains `a`.
(more)
almost 3 years ago
Comment Post #283129 And, with regard to the note at the end, your solution should work for _all_ possible inputs, without modification.
(more)
almost 3 years ago
Comment Post #283129 This seems to return `false` for all squares greater than `4`. Also, we're not restricted to using TIO; you can use another online interpreter that has the features you need.
(more)
almost 3 years ago
Comment Post #283126 PicoLisp: https://codegolf.codidact.com/posts/283127#answer-283127
(more)
almost 3 years ago
Comment Post #283107 Not my intended solution(s), @#53579; I hadn't thought of languages that behave like that - should've stuck with my original version instead of opting for the shorter one or, at least, stated that the solution should be irreducible. Have the "W" nonetheless, but I won't reveal the intended solution j...
(more)
almost 3 years ago
Comment Post #283094 It is indeed JSFuck, @#53837, nicely done. The shorter version will only work in Firefox v90+ but the longer version works in Node. You will need to override `alert` with `console.log`, though.
(more)
almost 3 years ago
Comment Post #283089 Rust: https://codegolf.codidact.com/posts/283093#answer-283093
(more)
almost 3 years ago
Comment Post #283090 F#: https://codegolf.codidact.com/posts/283092#answer-283092
(more)
almost 3 years ago
Comment Post #283036 `11>>1 = 5` and, as outputting an array of lines is permitted, you can remove the `mkString "\n"`.
(more)
almost 3 years ago
Comment Post #283011 Can we require that all lines in the input art be right padded with spaces so as to all be equal length?
(more)
almost 3 years ago
Comment Post #282982 I was hoping someone _un_familiar with me from SE would get this one - should have known it'd be you, though! :p
(more)
almost 3 years ago
Comment Post #282965 You need to create a separate challenge for robbers to post their solutions to. See https://codegolf.codidact.com/posts/279754
(more)
almost 3 years ago
Comment Post #282967 [Try it online!](https://tio.run/##S07MK0ss/v9fPykzTz8psTiDy04hNTkjX0HJOb@gWCExL0UhKD8pKbWoWMlaQTkktbgkMy9dR6EEwlAwVDBSMOYKTk3PTc0rSSzJzM9TcEsszSmBmFKA3RSP0gx7LnSJ//8B) You weren't fooling me with those red herrings! :p
(more)
almost 3 years ago
Comment Post #282970 [Try it online!](https://tio.run/##Sy3KScxL100tTi7KLCj5/58rNzEzTyM6VlPXjosrM98qrbwosyRVQ8k5v6BYITEvRSEoPykptahYSVPv/38A)
(more)
almost 3 years ago
Comment Post #282979 [Test it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=IkNvcHMgYW5kIFJvYmJlcnM) No way _I_ wasn't getting this one!
(more)
almost 3 years ago
Comment Post #282903 [A few more quick savings for you](https://tio.run/##Dc2xDoIwEIDhV2mY7qKAoDERLSSyuDs4EIYGDsRUjhzVQeOzV@Y/X/6HeZu5kWFy4cgteUtOCTullWedi845EpqsaQjiyoSfOu6H9VKuToaxjzrhZ3k3Ui4WgE/fX3FIsiTdYg6sz6@uIwHGalOvBAvOOEz3iL7hcWZLkeUelhsEF7KW1Y3FtgHCDvHo/w).
(more)
almost 3 years ago
Comment Post #282905 [60 bytes](https://tio.run/##FcfBDoIwDADQX/GCa7NAwiA7GDcTT5z5g6UMo6mUFJXPn@Hd3iv90kb6XD/1IlMuYygSooZ4/85zVhBs3mkFCpGqzl2dP1P0/Q2OWcXKeUv1kQuhNaaQLJtwblgeMIIZMrOcdlGeDELbIZY/)
(more)
almost 3 years ago
Comment Post #280828 Could do with some test cases
(more)
almost 3 years ago
Comment Post #280753 Ta. Wasn't showing up when searching on me phone last night.
(more)
almost 3 years ago
Comment Post #280753 Did you forget to post this one? Can't find it on Main.
(more)
almost 3 years ago