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
 
71%
+3 −0
Challenges Generalized Sort

Challenge We all know and love the generic sort function, right? However, it only sorts based off one criterion - what if we want more? That's where you come in. Your task is to sort an array bas...

6 answers  ·  posted 3y ago by Moshi‭  ·  last activity 3y ago by radarek‭

Question code-golf sorting
71%
+3 −0
Challenges Make my value binary

Ahead, 20 bytes I>:2%r vn:/2\< >}KO@ Control flow goes like this: # orange path: init I # read number # green path: main loop > # go east (start of loop) : # dup inpu...

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

Answer
71%
+3 −0
Meta Separate the tags away from the Sandbox or delete the [finalized] tag

This is a feature-request post consisting of 2 actions for a reason... There's this thing that's been bugging me for a while in Code Golf CD. If you go to the tag page of the Challenges catego...

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

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

Bash, 20 18 bytes Saved two bytes by removing the quotes; the code works well without them. echo Hello, `cat`! Try it online!

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

Answer
71%
+3 −0
Q&A Tips for golfing in Python

If you print some string s without a newline character at the end, instead of print(s,end="") write print(end=s) to save two bytes. Note that this only works for strings, not for other typ...

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

Answer
71%
+3 −0
Challenges When The Ternary Is Balance

JavaScript (Node.js), 47 40 50 49 bytes -1 (possibly -3) bytes thanks to Shaggy! f=(n,s='0')=>n?f(n/3+n%3/2|0,'')+"+-0+-"[n%3+2]:s Try it online! A basic recursive solution.

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

Answer
71%
+3 −0
Challenges When The Ternary Is Balance

Haskell, 78 77 bytes (g[0]!) g a=mapM(\_->[-1..1])a++g(0:a) (a:b)!c|foldl1((+).(*3))a==c=a|0<1=b!c Try it online!

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

Answer
71%
+3 −0
Challenges Stairs? Stairs! Stairs.

Python 3, 64 bytes def f(n): for i in range(n):print((' '*(n-i)+'_/'+'##'*i)[3:]) Try it online!

posted 3y ago by Moshi‭

Answer
71%
+3 −0
Challenges "Hello, World!"

SOGL, 10 bytes ╥‰~⅜,(ε ‘ū Try it here! Built-in compression of "hello"; ", "; "world"; "!", with first letters of words uppercased.

posted 4y ago by dzaima‭

Answer
71%
+3 −0
Challenges "Hello, World!"

Bash, 18 bytes echo Hello, World! Try it online!

posted 4y ago by 2x-1‭

Answer
71%
+3 −0
Challenges Prime Difference

Dyalog APL Extended, 14 bytes {¯4⍭4⍭⍣(⍵≤-)2} Try it online! {¯4⍭4⍭⍣(⍵≤-)2} Monadic dfn 2 start with 2 ⍣ Repeat 4⍭ the function "next prime" ...

posted 4y ago by dzaima‭

Answer
71%
+3 −0
Meta Should we import our old policy posts?

For a small number of posts, it will be easier to create them here than to import them. Your moderators (yes we need to get some) can create new help topics, which you can link to from question po...

posted 4y ago by Monica Cellio‭

Answer
71%
+3 −0
Meta Do you want any special tag styling or requirements?

For reference, this is the list of tags we have from SE which is 9 pages long, so I'll take the liberty of listing out which ones are "required" tags, as they are used to signify a scoring criterio...

posted 4y ago by Razetime‭

Answer
71%
+3 −0
Challenges Prime Difference

Husk, 8 bytes Ψḟo≥⁰≠İp Try it online! or Verify first 8 values It is always a good day when you get to use Ψ in your program. Explanation Ψḟo≥⁰≠İp İp to the infinite list of prime num...

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

Answer
71%
+3 −0
Challenges Partial Sums of Harmonic Series

JavaScript (Node.js), 47 bytes f=(a,b=0,c=a=>a&&1/a+c(a-1))=>c(b)<a?f(a,b+1):b Try it online! For large numbers, a rounding error will occur and yield incorrect result. The ...

posted 4y ago by Hakerh400‭

Answer
71%
+3 −0
Sandbox Weave strings together[FINALIZED]

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

71%
+3 −0
Challenges Length of a Sumac Sequence

JavaScript (Node.js), 27 25 bytes (-2 thanks to JoKing) f=(a,b)=>a<0?0:1+f(b,a-b) Try it online!

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

Answer
71%
+3 −0
Challenges Length of a Sumac Sequence

Japt -N, 9 bytes ¨T©ÒßVVnU Try it ¨T©ÒßVVnU :Implicit input of integers U & V ¨ :U is >= T : 0 © :Logical AND with Ò :Negate the...

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

Answer
71%
+3 −0
Challenges "Hello, World!"

R, 20 bytes cat("Hello, World!") Try it online!

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

Answer
71%
+3 −0
Challenges Tile pyramids on top of each other!

AppleScript, 264 bytes Sue me. It works. set n to text returned of (display dialog "" default answer "") as number set o to "" repeat with i from 1 to n repeat (n-i) times set o to o...

posted 4y ago by DonielF‭

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

Japt -R, 28 bytes Lõ@"Fizz"pXv3)+"Buzz"pXv5)ªX I spent a long time playing with wizardry string/array slicing. It did not work out. This solution just repeats "Fizz" and "Buzz" if divisible. T...

posted 4y ago by Quintec‭

Answer
71%
+3 −0
Meta Who should the temporary moderators be?

I also endorse the nomination for Jo King. However, they have yet to accept the nomination, leaving us with zero viable nominations as of current writing. So, with great hesitation, I put my name f...

posted 4y ago by C. K. Young‭

Answer
71%
+3 −0
Sandbox Run-length encode a byte sequence [FINALIZED]

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

71%
+3 −0
Challenges "Hello, World!"

C++ (gcc), 43 bytes #import<ios> main(){puts("Hello, World!");} Try it online!

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

Answer
71%
+3 −0
Meta Link with Stack Exchange

When editing my profile, I see: Link with Stack Exchange You can't link a Stack Exchange account to your account on this site because there is no associated Stack Exchange site from which to ...

1 answer  ·  posted 4y ago by Adám‭  ·  last activity 4y ago by Mithical‭

Question feature-request