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
 
66%
+2 −0
Challenges Truthify an array

JavaScript (Node.js), 68 bytes f=(a)=>a.map((x)=>[...x.entries()].filter((e)=>e[1]).map((e)=>e[0])) Run the function f on your input, e.g. f([[1,0,1],[1,0,1],[0,1,0]]). The output ...

posted 4y ago by forestbeasts‭

Answer
66%
+2 −0
Sandbox Evaluate a univariate polynomial [FINALIZED]

posted 4y ago by moony‭  ·  edited 2y ago by trichoplax‭

66%
+4 −1
Challenges "Hello, World!"

Raku, 19 bytes "Hello, World!".say Explanation First second answer of the.. entire site, actually. Nothing special. I don't think this can go shorter, but this is Raku, who actually knows. I m...

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

Answer
66%
+2 −0
Challenges "Hello, World!"

Japt, 11 bytes `HÁM, WŽld! Just using Japt's builtin compression. Test it

posted 4y ago by Quintec‭

Answer
66%
+2 −0
Sandbox Length of a Sumac Sequence[FINALIZED]

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

66%
+2 −0
Challenges "Hello, World!"

ARBLE, 15 bytes "Hello, World!" Simple use of Implicit IO. Polyglot with half a dozen golf langauges. Try it online!

posted 4y ago by ATaco‭

Answer
66%
+2 −0
Challenges Prime Difference

Raku, 33 bytes {1+(3...{(Misplaced &_})} Try it online! Anonymous code block that takes a number and returns a number. Explanation { } # Anony...

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

Answer
66%
+2 −0
Challenges Length of a Sumac Sequence

JavaScript (Node.js), 31 bytes f=(a,b)=>a<0?0:b<0?1:1+f(b,a-b) Try it online!

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

Answer
66%
+2 −0
Challenges "Hello, World!"

JavaScript (V8), 28 bytes console.log("Hello, World!") Try it online!

posted 4y ago by Dion‭

Answer
66%
+2 −0
Challenges Tile pyramids on top of each other!

Japt -R, 12 bytes õÈ"/\"mpXÃû Try it õÈ"/\"mpXÃû :Implicit input of integer õ :Range [1,input] È :Map each X "/\" : Literal string m ...

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

Answer
66%
+2 −0
Challenges "Hello, World!"

AppleScript, 15 bytes "Hello, World!" No, I'm not joking. This ridiculous language for a code golf actually beats some of the more normal languages.

posted 4y ago by DonielF‭

Answer
66%
+2 −0
Meta Should sandbox posts give rep?

Could it be possible to change the amount by which an upvote changes the rep? For example, a sandbox vote could be 1 rep, meaning that if you had a good idea you would still get rep, but it wouldn'...

posted 4y ago by Dion‭

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

Vyxal Hj, 10 bytes ƛ₍₃₅kF½*∑∴ Try it Online! Vyxal has gotten a whole lot better since first posting this. Explained Very simply, this is: for each item in the range [1, 100], create the lis...

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

Answer
66%
+2 −0
Meta Who should the temporary moderators be?

With equally great hesitation, I'll also throw my hat in the ring if Jo King does not respond. (If he does, I'd rather Chris be the second moderator.) I was on the PPCG SE site for a relatively lo...

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

Answer
66%
+2 −0
Challenges Bytes to Segfault

C, 16 bytes m(){*(int*)m=0;} Try it Online!

posted 4y ago by moony‭

Answer
66%
+2 −0
Challenges Bytes to Segfault

Rust 1.0.0, 58 53 52 37 bytes fn a(){#[no_mangle]static mmap:u8=0;}

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

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

Canvas, 24 bytes zz+¹┘%!* ‾U{ŗ3Fi⁸5Bu⁸+nO Try it here! Explanation (ASCII-fied for better monospacing): zz+¹┘%!* Helper function ⁸; Expects stack to be [modulo, string] zz+ append "z...

posted 4y ago by dzaima‭

Answer
66%
+2 −0
Challenges Bytes to Segfault

JavaScript (Node.js), 35 32 25 bytes -7 bytes thanks to @celtschk‭ with(process)kill(pid,11) Try it online!

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

Answer
66%
+2 −0
Challenges Weave Strings Together

JavaScript (Node.js), 53 bytes f=(a,b=[],c=a.map(([a,...c])=>(b+=[a],c)))=>b&&b+f(c) Try it online!

posted 4y ago by Hakerh400‭

Answer
66%
+2 −0
Challenges "Hello, World!"

RoadLang, 59 bytes wagwan my slime man say"Hello, World!" chat wit u later fam My first RoadLang answer! And probably the first one on this site! Removing any of the words says "Aight the ...

posted 4y ago by Razetime‭

Answer
66%
+2 −0
Challenges Longest Increasing Subsequence

JavaScript (Node.js), 70 56 bytes f=([a,...b],c=f)=>1/a?Math.max(f(b,c),[a]>c&&1+f(b,a)):0 Try it online!

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

Answer
66%
+2 −0
Challenges Longest Increasing Subsequence

Haskell, 37 bytes f(h:t)=max(1+f[x|x<-t,x>h])$f t f _=0 Try it online!

posted 4y ago by xnor‭

Answer
66%
+2 −0
Challenges Given the preorder and the inorder of a tree, output the postorder

C (gcc), 114 bytes f(int n,int*p,int*i,int**o){if(n){int*m=i,k;for(;*m!=*p;++m);k=m-i;f(k,p+1,i,o);f(n-k-1,p+k+1,m+1,o);*(*o)++=*p;}} Try it online! Arguments: n is the length of the arra...

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

Answer
66%
+2 −0
Challenges Reverse an ASCII string

Befunge-98, 45 39 37 33 29 21 bytes v:~< >a-| >v$< ,: ^_@ Try it online! This answer probably sucks :P

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

Answer
66%
+2 −0
Challenges 99 Shortened Bottles of Beer

C (gcc), 232 bytes f(n,w,p){printf("%i bottle%s of beer%s%s",n,"s"+(n<2)," on the wall"+w,p);}main(i){for(i=99;i;){f(i,0,", ");f(i,12,".\n");printf(i>1?"Take one down and pass it around, "...

posted 3y ago by celtschk‭

Answer