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
Edit Post #287082 Post edited:
Remove accomplished requirement to have all 66 compass points in the test outputs
over 1 year ago
Edit Post #287082 Post edited:
Remove ambiguity by not using the word "set" in the overview.
over 1 year ago
Edit Post #287082 Post edited:
Clarify secondary compass points
over 1 year ago
Edit Post #287082 Post edited:
More test cases
over 1 year ago
Edit Post #289678 Post edited:
Add finalized tag so it can be excluded by the filter in the question list
over 1 year ago
Suggested Edit Post #289678 Suggested edit:
Add finalized tag so it can be excluded by the filter in the question list
(more)
helpful over 1 year ago
Comment Post #289678 Finding test cases that work under several different types of rounding sounds like a good compromise - I hadn't considered that. This might allow you to write just one set of test cases that works for all approaches, which sounds much easier to work with.
(more)
over 1 year ago
Edit Post #287082 Post edited:
Mention possible Voronoi map diagram
over 1 year ago
Comment Post #289679 Generally I prefer a challenge to be specified in terms of its output, rather than its internal workings. So "the output must meet these criteria" rather than "you must use this algorithm". It is easy to verify that the output is correct, whereas it is difficult to prove that a particular algorithm i...
(more)
over 1 year ago
Edit Post #289678 Post edited:
Replace "a" with "an" before vowels
over 1 year ago
Comment Post #289678 The other problem with having many permitted approaches is that it becomes more difficult to write test cases. I recommend adding test cases to make it easier for people to check their own and each other's answers, particularly if unexpected edge cases appear. It is still possible to write test cases...
(more)
over 1 year ago
Comment Post #289678 I never know how much flexibility to include in a challenge. I want the challenge to be flexible enough to allow as many people and languages as possible to enter. I also don't want too much flexibility as this puts a burden on the people solving the challenge. For example, if there are 2 permitte...
(more)
over 1 year ago
Suggested Edit Post #289678 Suggested edit:
Replace "a" with "an" before vowels
(more)
helpful over 1 year ago
Comment Post #287082 I wanted a unique name for each compass point, in the same way that real compass points have NW but not WN. I'll think about whether that requirement could be dropped, and I'll also think about how it could be better explained if I keep it.
(more)
over 1 year ago
Edit Post #287082 Post edited:
Specification golfing
over 1 year ago
Edit Post #287082 Post edited:
Subdivide definitions section
over 1 year ago
Edit Post #287082 Post edited:
Adjust test case format to allow for multiple valid outputs
over 1 year ago
Edit Post #287082 Post edited:
Add heading to isolate brief intro
over 1 year ago
Edit Post #287082 Post edited:
Use integer inputs to be inclusive of more languages and approaches
over 1 year ago
Comment Post #289604 For anyone else testing this, note that `bit_count` requires Python 3.10 or higher.
(more)
over 1 year ago
Comment Post #289604 ```text Input: 17609903308800 Expected: 36 Actual: 36 Input: 18441077155848519679 Expected: 1 Actual: 0 MISMATCH Input: 18440988645153550335 Expected: 2 Actual: 1 MISMATCH Input: 9214294468855857151 Expected: 1 Actual: 1 Input: 18300371588261871615 Expected: 1 Actual: 1 Input:...
(more)
over 1 year ago
Comment Post #289604 ```text Input: 0 Expected: 64 Actual: 64 Input: 18446744073709551615 Expected: 0 Actual: 0 Input: 12273903644374837845 Expected: 0 Actual: 14 MISMATCH Input: 9819010546270478865 Expected: 16 Actual: 9 MISMATCH Input: 9223372036854775808 Expected: 61 Actual: 61 Input:...
(more)
over 1 year ago
Comment Post #289604 (Note that the test case failures are not related to the suggested change - they are already failing.) In case it's helpful (or in case I've made a mistake), the code I used for testing is [available as a GitHub gist](https://gist.github.com/trichoplax/bc5dcc53c6bdd111a3a51c294fc86df9). It gives t...
(more)
over 1 year ago
Comment Post #289604 The good news is you can save a byte by not putting the `return` on its own line. The bad news is some of the test cases fail.
(more)
over 1 year ago
Edit Post #288755 Post edited:
Mark as finalized
almost 2 years ago
Edit Post #289542 Initial revision almost 2 years ago
Question Word suggesting
Suggest a word from a word list, given a string. Motivation Imagine typing a word one letter at a time, and seeing a suggested word after each letter is typed. At first the suggested word is simply the first word in the word list that matches, but once a word has been suggested it is assumed that...
(more)
almost 2 years ago
Edit Post #288755 Post edited:
Clearer example headings
almost 2 years ago
Edit Post #288755 Post edited:
Make input section more precise
almost 2 years ago
Edit Post #288755 Post edited:
Make example wordings more precise
almost 2 years ago
Edit Post #288755 Post edited:
Add description of test case format and quotes around outputs
almost 2 years ago
Edit Post #288755 Post edited:
Add test cases
almost 2 years ago
Edit Post #288755 Post edited:
Unordered list formatting fix
almost 2 years ago
Edit Post #288755 Post edited:
Add edge case to algorithm and add extra examples
almost 2 years ago
Edit Post #287110 Post edited:
Link to main Meta discussion
almost 2 years ago
Edit Post #287207 Post edited:
Make rule explicitly reference the test cases
almost 2 years ago
Comment Post #287207 I'm sorry for overlooking the other question. I have now edited the challenge to state that a maximum input length of 16 characters must be supported. This is based on the previously existing rule > Provided your output is correct for each input, your code is valid combined with the longest ...
(more)
almost 2 years ago
Edit Post #287207 Post edited:
Be explicit about maximum input length
almost 2 years ago
Comment Post #287207 In hindsight, it might have been better to make the input a single character, so that there is only one challenge (the conversion), separate from processing a string or other sequence type. I will bear this in mind when designing future challenges, but I'm going to keep this challenge as it is (re...
(more)
almost 2 years ago
Comment Post #287207 Interesting question. I see that as a separate, slightly smaller, challenge. If you write code that works for a single character, then to be a valid answer here it would need to also include the code to call that for each character in the input.
(more)
almost 2 years ago
Comment Post #289226 There are a few things to note: 1. This is codegolf.codidact.com for recreational coding. For help with coding errors you can ask at software.codidact.com 1. Python's `#` for comments is interpreted as a heading in a question post. This is why all the comments show as huge text. You can make a co...
(more)
almost 2 years ago
Comment Post #289167 I can't see any problem that could be caused by having a random button on a Meta category (Codidact Meta has had one all this time with no complaints...) so personally I'm in favour of just removing the restriction and having a random sort button for every category.
(more)
almost 2 years ago
Edit Post #289164 Initial revision almost 2 years ago
Question A random button for ordering Code Golf post lists
On most Codidact communities the posts list has a "Random" button among the sorting buttons: The sorting buttons on Codidact Meta - "Activity", "Age", "Score", and "Random" The only exceptions are the Codidact Proposals community, and Code Golf: The sorting buttons on Code Golf - "Activity",...
(more)
almost 2 years ago
Comment Post #289011 Still the same length: ```ruby ->i{i.chars.sort_by{"jbdfghklpqyit".index(_1)||13}} ``` Giving up now...
(more)
almost 2 years ago
Comment Post #289011 I couldn't find a way to shorten this, just ended up with the same length. You can use `0` instead of `-1` but only if you add an extra character to the string to prevent the index ever being zero, so it costs a byte to save a byte... ```ruby ->i{i.chars.sort_by{"_tibdfghklpqyj".index(_1)||0}} `...
(more)
almost 2 years ago
Edit Post #287329 Post edited:
Reword awkward sentence
almost 2 years ago
Edit Post #288943 Post edited:
Typo
almost 2 years ago
Comment Post #288943 Ah. I see what I missed now. Thank you. Would the first sentence be clearer with the "of" replaced by something like "such that"? Something like this: > Given a number $n$ as input output the smallest number $k$ such that the modular residues of $k$ by the first $n$ primes is exactly $\\{-1,...
(more)
almost 2 years ago
Suggested Edit Post #288943 Suggested edit:
Typo
(more)
helpful almost 2 years ago