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 »

Posts by trichoplax‭

122 posts
50%
+0 −0
Sandbox Expand a greyscale/colour hex code [FINALIZED]

posted 5mo ago by trichoplax‭  ·  edited 5mo ago by trichoplax‭

50%
+0 −0
Meta Using environment variables in code golf

I wrote a code golf answer which depends on setting an environment variable before running the code. I've assumed that the bytes used to define the environment variable should be added to the score...

0 answers  ·  posted 1d ago by trichoplax‭  ·  edited 1d ago by trichoplax‭

Question discussion
50%
+0 −0
Challenges Net​​ or​​ not?

Python 3 + PYTHONHASHSEED=764, 193+18=211 bytes This doesn't work with Python's default settings, because for security reasons hash gives different results for the same input on different runs. It...

posted 3d ago by trichoplax‭  ·  edited 21h ago by trichoplax‭

Answer
50%
+0 −0
Challenges Net​​ or​​ not?

Rust, 325 bytes A closure (anonymous function) returning true for a net, or false otherwise. |s|"83e423a313e423e8c1a383e213e823e143e223e443e441ec83a313e233a831acc1e223e233a421ec83e81fcc1e111ecc1e...

posted 3d ago by trichoplax‭

Answer
50%
+0 −0
Meta Missing usernames on leaderboard

The automated leaderboard for each challenge previously showed the username for each answer row, but now it does not. I'm guessing a recent change to page layout has caused the JavaScript that gene...

0 answers  ·  posted 1mo ago by trichoplax‭  ·  edited 28d ago by Monica Cellio‭

Question bug status-completed leaderboard
50%
+0 −0
Meta Should we delete the code-golf-tips tag?

Yes, it has already been decided There was discussion of this previously in Should [code-golf-tips] be replaced with [tips] + [code-golf]? and there is clear consensus there that the preferred tag...

posted 1mo ago by trichoplax‭

Answer
50%
+0 −0
Challenges Awkward Ordinals

Write code that takes a positive integer and outputs the awkward ordinal name from the test cases. Notice that these are not the conventional ordinal names. Input A positive integer from the te...

0 answers  ·  posted 2mo ago by trichoplax‭  ·  edited 1mo ago by trichoplax‭

Question code-golf number string
50%
+0 −0
Sandbox Awkward Ordinals [FINALIZED]

posted 2mo ago by trichoplax‭  ·  edited 2mo ago by trichoplax‭

50%
+0 −0
Q&A Rust golfing tips

Replace reduce with fold Unlike some languages, Rust's reduce returns an Option, requiring additional bytes to unwrap the output. However, Rust's fold does not. If you can find a suitable neutral...

posted 2mo ago by trichoplax‭

Answer
50%
+0 −0
Q&A Rust golfing tips

Avoid assignment & semicolon of unnamed closure Closure (15 bytes) If you need to call a closure using it's name (such as if it is recursive) then you need the bytes required to assign it to ...

posted 2mo ago by trichoplax‭  ·  edited 2mo ago by trichoplax‭

Answer
50%
+0 −0
Challenges Digit balanced numbers

Does a number have balanced numbers of distinct digits? That is, do the number's digits appear with equal frequency? Input A positive integer N. N will have no leading zeroes. Output An ...

4 answers  ·  posted 2mo ago by trichoplax‭  ·  last activity 1mo ago by Shaggy‭

Question code-golf number
50%
+0 −0
Sandbox Single character Roman numeral [FINALIZED]

posted 1y ago by trichoplax‭  ·  edited 1y ago by trichoplax‭

50%
+0 −0
Challenges Multiplicative perfection

Given a positive integer, indicate whether it is the product of its proper divisors. Integers equal to the product of their proper divisors can be found on the Online Encyclopedia of Integer Seque...

4 answers  ·  posted 8mo ago by trichoplax‭  ·  last activity 8mo ago by celtschk‭

Question code-golf math number decision-problem
50%
+0 −0
50%
+0 −0
Meta Preferred length limit for Code Golf posts

Currently the maximum number of characters for a Codidact post is 30,000. However, at some point this may be configurable per community (or perhaps per category). There is a GitHub issue for Config...

1 answer  ·  posted 8mo ago by trichoplax‭  ·  last activity 8mo ago by trichoplax‭

Question discussion
50%
+0 −0
Sandbox Digits with subsets of unique probability

posted 9mo ago by trichoplax‭  ·  edited 9mo ago by trichoplax‭

50%
+0 −0
Sandbox How many odd digits? [FINALIZED]

posted 9mo ago by trichoplax‭  ·  edited 9mo ago by trichoplax‭

50%
+0 −0
Challenges Hex ​​​detector

Rust, 35 bytes |n:f64|(12.*n-3.).sqrt().fract()>0. Counterintuitively, this outputs false for a hex number, and true otherwise, but this is consistent with the output requirement: One o...

posted 10mo ago by trichoplax‭  ·  edited 10mo ago by trichoplax‭

Answer
50%
+0 −0
Sandbox Substring factor [FINALIZED]

posted 11mo ago by trichoplax‭  ·  edited 11mo ago by trichoplax‭

50%
+0 −0
Sandbox Hex ​​​detector [FINALIZED]

posted 11mo ago by trichoplax‭  ·  edited 11mo ago by trichoplax‭

50%
+0 −0
Sandbox Round trip stones [FINALIZED]

posted 1y ago by trichoplax‭  ·  edited 1y ago by trichoplax‭