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

Type On... Excerpt Status Date
Comment Post #291759 Example of what I was thinking might be easier to golf (for some approaches): Input 1: ```text A ``` Input 2: ```text A B ``` Input 3: ```text CC CC AB ``` Input 4: ```text DDD DDD DDD ACC BCC ``` Input 5: ```text EEEEE EEEEE EEEEE EEEEE EEEEE BADDD CCDDD CC...
(more)
12 months ago
Comment Post #291759 A question about the output rules that didn't occur to me in the sandbox: > However, the output may be mirrored or rotated by multiples of $90^\circ$ as desired. If I pick a particular rotation, do I need to use the same rotation for every input, or can I choose different rotations for differen...
(more)
12 months ago
Comment Post #291761 In this particular case you may find `lines` instead of `split` saves you a few bytes.
(more)
12 months ago
Comment Post #291761 In languages which are less restrictive about types than Rust, bytes can be saved by outputting a number instead of a string for a valid Roman number. For example, `return 1` instead of `return "G"`. In languages which are even less restrictive, bytes can be saved by outputting something like `nul...
(more)
12 months ago
Comment Post #291761 When the input is `CCCCC` the output should be `CCCC` (the relevant substring) but currently the output is `CCCCC` (the original input string). Looks like this may be due to a typo in the return statement. Should ```rust if s.contains(b){return s} ``` instead say ```rust if s.contains(...
(more)
12 months ago
Edit Post #291723 Post edited:
Add finalized tag for people who filter these out
12 months ago
Comment Post #291723 Thanks for using the sandbox - it's good to have challenges fine tuned before answers arrive.
(more)
12 months ago
Comment Post #291723 Great challenge. I particularly like the title. The only other thing I can think to point out is the syntax highlighting on the code blocks. Currently the automatic highlighting is treating the code blocks as a language where `Input:` and `Output:` are coloured red. You might want to keep that as ...
(more)
12 months ago
Comment Post #291723 Having had a think, it seems that 5 "colours" is necessary and sufficient for colouring the squares in order in a cycle (a, b, c, d, e, a, b, c, d, e, ...), and 4 colours is necessary and sufficient for colouring the squares if not restricted to cycling in order (a, b, c, b, c, a, d, a, b, c, b, c, ....
(more)
12 months ago
Comment Post #291723 Is the output required to be in the same orientation as the example? For example, would a mirror image or a rotation through a multiple of 90 degrees be valid? I don't have a preference either way, but it might be worth explicitly stating which is the case.
(more)
12 months ago
Comment Post #291723 Is it required that the range of characters end at either `z` or `9`? For example, if someone used `a` to `e`, and then wrapped back to `a`, would that be valid? I don't have a preference either way, just mentioning a possibility. (I suspect that a range of 5 characters is sufficient that no ad...
(more)
12 months ago
Comment Post #291723 I like the examples. It would also be useful to have a few more test cases, including any edge cases. For example, what should the output be for input 0?
(more)
12 months ago
Edit Post #287087 Post edited:
Remove redundancy from final sentence
12 months ago
Edit Post #287087 Post edited:
Remove ambiguity in font description
12 months ago
Edit Post #287087 Post edited:
Fix typo in output
12 months ago
Edit Post #287139 Post edited:
Include code that generated the answer code
12 months ago
Edit Post #287087 Post edited:
Allow output to be numerator only for integers
12 months ago
Edit Post #291511 Post edited:
Remove Markdown link definition accidentally left in which was visible due to not being used
about 1 year ago
Suggested Edit Post #291511 Suggested edit:
Remove Markdown link definition accidentally left in which was visible due to not being used
(more)
helpful about 1 year ago
Comment Post #291538 Whatever you decide, welcome to Code Golf Codidact!
(more)
about 1 year ago
Comment Post #291538 I understand that regex answers will be similar in most languages. The advantage of posting each language in a separate answer is that anyone wanting to compete in a particular language can easily see from the leaderboard what score they are competing against. In some languages the regex answer wi...
(more)
about 1 year ago
Comment Post #291538 Even though it uses the same regex string, I recommend posting the spreadsheet formula as a separate answer. This way it will show up in the automated leaderboard for ease of comparison with other answers.
(more)
about 1 year ago
Comment Post #291502 Some of what you mention may be covered by some of the [Meta posts tagged default-rules](https://codegolf.codidact.com/categories/48/tags/5434). Anything not covered could be added to one of those posts or perhaps added as a new post with that tag. I like the idea of a template so that a challenge...
(more)
about 1 year ago
Comment Post #291390 From the Output section: > Your output is valid if rounding it to $6$ decimal places results in the output shown in the relevant test case. Note that the competing code does not need to round the output, only to produce output that would match the test cases if it were rounded. So the Python co...
(more)
about 1 year ago
Edit Post #291293 Post edited:
Fix inconsistent number formating
about 1 year ago
Suggested Edit Post #291091 Suggested edit:
Fix heading so that the leaderboard picks up the language correctly
(more)
helpful about 1 year ago
Comment Post #291320 Interesting. I understand now. Note that the code is no longer restricted to just that one version of Python - it works in the latest version (3.12) just fine. If you change the language in the heading back to just "Python" then the leaderboard will group this answer correctly with the other Pytho...
(more)
about 1 year ago
Comment Post #291320 No need to apologise. I don't feel that I have any obligation to test answers, I just sometimes like to out of curiosity. I see you have since made the code even shorter. I have no idea how it works, but it does...
(more)
about 1 year ago
Comment Post #291320 I know this isn't consistent with how semantic versioning is supposed to work, but it's my best current guess at why it doesn't work on my machine. I suppose it's also possible there's an inconsistency between operating systems. I tested this on Linux (Fedora 39), on python 3.8.19, 3.9.19, 3.10.14...
(more)
about 1 year ago
Comment Post #291320 It looks like there was a lot of discussion about whether to permit assignment expressions in comprehensions when they were first introduced in python 3.8. It may be that a change was made to python 3.9 after the version you are using. When I run the 222 byte version on python 3.9.19 I get an error m...
(more)
about 1 year ago
Comment Post #291299 Would it still work if you replace ```python range(3) ``` with ```python 0,1,2 ```
(more)
about 1 year ago
Edit Post #291281 Post edited:
Mark as finalized
about 1 year ago
Edit Post #291293 Initial revision about 1 year ago
Question Round trip stones
$N$ vessels initially contain $3$ stones each. What is the probability of having at least $3$ stones in the first vessel after moving a uniformly random selection from the first vessel to the second, then from the second vessel to the third, and so on back to the first vessel? Input - A positive ...
(more)
about 1 year ago
Edit Post #291281 Post edited:
Add tag and improve grammar
about 1 year ago
Edit Post #291281 Initial revision about 1 year ago
Article Round trip stones [FINALIZED]
Now posted: Round trip stones $N$ vessels initially contain $3$ stones each. What is the probability of having at least $3$ stones in the first vessel after moving a uniformly random selection from the first vessel to the second, then from the second vessel to the third, and so on back to the ...
(more)
about 1 year ago
Comment Post #287238 Testing a texts
(more)
about 1 year ago
Comment Post #291091 I've edited the Test cases section to clarify this flexibility.
(more)
about 1 year ago
Edit Post #291048 Post edited:
Clarify that "VALID" in the test outputs is not the only permitted value
about 1 year ago
Comment Post #291091 When the input is a valid Roman number, the output does not need to be specifically the string "VALID". From the first bullet point of the Output section, you just need to "output a consistent value" which "must not be one of the strings from the list of 50". Hopefully this saves you some bytes.
(more)
about 1 year ago
Edit Post #289542 Post edited:
Correct output section
about 1 year ago
Edit Post #291002 Post edited:
Mark as finalized
about 1 year ago
Edit Post #291048 Initial revision about 1 year ago
Question The 50 substrings that validate any string of Roman numerals
Given a string of Roman numerals, decide whether it forms a valid Roman number. If not, output the substring that proves this, from the list of 50 strings described below. Relevant fact This challenge is based around the following fact: > A string of Roman numerals is a valid Roman number if a...
(more)
about 1 year ago
Edit Post #291002 Post edited:
Clarify output
about 1 year ago
Edit Post #291002 Post edited:
Clarify reason for maximum representable value of 3999
about 1 year ago
Edit Post #291002 Post edited:
Condense power of 10 columns into a single table
about 1 year ago
Edit Post #291002 Post edited:
Add footnote linking to Standard form on Wikipedia
about 1 year ago
Edit Post #291002 Post edited:
Add test cases with various numbers of invalid substrings
about 1 year ago