Activity for trichoplax
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Edit | Post #291923 | Initial revision | — | 5 months ago |
Article | — |
Most isolated of 3 points [FINALIZED] Now posted: Most isolated of 3 points Given 3 points, output one that is separated from its nearest neighbour by the largest distance. Input - 3 distinct points (that is, no 2 points are in the same position). - Each point is a pair of positive integers. Output - A single point, as a ... (more) |
— | 5 months ago |
Comment | Post #291893 |
I understood from "y'all" that you didn't mean me personally. My overcareful wording was more to make sure other people reading my comment didn't think I was trying to make a unilateral decision.
Thanks for clarifying. (more) |
— | 5 months ago |
Edit | Post #291894 |
Post edited: Link to Monica's answer for reference |
— | 5 months ago |
Edit | Post #291894 |
Post edited: Remove ambiguity |
— | 5 months ago |
Edit | Post #291894 | Initial revision | — | 5 months ago |
Answer | — |
A: Short titles A limit of 1 character for Challenges and Sandbox Now that Monica has pointed out that adjusting the minimum is already possible per category, I propose that we leave the minimum at 15 characters for Q&A and Meta, and reduce the minimum to 1 character for Challenges and Sandbox. Why 1 character? ... (more) |
— | 5 months ago |
Comment | Post #291893 |
It's not my call what the limit should be, but yes I would expect it to be the same for both those categories since new challenges are copied across and need to fit both.
Great to hear that this is already implemented. I'll wait to see what new limit the community settles on. I may propose a limit... (more) |
— | 5 months ago |
Comment | Post #289925 |
I have no APL knowledge so I can't guess. It was just to let you know in case either the code or the explanation needed to change. (more) |
— | 5 months ago |
Edit | Post #291891 |
Post edited: Typo |
— | 5 months ago |
Edit | Post #291890 | Initial revision | — | 5 months ago |
Question | — |
Short titles The title of a Codidact question has a minimum length of 15 characters. For a question this is generally fine, as the title will be a summary of the question in the form of a single sentence. However, for a Code Golf challenge, the title is not necessarily a question, or a sentence. If I have a go... (more) |
— | 5 months ago |
Edit | Post #291884 |
Post edited: Mark as finalized |
— | 5 months ago |
Edit | Post #291889 | Initial revision | — | 5 months ago |
Question | — |
Hex detector Given an integer from 1 to 1000, indicate whether it is a centered hexagonal number[^1] (also known as a hex number). What is a hex number? The hex numbers can be visualised as follows: - On a hexagonal grid, start with a single hexagon coloured. - At each step, colour all hexagons adjacent t... (more) |
— | 5 months ago |
Edit | Post #291884 |
Post edited: Further golf title |
— | 5 months ago |
Edit | Post #291884 |
Post edited: Shorten title and improve formatting |
— | 5 months ago |
Edit | Post #291884 |
Post edited: Remove redundant examples |
— | 5 months ago |
Edit | Post #291884 |
Post edited: Add step by step construction to the introduction |
— | 5 months ago |
Edit | Post #291884 |
Post edited: Add animated visualisation |
— | 5 months ago |
Edit | Post #291884 |
Post edited: Add description of how the numbers are formed, to avoid dependence on Wikipedia |
— | 5 months ago |
Edit | Post #291884 | Initial revision | — | 5 months ago |
Article | — |
Hex detector [FINALIZED] Now posted: Hex detector Given an integer from 1 to 1000, indicate whether it is a centered hexagonal number (also known as a hex number). What is a hex number? The hex numbers can be visualised as follows: - On a hexagonal grid, start with a single hexagon coloured. - At each step,... (more) |
— | 5 months ago |
Edit | Post #291091 |
Post edited: Fix heading so that the leaderboard picks up the language correctly |
— | 5 months ago |
Edit | Post #291320 |
Post edited: Fix typo in description to match code |
— | 5 months ago |
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) |
— | 5 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) |
— | 5 months ago |
Comment | Post #291761 |
In this particular case you may find `lines` instead of `split` saves you a few bytes. (more) |
— | 5 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) |
— | 5 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) |
— | 5 months ago |
Edit | Post #291723 |
Post edited: Add finalized tag for people who filter these out |
— | 5 months ago |
Comment | Post #291723 |
Thanks for using the sandbox - it's good to have challenges fine tuned before answers arrive. (more) |
— | 5 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) |
— | 5 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) |
— | 5 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) |
— | 5 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) |
— | 5 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) |
— | 5 months ago |
Edit | Post #287087 |
Post edited: Remove redundancy from final sentence |
— | 5 months ago |
Edit | Post #287087 |
Post edited: Remove ambiguity in font description |
— | 5 months ago |
Edit | Post #287087 |
Post edited: Fix typo in output |
— | 6 months ago |
Edit | Post #287139 |
Post edited: Include code that generated the answer code |
— | 6 months ago |
Edit | Post #287087 |
Post edited: Allow output to be numerator only for integers |
— | 6 months ago |
Edit | Post #291511 |
Post edited: Remove Markdown link definition accidentally left in which was visible due to not being used |
— | 6 months ago |
Suggested Edit | Post #291511 |
Suggested edit: Remove Markdown link definition accidentally left in which was visible due to not being used (more) |
helpful | 6 months ago |
Comment | Post #291538 |
Whatever you decide, welcome to Code Golf Codidact! (more) |
— | 6 months 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) |
— | 6 months 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) |
— | 6 months 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) |
— | 6 months 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) |
— | 7 months ago |
Edit | Post #291293 |
Post edited: Fix inconsistent number formating |
— | 7 months ago |