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
1.6k posts
 
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 4mo ago by trichoplax‭

Question code-golf math
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 3mo ago by trichoplax‭  ·  edited 3mo ago by trichoplax‭

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

Question discussion
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 2mo ago by trichoplax‭  ·  last activity 1mo ago by celtschk‭

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

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

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

50%
+0 −0
Challenges Looping counter

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

posted 6mo ago by xrs‭  ·  edited 6mo ago by trichoplax‭

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

C (gcc), 30 bytes main(){puts("Hello, World!");} Try it online! This is using GNU C extensions. GNU C allows main() over int main(), ss well as using puts without including stdio.h.

posted 6mo ago by Lundin‭

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 6mo ago by xrs‭

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

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

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

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

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

Answer
42%
+1 −2
Meta Reactions on Code Golf Codidact

Interesting! / Cool! / Wow! Any of these names would work, I think. This would be the dark green reaction in place of "works for me". Intended to be used for answers that are extra unique/impressi...

posted 3y ago by Quintec‭  ·  edited 3y ago by Quintec‭

Answer
40%
+0 −1
Challenges Tiny Turing-completeness

Your challenge today is to golf a program to interpret something Turing-complete. You may use any Turing-complete system for this so long as it is not the source language of the challenge - even a...

0 answers  ·  posted 3y ago by AndrewTheCodegolfer‭  ·  edited 3y ago by AndrewTheCodegolfer‭

40%
+0 −1
Challenges Compute the determinant

Ruby, 35 bytes ->m{require'matrix';Matrix[*m].det} Attempt This Online!

posted 3y ago by radarek‭

Answer
40%
+0 −1
Challenges Compute the determinant

Wolfram Language (Mathematica), 3 bytes Det Try it online!

posted 1y ago by aspen138‭

Answer
40%
+0 −1
Meta How should we handle incorrect answers?

Lock it Locking a post disallows edits, comments and votes. I am not sure if it allows the original poster to edit or not, but this would be one way to preserve the answer while preventing interac...

posted 2y ago by Quintec‭

Answer
40%
+0 −1
Meta How should we handle incorrect answers?

Do nothing It's wrong but well intentioned. The best we can do is leave a comment saying why its wrong.

posted 2y ago by Quintec‭

Answer
40%
+0 −1
Sandbox Set in sets in sets [cancelled]

posted 3y ago by General Sebast1an‭  ·  edited 3y ago by General Sebast1an‭

40%
+0 −1
Meta What is the Q&A category for?

I was thinking the same thing. Maybe instead there should be one category for code golf and leave the main Q&A is for other types of challenges and puzzles?

posted 4y ago by Lundin‭

Answer
40%
+0 −1
Q&A setting of translateX for carousel image slider [closed]

I made carousel image slider by following tutorials. To slide images , I made the below function. const moveToSlide = (track, currentSlide, targetSlide) => { track.style.transform = 'translat...

0 answers  ·  posted 3y ago by aya2222‭  ·  closed 3y ago by Quintec‭

40%
+0 −1