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 »

Search

Advanced Search Options

To further refine your search, you can use additional qualifiers such as score:>0.5. For example, the search score:>=0.5 created:<1y grammar would return only posts mentioning "grammar" that have a score >= 0.5 and were created less than a year ago.

Further help with searching is available in the help center.

Quick hints: tag:tagname, user:xxx, "exact phrase", post_type:xxx, created:<N{d,w,mo,y}, score:>=0.5

Filters
 
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 2mo 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
Sandbox Expand a greyscale/colour hex code [FINALIZED]

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

50%
+0 −0
Challenges "Hello, {name}!"

Lean 4, 39 bytes def x(i:String):String:=s!"Hello, {i}!" Try it online! (Note that TIO only supports Lean 3, so I sadly am unable to use a link from there.)

posted 2mo ago by CrSb0001‭

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
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
Challenges Net​​ or​​ not?

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

posted 16d ago by trichoplax‭

Answer
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 16d ago by trichoplax‭  ·  edited 14d ago by trichoplax‭

Answer
50%
+0 −0
Meta Outdated User Abilities help page

On Codidact Meta, it looks like there have been improvements to the User Abilities help page, fixing some typos and adding an extra explanatory section. These improvements have not been applied to ...

0 answers  ·  posted 11d ago by trichoplax‭

Question bug
50%
+0 −0
Meta Can we have [popularity-contest]s?

Two types of popularity contest I'd like to see popularity contests posted, as a way of measuring how well they fit this community. I want to see what problems arise so we can decide how to mitiga...

posted 3d ago by trichoplax‭

Answer
50%
+0 −0
Challenges Reverse an ASCII string

AWK, 48 bytes ORS="";{l=split($0,d,"");for(;l>0;)print d[l--]} Try it online!

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

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

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

50%
+0 −0
Challenges Looping counter

AWK, 26 24 bytes END{for(;;)print x=x"*"} Try it online!

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

Answer
50%
+0 −0
Challenges "Hello, World!"

K (oK), 15 bytes "Hello, World!" Try it online! I'm terrible at K, but I've got that one down now.

posted 1y ago by xrs‭

Answer
50%
+0 −0
Challenges "Hello, World!"

AWK, 2 bytes $0 Try it online! END{print "Hello, World!"}

posted 1y ago by xrs‭

Answer
50%
+0 −0
Challenges The 50 substrings that validate any string of Roman numerals

Google Sheets, 155 bytes =regexextract(A1,"CCCC|CC[DM]|CM[CDM]|DC[DM]|DD|DM|I[CDLM]|IIII|II[VX]|IVI|IX[CILVX]|L[CDLM]|LX[CL]|MMMM|V[CDLMVX]|VI[VX]|XCC[DLMX]|XD|XLX|XM|XX[CL]|XXXX") The same reg...

posted 1y ago by --Hyde‭

Answer
50%
+0 −0
Challenges The 50 substrings that validate any string of Roman numerals

JavaScript, 149 bytes t=>t.match(/CCCC|CC[DM]|CM[CDM]|DC[DM]|DD|DM|I[CDLM]|IIII|II[VX]|IVI|IX[CILVX]|L[CDLM]|LX[CL]|MMMM|V[CDLMVX]|VI[VX]|XCC[DLMX]|XD|XLX|XM|XX[CL]|XXXX/) Simple regex. Retu...

posted 1y ago by --Hyde‭  ·  edited 1y ago by --Hyde‭

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

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

50%
+0 −0
Challenges 1, 2, Fizz, 4, Buzz!

AWK, 62 61 60 56 bytes {for(;i++<$1;)print i%3?i%5?i:y="Buzz":i%5?x="Fizz":x y} {for(;i++<$0;)print i%15?i%5?i%3?i:"Fizz":"Buzz":"FizzBuzz"} {for(;i++<$0;x=""){i%3||x="Fizz";i%5||x=...

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

Answer
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 How many odd digits? [FINALIZED]

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

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 9mo ago by trichoplax‭  ·  last activity 9mo ago by trichoplax‭

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

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

50%
+0 −0
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 9mo ago by trichoplax‭  ·  last activity 8mo ago by celtschk‭

Question code-golf math number decision-problem