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
 
75%
+4 −0
Sandbox Find the IP address class [FINALIZED]

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

75%
+4 −0
Challenges Implement Rule 110

[Rule 110] is a Turing complete cellular automaton. It is defined as follows: Take as initial value a sequence of symbols that's infinite to both sides, which consists only of two different symbol...

1 answer  ·  posted 3y ago by celtschk‭  ·  last activity 3y ago by Moshi‭

75%
+4 −0
Challenges Golf golf challenge

C (gcc), 133 131 bytes f(p,s){char*t="Hole in one\0Albatross\0Eagle\0Birdie\0Par\0Bogey\0Double bogey\0Triple bogey";for(--s?s+=5-p:0;s-=!*t++;);puts(t);} Saved two bytes thanks to m90 in the...

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

Answer
75%
+4 −0
Challenges Golf golf challenge

Ruby, 110 106 bytes Fixed capitalization and refactored for -4. ->p,s{d=s-p s<2&&"Hole in one"||%w[Albatross Eagle Birdie Par Bogey Double Triple][d+3]+(d>1?" bogey":"")} Att...

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

Answer
75%
+4 −0
Meta How can we grow this community?

Questions The most important thing to gain traffic in a code golf site is having good questions. SE code golf has 12,718 questions(and counting), and many people are still actively posting questio...

posted 3y ago by Razetime‭

Answer
75%
+4 −0
Challenges Can you give me half?

Embed ESCR, 6 unique characters, 19 bytes [/ [*] [+ [*] [*]]] Each [] pair of brackets encloses an in-line function. The first token in a function is the function name, and subsequent tokens, if...

posted 3y ago by Olin Lathrop‭  ·  edited 3y ago by Olin Lathrop‭

Answer
75%
+4 −0
Challenges Can you give me half?

Ruby, 7 unique, 12 bytes $$.fdiv$$+$$ Ruby, 8 unique, 13 bytes: $$.fdiv $$+$$ Ruby, 9 unique, 22 bytes: "i".size.fdiv"ii".size Ruby, 9 unique, 24 bytes: Math::E./Math::E+Math::E

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

Answer
75%
+4 −0
Challenges Can you give me half?

C (gcc), 8 7 unique cos(cos-cos)/(cos(cos-cos)-(-cos(cos-cos))) Try it online! -1 unique character thanks to @orthoplex‭

posted 3y ago by Lundin‭  ·  edited 2y ago by Lundin‭

Answer
75%
+4 −0
Sandbox From the smallest seed

posted 2y ago by Moshi‭  ·  edited 2y ago by Moshi‭

75%
+4 −0
Challenges Find n Niven Numbers

Scala, 52 bytes Stream.from(1).filter(x=>x%(x+"":\0)(_+_-48)<1).take Try it in Scastie! Woo, 3 deprecation warnings! (okay, one of them could be fixed but I like to live dangerously) St...

posted 2y ago by user‭  ·  edited 2y ago by user‭

Answer
75%
+4 −0
Meta Default Rules: Code Golf I/O

Command-line arguments may be used as input instead of stdin Languages/systems that support reading input from command-line arguments may use those as input instead of reading from stdin.

posted 3y ago by Lundin‭

Answer
75%
+4 −0
Sandbox Decode periodic decimal fractions [FINALIZED]

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

75%
+4 −0
Challenges Collatz conjecture; Count the tries to reach $1$

JavaScript, 28 bytes f=n=>n-1&&-~f(n%2?n*3+1:n/2) Try it online!

posted 3y ago by Shaggy‭

Answer
75%
+4 −0
Challenges The Ludic Numbers

The Ludic Numbers are a sequence that pops up when you apply the sieve of eratosthenes to the natural numbers, completely removing the numbers every iteration. Here is how they are generated: The...

3 answers  ·  posted 3y ago by Razetime‭  ·  last activity 3y ago by General Sebast1an‭

Question code-golf sequence
75%
+4 −0
Challenges Make $2 + 2 = 5$

Haskell, 13 bytes 2!2=5 x!y=x+y Try it online!

posted 3y ago by carmysilna‭

Answer
75%
+4 −0
Meta Reactions on Code Golf Codidact

I think "Dangerous" could perhaps stay on. "Outdated" would probably be better off replaced with "Invalid" or something of that sort. I don't think we need "Works for me" or an analog of it at all:...

posted 3y ago by user‭

Answer
75%
+4 −0
Challenges Just the vowels please

Given a sequence of letters, output only the vowels. Input A sequence of letters This may be a string or any ordered data structure of characters (provided it is consistent between inputs) Th...

9 answers  ·  posted 2y ago by trichoplax‭  ·  last activity 2y ago by taoh‭

Question code-golf alphabet
75%
+4 −0
Challenges Knight safe squares

Given a chess board with some knights on it, say how many squares are neither attacked by a knight nor containing a knight. Input An 8 by 8 grid where each square is either a knight or empty T...

3 answers  ·  posted 2y ago by trichoplax‭  ·  last activity 1y ago by Karl Knechtel‭

Question code-golf
75%
+4 −0
Challenges Decoding a non injective bit matrix encoding

The problem Someone has created an encoding format for square bit matrices, however they have found it isn't perfect! One encoding may not decode to exactly one matrix, or it may not even be possi...

0 answers  ·  posted 1y ago by Aftermost2167‭  ·  edited 1y ago by Aftermost2167‭

75%
+4 −0
Challenges Encode with ROT13.5

Given a string, convert all of its letters using ROT13, and all of its digits using ROT5. This is sometimes referred to as ROT13.5. Input A sequence of printable ASCII characters (character cod...

4 answers  ·  posted 2y ago by trichoplax‭  ·  last activity 2y ago by Razetime‭

75%
+4 −0
Challenges Calculate the Z-array

Task Given a list of numbers $X$ produce a second list of numbers $Y$ such that $Y_i$ is the length of the longest common prefix of $X$ and $X$ with the first $i$ elements removed. For example if...

1 answer  ·  posted 1y ago by WheatWizard‭  ·  last activity 1y ago by TheCodidacter, or rather ACodidacter‭

Question code-golf list array
75%
+4 −0
Challenges Probability of rolling all 6 dice faces

The probability of rolling every number from 1 to 6 with $N$ six-sided dice. Input A positive integer $N$. Your code must work for inputs up to and including 10, but may crash, error, or give ...

4 answers  ·  posted 1y ago by trichoplax‭  ·  last activity 1y ago by RubenVerg‭

Question code-golf math dice
75%
+4 −0
Challenges Source with the whole alphabet in order of appearance

Python, 88 bytes import abc,code,fcntl,graphlib,json,pickle,cmd,errno,heapq,re,struct,csv,pwd,xml,sys,bz2 Attempt This Online! Requires a Unix-like operating system for fcntl and pwd, and at l...

posted 1mo ago by m90‭

Answer
75%
+4 −0
Meta Category migration and the sandbox

Sandbox votes should give no reputation I believe this is already the case, but for completeness: I agree that neither upvotes nor downvotes on Sandbox posts should affect reputation. Although I...

posted 1mo ago by trichoplax‭

Answer
75%
+4 −0
Challenges Source with the whole alphabet in order of appearance

The challenge is to write as short a source as possible, where the English alphabet (in alphabetical order from top to bottom) "abcdefghijklmnopqrstuvwxyz" is a sub-sequence of the source code. Th...

5 answers  ·  posted 1mo ago by Lundin‭  ·  last activity 22d ago by Sylvester‭

Question code-golf