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.5k posts
 
75%
+4 −0
Challenges Obligatory Quine Challenge

Husk, 8 bytes S+s"S+s" Try it online! Basically Leo's original quine. It concatenates the string evaluated version of S+s to itself. So: "S+s" + "\"S+s\"" gives the original code.

posted 3y ago by Razetime‭

Answer
77%
+5 −0
Challenges Obligatory Quine Challenge

Vyxal/Keg , 8 bytes `:.,`:., Try it online! (Keg) The explanations are the same for both languages, seeing as how Vyxal is heavily based on Keg. Explained `:.,` # Push the string ":.," :., ...

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

Answer
84%
+9 −0
Challenges Obligatory Quine Challenge

Rules Using your language of choice, golf a quine. A quine is a non-empty computer program which takes no input and produces a copy of its own source code as its only output. No cheating -- ...

9 answers  ·  posted 3y ago by ATaco‭  ·  last activity 2y ago by General Sebast1an‭

Question code-golf quine
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 3y ago by ATaco‭

Answer
60%
+1 −0
Sandbox Catch the fruit

posted 3y ago by Razetime‭

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

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

77%
+5 −0
Challenges "Hello, World!"

HQ9+, 1 byte H Obligatory HQ9+ answer.

posted 3y ago by Razetime‭

Answer
84%
+9 −0
Challenges Evaluate a single variable polynomial equation

APL (Dyalog Unicode), 11 3 1 byte ⊥ Try it online! Anyone who can golf this further gets a cookie! Function submission which takes reversed coefficients as right argument and $x$ as left ar...

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

Answer
81%
+7 −0
Challenges Print the Great Numeric Pyramid

Python 2, 76 bytes i=27 while~i:print' '*i+' '.join(`min(i,j,27-i-j)`for j in range(28-i));i-=1 Try it online! Computes the digit in row i from the bottom, position j as min(i,j,27-i-j). F...

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

Answer
77%
+5 −0
Challenges Print the Great Numeric Pyramid

JavaScript (Node.js), 137 136 117 bytes with(Math)f=n=>(m=(a,b)=>a?m(--a,b)+b(a):[])(28,y=>m(55,x=>x>26-y&x<y+28&(x^y)?min(abs(abs(27-x)-y)/2,27-y):' ')+` `) Try it...

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

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

JavaScript (Node.js), 40 bytes f=(a,b,c=1)=>a.reduce((d,e)=>d+e*(c*=b)) Try it online!

posted 3y ago by Hakerh400‭

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

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

posted 3y ago by Quintec‭

Answer
87%
+12 −0
Challenges Print the Great Numeric Pyramid

Print or return this exact text: 0 0 0 0 1 0 0 1 1 0 0 1 2 1 0 ...

5 answers  ·  posted 3y ago by Sisyphus‭  ·  last activity 3y ago by Marshall Lochbaum‭

77%
+5 −0
Challenges Evaluate a single variable polynomial equation

Ruby, 50 bytes def f(k,x)k.length>1?k[0]+f(k[1..-1],x)*x:k[-1]end Try it online! This uses the Horner's method recursively, because I think it'll be slightly shorter than using a loop or bu...

posted 3y ago by luap42‭

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

Vyxal, 6, 5, 4 bytes Źe*∑ Try it Online! Takes input in the format coeffs, x Explained Źe*∑ Ź # Generate range [0, len(coeffs)) e # Calculate x ** [0, len(coeffs) (vectorising) ...

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

Answer
77%
+5 −0
Challenges "Hello, World!"

Common Lisp, 26 22 bytes (princ"Hello, World!") -4 bytes thanks to @Sisyphus‭ Try it online!

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

Answer
77%
+5 −0
Challenges Evaluate a single variable polynomial equation

Haskell, 20 bytes f x=foldl((+).(x*))0 Try it online! Takes input coefficients from highest degree to lowest. 21 bytes x%(h:t)=h+x*x%t x%_=0 Try it online!

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

Answer
88%
+13 −0
Challenges Evaluate a single variable polynomial equation

Challenge Given a list of n numbers and x, compute $a + bx^1 + cx^{2} + ... + zx^{n-1}$, where a is the first value in the list, b is the second, etc. n is at most 256 and at least 0. The input va...

20 answers  ·  posted 3y ago by moony‭  ·  last activity 2y ago by south‭

Question code-golf math
75%
+4 −0
Challenges "Hello, World!"

Python 2, 20 bytes print"Hello, World!" Try it online!

posted 3y ago by xnor‭

Answer
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 3y ago by moony‭  ·  edited 3y ago by moony‭

Answer
83%
+8 −0
Challenges "Hello, World!"

Vyxal, 2 bytes KH This pushes the string "Hello, World!" to the stack and automatically prints it. Also, this is the first answer on the site! Woo!

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

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

posted 3y ago by moony‭  ·  edited 11mo ago by trichoplax‭

92%
+23 −0
Challenges "Hello, World!"

Introduction The classic "Hello, World" challenge. What more can I say? Rules Program takes no input. Program outputs Hello, World! with an optional trailing newline. No other output is accep...

58 answers  ·  posted 3y ago by anna328p‭  ·  last activity 1y ago by __blackjack__‭

80%
+6 −0
Meta Meet the Codidact Team!

As we start on building a new community here together, we're bound to find some sticking points. Those might be bugs, new features you need, things you need support with... whatever they are, the C...

0 answers  ·  posted 3y ago by luap42‭  ·  edited 3y ago by ArtOfCode‭

87%
+12 −0
Meta Welcome to Code Golf!

Welcome to the Codidact site for Code Golf (and other coding challenges)! We're glad you're here and we're excited to see what you will build. This community is starting "from scratch", without i...

0 answers  ·  posted 3y ago by Monica Cellio‭  ·  edited 3y ago by Monica Cellio‭