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

Type On... Excerpt Status Date
Comment Post #286855 Could we return an infinite sequence of Niven numbers or return only the nth Niven number?
(more)
over 1 year ago
Comment Post #286240 Can we use something other than asterisks?
(more)
about 2 years ago
Comment Post #285891 Oh ok (pad pad pad)
(more)
about 2 years ago
Comment Post #285891 I think the second works in 05AB1E too
(more)
about 2 years ago
Comment Post #285231 True, I've edited that out now.
(more)
about 2 years ago
Comment Post #285477 Some testcases would be nice (sorry for not bringing this up in Sandbox)
(more)
over 2 years ago
Comment Post #285231 Yup, those won't be given as inputs.
(more)
over 2 years ago
Comment Post #285064 Unfortunately, I don't this would work, as the maintainer of TIO (Dennis on CGCC) isn't too available ([context](https://chat.stackexchange.com/transcript/message/53428659#53428659)). However, there are alternatives to TIO popping up, such as [ATO](https://ato.pxeger.com)
(more)
over 2 years ago
Comment Post #284668 @#8056 I'm really sorry, but I'm not sure what exactly rules of inference are, I've kinda given up on this draft because I don't know enough logic to make it work. Feel free to post a version of it yourself if you want, though.
(more)
over 2 years ago
Comment Post #283796 @#36356 Thanks!
(more)
over 2 years ago
Comment Post #284777 Just to be clear, this is just for IPv4, right?
(more)
over 2 years ago
Comment Post #284584 Great tip! It's not just Strings, Java 9, 11, etc. added some methods to `Stream`s too (e.g. `takeWhile`). The newer versions actually makes programming in Java enjoyable. There's also `Map.of`, although that's less often needed.
(more)
over 2 years ago
Comment Post #284578 Just don't use Java :P
(more)
over 2 years ago
Comment Post #284493 @#53503 Sure, but I think "Works for me" helps you trust that someone actually tried an answer out and saw that it worked. Often, upvotes are given out without necessarily checking that a piece of code works. I think it *could* useful for proper Q&A sites, but we don't really need it.
(more)
over 2 years ago
Comment Post #284001 [268](https://tio.run/##dVLLboQwDLz3KxCnXWlvvVSV@iWIQ8iaxWpIIvMS/XkaOw/60J4MztjjGdvv8@Ds65un4@g/jBq7u6q69war3lGFFdqmJrjXt3oHY9wWPh4EYEPsyG0cJ63IwMwZo/RniE4PBCF6UHoIkZZu57TBldMruojvlTQwGOq4sTNMpAennVEzQ0e1SIkmUKNEHCcnrGhWIG7uJkaor0U4DYzyTss0CUkYl8n9Qt4wYBtQWnu0Misp@wAZfoG6xV5EV117eEI7X/pL016vL@XnlM/4W...
(more)
over 2 years ago
Comment Post #284001 Here's a [311 byte](https://tio.run/##dVLLjoMwDDzDVyBORdvb3irxJaiHkJribkiQIa3an2djk8A@1JOJGXvsGY/PuXf2c1lU3ZQEl/JYPsEY9wgfVwKwIbbkHhwnrcjAzBmj9FeITvcEIY6gdB8i@fbJaYN3Tt/RrfhOSQODoY4bO8NEunfaGTUzdFBeSjSBGiTiMDlhRXMH4uZuYoR6eeE0MMh/8tMkJGFcJh89jYYBjx6l9YhWZiVlryDDeyjP@QW6oju01SnPdN2c86xzVGCBtlAhJa8bv1p...
(more)
over 2 years ago
Comment Post #284221 Should probably also add the first few values in the challenge itself instead of just having an OEIS link. Nice challenge
(more)
over 2 years ago
Comment Post #284195 [Try it online!](https://tio.run/##K6gsycjPM/7/P802JzE3KSVRIc8qT9cwMS9Fty5NIzpPX99Ix1grT9swNjpP1ShW839JanFJcmJxarGCrUJRYl56qoahjoKhoSYXV1p@kUKeQmaeAlyJFZcCEBQUZeaVaOTpKCg9apukpKMA4qVp5GlqanL9BwA "Python 3 – Try It Online")
(more)
over 2 years ago
Comment Post #284191 I would suggest saying that the quine should be payload-capable rather than talking about data sections, because I'm not sure what exactly that means.
(more)
over 2 years ago
Comment Post #284145 @#53588 Thanks again!
(more)
over 2 years ago
Comment Post #284145 @#53196 Thanks! but Shaggy suggested yet another clever golf :)
(more)
over 2 years ago
Comment Post #284180 Looks like you forgot to add a scoring criterion?
(more)
over 2 years ago
Comment Post #284145 @#53588 Ah, smart!
(more)
over 2 years ago
Comment Post #284145 @#53588 Whoops, that's fixed now
(more)
over 2 years ago
Comment Post #284158 +1. It might also be worth mentioning that you can have numbers before keywords without whitespace in between and stuff like that.
(more)
over 2 years ago
Comment Post #283971 `Scanner` is not the only way to take input, although it might be the shortest. That has nothing to do with `Scanner s=new Scanner(System.in)`, though, which you can obviously inline. You're also not allowed to "hide" imports in the header: you need to include them in your bytecount, but here, I'd su...
(more)
over 2 years ago
Comment Post #283971 Did you even try golfing this? The two variable assignments look entirely useless to me.
(more)
over 2 years ago
Comment Post #283858 If they're just your stuffed toys and not television characters or something that people would recognize, I don't really see a point to the dialogue at the start. Only you would "get" it, so it doesn't add anything to the challenge.
(more)
over 2 years ago
Comment Post #283858 What is the flavortext a reference to? What are Mark and Cream?
(more)
over 2 years ago
Comment Post #283874 I know you're probably still working on it, but when you add testcases, can you add some for negative integers too?
(more)
over 2 years ago
Comment Post #283880 I would say that for code-golf and code-bowling questions, including test cases should be mandatory, not just encouraged. On the other hand, C&R doesn't really need them.
(more)
over 2 years ago
Comment Post #283882 Might be helpful to say what a root is in plainer terms so it's easier for non-mathy people to understand (given x-intercepts/x values where P(x)=0 or something)
(more)
over 2 years ago
Comment Post #283428 Oh, I didn't realize C strings needed that. (btw, I love the trick you used on your JS answer, I just used it to shorten my own answer :))
(more)
over 2 years ago
Comment Post #283428 Is there any way for you to drop some letters off the end too (or would that increase the byte count)?
(more)
over 2 years ago
Comment Post #283819 Great answer! You can do [this](https://tio.run/##VY07DsIwEET7nGIKCpusrQQSfiLcgJrCuIhELCwCRI4LQNw92BR8qp19sztzrPtT07bDYJSu8sSw2@rOK3NtD44Jno0etttZf2R7KzZsbJSvTw0sXJoe3LVjNs25e7q1uGvOVSalvg3n2l5Q4Vx3W7DO2YuHhOHwTe/7JHkPVAmgoFROyDRBZYRc6wApQlkSJhGLKaGQ5ccJ6zzy8CaK730I@cn5yv/UkEmYRqsghIZZlHPCgrD8u4o8Fr@...
(more)
over 2 years ago
Comment Post #283791 A determinant in 28 bytes or less without using numpy or other libraries? That's highly unlikely.
(more)
over 2 years ago
Comment Post #283702 Thanks! I don't know how I missed that one.
(more)
over 2 years ago
Comment Post #283702 @#53588g Ah thanks, I forgot you could do that with keywords.
(more)
over 2 years ago
Comment Post #283620 You could say "Grabbed resources and weed" so that "need" isn't repeated twice but it still rhymes.
(more)
over 2 years ago
Comment Post #283555 You can use an `else` instead of the `continue`, and you might want a slightly different input format to avoid the try/except stuff. However, I'd recommend taking a look at the other answers - you don't need `z` at all if you multiply by `x` each time and add the next coefficient (you'll have to take...
(more)
over 2 years ago
Comment Post #283555 You can use `1` instead of `True`, use `n+=[a]` instead of `n.append(a)`, drop the both the `continue`s, and use `for a in n:` and then use `a` instead of `n[i]`. However, it'd be better to just use one loop instead of filling up an array and then iterating over it *again*. Even better would be a rec...
(more)
over 2 years ago
Comment Post #283413 But what's the difference between swapping and changing places? I'm still confused lol
(more)
over 2 years ago
Comment Post #283413 What's the difference?
(more)
over 2 years ago
Comment Post #283413 How is the mentioned loophole a loophole?
(more)
over 2 years ago
Comment Post #283408 I can bet you 1 dollar (I'd bet more but don't have the money) that most of the answers will simply copy fizzbuzz, rot13, 99 beers, etc. from other answers on previous challenges without doing anything interesting whatsoever. Your typical answer would look like: ``` if input is fizzbuzz: do the ...
(more)
over 2 years ago
Comment Post #283338 Not being pretty, following good practices, or being optimized is practically a requirement for code golf :P
(more)
over 2 years ago
Comment Post #283305 Ah, got it. (pad)
(more)
over 2 years ago
Comment Post #283305 [Husk](https://github.com/barbuz/Husk), 1 byte: [`E`](https://tio.run/##yygtzv6f@6ip8b/r////o6MNdaAwVifaAMwy0zEHsg1jYwE)
(more)
over 2 years ago
Comment Post #283305 How do you do that?
(more)
over 2 years ago
Comment Post #283341 No, I didn't mean make a full-fledged golflang, just use pseudocode or maybe take a subset of Python/C/whatever without multiplication and exponentiation.
(more)
over 2 years ago