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
Meta Sandbox-specific Tags

Another approach, suggested by ArtOfCode in chat, is to create a close reason for "graduated" sandbox posts. When defining a close reason you can require a URL (this is what's used for duplicates)...

posted 4y ago by Monica Cellio‭

Answer
75%
+4 −0
Challenges Evaluate a single variable polynomial equation

Raku, 19 bytes (*Z*(*X**0..*)).sum Try it online! Is it concerning that my solution is over 30% asterisks? Explanation ( ).sum # Get the sum of *Z*( ) # The inp...

posted 4y ago by Jo King‭  ·  edited 4y ago by Jo King‭

Answer
75%
+4 −0
Challenges Partial Sums of Harmonic Series

Stax, 9 bytes Ç≈f♠É↔X+ö Run and debug it Explanation(Unpacked): wii{um|+;< w iterate until a falsy result is reached: ii push iteration number i twice {um map r...

posted 4y ago by Razetime‭

Answer
75%
+4 −0
Challenges Length of a Sumac Sequence

Python 3, 49 47 44 35 bytes a=lambda x,y:+(x>=0)and(1+a(y,x-y)) Try it online! -3 bytes thanks to @Hakerh400‭ -9 bytes thanks to @Jo King‭ Python 2, 50 bytes x,y=input() a=0 while...

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

Answer
75%
+4 −0
Challenges Length of a Sumac Sequence

Raku, 19 bytes {(|@_,*-*...0>*)-1} Try it online! { } # Anonymous code block ... # Create a sequence |@_ # Starting with the input ...

posted 4y ago by Jo King‭

Answer
75%
+7 −1
Meta Who should the temporary moderators be?

I nominate Jo King, as they were already voted as moderator by the community earlier. They have proven to be an active and trustworthy moderator, who is also a consistent contributor to the code g...

posted 4y ago by Razetime‭

Answer
75%
+4 −0
Challenges Tile pyramids on top of each other!

The task Given a positive integer as input, output tiled pyramids of this height. How? Let's say the inputted integer was n. From there, we output n lines of output, each having: A decreasing...

9 answers  ·  posted 4y ago by Dion‭  ·  last activity 3y ago by A username‭

Question code-golf ascii-art
75%
+10 −2
Challenges "Hello, World!"

Javascript V8, 888 bytes $=-~[] *~-((~-~ [])** -~- ~[]); _$=$+ ~[];$$_=_$...

posted 4y ago by ZippyMagician‭  ·  edited 4y ago by ZippyMagician‭

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

JavaScript (Node.js), 64 bytes for(n=0;101>++n;)console.log([['Fizz'][n%3]]+[['Buzz'][n%5]]||n) Try it online!

posted 4y ago by Hakerh400‭

Answer
75%
+4 −0
Meta What are the rules of programming language compliance?

Regarding because the vast majority of all programs that were posted & highly up-voted there won't even compile on the most basic, compliant compiler for that language. Code Golf allows f...

posted 4y ago by Quintec‭

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

goruby, 1 byte f Okay, so that's a bit unfair. 😂 The definition of f from golf_prelude.rb (which is what goruby embeds) is quite golfy in itself: def f(m = 100) 1.upto(m){|n|puts'FizzBuzz ...

posted 4y ago by C. K. Young‭  ·  edited 4y ago by C. K. Young‭

Answer
75%
+4 −0
Meta What is the Q&A category for?

We seem to ask a lot of questions in Meta, which sort of defeats the purpose of the Q&A category. Is it intended for subjective quesitons (of which this site gets few), or requests for tips, or...

3 answers  ·  posted 4y ago by Corsaka‭  ·  last activity 4y ago by Quintec‭

Question discussion
75%
+4 −0
Meta What is the Q&A category for?

It's for questions about golfing and challenges. From the comments underneath the original proposal: @Moshi from the discussion in 19th Byte it sounded like the community could have questions a...

posted 4y ago by Mithical‭

Answer
75%
+4 −0
Meta What is the Q&A category for?

It's for non-challenge questions. These might be general tips questions, questions about how to golf specific pieces of code, common golf paradigms, etc. Here are some examples from SE that might ...

posted 4y ago by Quintec‭

Answer
75%
+4 −0
Challenges Reverse an ASCII string

Japt, 1 byte w Uh... yeah. Probably similar solutions for many other golf langs. Try it

posted 4y ago by Quintec‭

Answer
75%
+4 −0
Challenges Reverse an ASCII string

C (gcc), 62 bytes main(){char b[99],*p=strchr(gets(b),0);for(;p-->b;)putch(*p);} This relies on the usual gcc extension abuse. It assumes that max user input is 98 characters + null term, si...

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

Answer
75%
+4 −0
Challenges It's Hip to be Square

Ruby, 16 bytes ->n{n**0.5%1==0} Try it online!

posted 3y ago by snail_‭

Answer
75%
+4 −0
Challenges Coat of Many Colours

JavaScript (Node.js), 153 147 bytes -6 bytes thanks to Shaggy! a=>a.sort((x,y)=>g(x)-g(y),g=x=>"y gree br sc bla oc pe rub ol v f li go ch m cre c s ro a l ru g pu w p o b".split` `.find...

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

Answer
75%
+4 −0
Sandbox Compute the determinant

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

Article code-golf math
75%
+4 −0
Challenges Golf a FRACTRAN interpreter

Brachylog, 16 bytes g₂;.z∋zbᵗ×ᵐ/ℤ↰|w Try it online! This is a function submission, which inputs n from the left and A from the right (as a list of two-element lists). Output is to standard out...

posted 3y ago by ais523‭

Answer
75%
+4 −0
Challenges Are All Elements Equal?

Japt, 3 bytes e¡g Try it e¡g :Implicit input of array U e :Is equal to ¡ :Map U g : First element of U

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

Answer
75%
+4 −0
Challenges Are All Elements Equal?

APL (Dyalog Unicode), 3 bytes ⍋≡⍒ Try it online! ⍋ computes the permutation vector that would sort the argument into ascending order ⍒ computes the permutation vector that would sort the ar...

posted 3y ago by Adám‭

Answer
75%
+4 −0
Meta Should [code-golf-tips] be replaced with [tips] + [code-golf]?

Instead of the code-golf-tips tag, could we tag "Tips for golfing" questions with tips and code-golf instead? They can still be searched for, so I don't see a reason to make a special tag to repres...

1 answer  ·  posted 3y ago by user‭  ·  edited 3y ago by General Sebast1an‭

Question discussion tags
75%
+4 −0
Challenges Operation "Find The Operator"

C (gcc), 147 151 bytes #define L(X)X(+,a+b)X(-,a-b)X(*,a*b)X(/,b&&a/b)X(%,b&&a%b)X(^,pow(a,b)) #define M(o,d)printf("%s",d==c?#o" ":z++==5?".":""); z;s[99];f(a,b,c){L(M)} Tr...

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

Answer
75%
+4 −0
Sandbox Solve a Word Search!

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

Article code-golf