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 Looping counter

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

posted 12mo ago by xrs‭  ·  edited 12mo 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 12mo ago by xrs‭

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

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

posted 12mo 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 12mo 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 12mo ago by --Hyde‭  ·  edited 12mo ago by --Hyde‭

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

posted 10mo ago by trichoplax‭  ·  edited 10mo 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 12mo ago by xrs‭  ·  edited 12mo ago by xrs‭

Answer
50%
+0 −0
Meta Default Rules: Code Golf Answer Types

When answering a code-golf challenge, what types of answer are acceptable by default? Can an answer be a complete program, a function, an anonymous function, a snippet of code? Please add one type...

4 answers  ·  posted 9mo ago by trichoplax‭  ·  edited 9mo ago by C. K. Young‭

Question default-rules discussion
50%
+0 −0
Meta Default Rules: Code Golf Answer Types

Function Score is the bytes of the function A code golf answer can be a function. Only the bytes required to define the function are included in the score. Score includes imports and definitions...

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

Answer
50%
+0 −0
Meta Default Rules: Code Golf Answer Types

Anonymous function A code golf answer can be an anonymous function[1]. That is, a function that can be defined without giving it a name (in programming languages that allow this). If an anonymous...

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

Answer
50%
+0 −0
Meta Default Rules: Code Golf Answer Types

A snippet is not a valid answer A code golf answer must in general be able to take input[1] and give output. A snippet of code that is not contained in a function or program cannot take input[2], ...

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

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

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

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

Given a hexomino, indicate whether it is a net of a cube. Input A 6 by 6 grid containing exactly 6 filled squares. The 6 filled squares will be in a single edge connected set (a hexomino). Th...

0 answers  ·  posted 9mo ago by trichoplax‭

Question code-golf math
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 7mo ago by trichoplax‭  ·  last activity 7mo ago by celtschk‭

Question code-golf math number decision-problem
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 9mo ago by trichoplax‭  ·  edited 9mo ago by trichoplax‭

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

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

Question discussion
50%
+0 −0
50%
+0 −0
Meta Default Rules: Code Golf Answer Types

Complete program A code golf answer can be a complete program. This means that the code can be interpreted or compiled (as appropriate) without any additional source code.

posted 9mo 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 24d ago by trichoplax‭  ·  edited 12d ago by trichoplax‭

Question code-golf number string
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 1mo ago by trichoplax‭  ·  last activity 11d ago by Shaggy‭

Question code-golf number
50%
+0 −0
Challenges Compute the determinant

Python 3.8+, 28 bytes from numpy.linalg import det Remember that from ... import ... can be used to save bytes. Note that this has already been mentioned in a comment section on @Quintec's ans...

posted 5d ago by CrSb0001‭

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 12d ago by trichoplax‭  ·  edited 3d ago by Monica Cellio‭

Question bug status-completed leaderboard
50%
+0 −0
Sandbox Expand a greyscale/colour hex code [FINALIZED]

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

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 17d ago by trichoplax‭

Answer