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
 
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
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
84%
+9 −0
Challenges Length of a Sumac Sequence

Heavily based on this closed challenge from SE. Description A Sumac sequence starts with two non-zero integers $t_1$ and $t_2.$ The next term, $t_3 = t_1 - t_2$ More generally, $t_n = t_{n-2} ...

9 answers  ·  posted 3y ago by Razetime‭  ·  edited 2y ago by General Sebast1an‭

84%
+9 −0
Challenges 1, 2, Fizz, 4, Buzz!

The task Output the first 100 elements of the infamous FizzBuzz sequence. How? The FizzBuzz sequence is the sequence of decimal integers from 1 to 100 inclusive, but: If the integer is divisi...

20 answers  ·  posted 3y ago by Dion‭  ·  last activity 2y ago by celtschk‭

84%
+9 −0
Meta Do we require codegolf challenges include example code?

I feel it'd be a good idea to require, or at least heavily encourage, that challenges include an example, ungolfed, readable solution in a non-golf language like Javascript, C, Rust, or Python. Th...

1 answer  ·  posted 3y ago by moony‭  ·  last activity 3y ago by dzaima‭

Question discussion
84%
+9 −0
Challenges Looping counter

Looping counter Create an infinite loop that outputs lines of asterisks, with each line containing one more asterisk. Instead of the asterisk, any printable, non-whitespace character can be used. ...

19 answers  ·  posted 2y ago by celtschk‭  ·  last activity 7mo ago by H_H‭

Question code-golf
84%
+9 −0
Meta Default Rules: Loopholes

What sort of loopholes are assumed to be disallowed in any challenge on this site? One loophole per answer, please. Vote up answers if you want them disallowed, and down otherwise.

13 answers  ·  posted 2y ago by Quintec‭  ·  last activity 2y ago by AndrewTheCodegolfer‭

Question default-rules
84%
+9 −0
Meta Posting guidelines modifications

Currently, the posting guidelines for Code Golf are the defaults on Codidact. The pre existing guidelines on SE are the following: The main points of discussion are: What would we like to ...

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

Question support discussion
83%
+8 −0
Challenges Integer to Roman numeral

The task is to take a decimal integer as input and print the corresponding Roman numeral with capital letters. The program must handle all positive integer numbers between 1 and 1000. Input can be...

3 answers  ·  posted 3y ago by Lundin‭  ·  last activity 3y ago by Lundin‭

Question code-golf
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
83%
+8 −0
Meta Should sandbox posts give rep?

Should sandbox posts give rep? On one hand, keeping this feature motivates more people to use the sandbox. On the other hand, allowing people to gain rep twice for the same content seems wrong in s...

3 answers  ·  posted 3y ago by Quintec‭  ·  last activity 2y ago by Monica Cellio‭

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

Shakespeare Programming Language, 974 bytes Only 973 bytes away from winning. a.Ajax,.Puck,.Act I:.Scene I:.[Enter Puck and Ajax]Puck:You is the cube ofa big big cat.Ajax:You is the sum ofI a big...

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

Answer
83%
+8 −0
Meta Who should the temporary moderators be?

Please welcome your new moderators: Quintec, Chris Jester-Young, and Jo King. All three have community support and I said "at least two", so we're happy to appoint all three as temporary moderator...

posted 3y ago by Monica Cellio‭  ·  edited 3y ago by deleted user

Answer
83%
+8 −0
Challenges Solve Goldbach's Conjecture

Goldbach's Conjecture states that every even whole number greater than 2 is the sum of 2 prime numbers. Your task is to return those 2 prime numbers, given an even whole number as input. There are ...

10 answers  ·  posted 3y ago by Quintec‭  ·  last activity 2y ago by torres‭

Question code-golf math
83%
+8 −0
Challenges Golf a FRACTRAN interpreter

Description From the Esolangs wiki, In Fractran, a program consists of a finite list of positive, rational numbers. The input to a program is a positive integer n. The list is then searched ...

8 answers  ·  posted 3y ago by Razetime‭  ·  last activity 2y ago by torres‭

83%
+8 −0
Meta Code Golf leaderboard: Scoring tags?

Currently, the leaderboard is useless on alternative-scoring challenges. In order to make the leaderboard more flexible, I propose the creation of two new tags: "lowest-score" and "highest-score"....

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

83%
+8 −0
Meta Default Rules: Code Golf I/O

What input/output methods do you think should be allowed/disallowed while code golfing on this site? What guidelines for input/output methods do you think should be in place? One method per answer...

19 answers  ·  posted 2y ago by Quintec‭  ·  last activity 7mo ago by H_H‭

Question default-rules
83%
+8 −0
Meta Default Rules: Code Golf I/O

You may output delimiter-separated values instead of a list For example, the output [1,2,3] could be represented as 1 2 3 or 1|2|3.

posted 2y ago by Quintec‭

Answer
83%
+8 −0
Meta Default Rules: Code Golf I/O

Functions may use arguments or lists of arguments interchangeably For example, if a challenge requires defining f(x, y, z), f(a) is also acceptable where a[0] = x, a[1] = y, a[2] = z.

posted 2y ago by Quintec‭

Answer
83%
+8 −0
Meta Default Rules: Flags and Other Compile-Time Options

I say we follow the established rules on SE: Rather than dealing with inconsistent schemes for adding flags, let's just consider each separate invocation of a compiler/interpreter/whatever a sep...

posted 2y ago by Moshi‭

Answer
83%
+8 −0
Challenges Compute the determinant

Challenge A simple challenge: Given a two-dimensional matrix (an array of arrays) of real numbers, compute the determinant. The determinant of a matrix is a mathematical construct used in many ap...

9 answers  ·  posted 2y ago by Moshi‭  ·  last activity 1y ago by aspen138‭

Question code-golf math
81%
+7 −0
Challenges In The Jailhouse Now

Challenge Given an integer n>=4 as input create an ASCII art "prison door"* measuring n-1 characters wide and n characters high, using the symbols from the example below. Example ╔╦╗ ╠╬╣ ...

6 answers  ·  posted 2y ago by Shaggy‭  ·  last activity 2y ago by snail_‭

Question code-golf ascii-art
81%
+7 −0
Challenges Roll n fair dice

Challenge This is a simple randomness challenge: Given a non-negative integer $n$, and positive integer $m$, simulate rolling and summing the results of $n$ fair dice, each of which have $m$ sides...

10 answers  ·  posted 2y ago by Moshi‭  ·  last activity 10mo ago by RubenVerg‭

Question code-golf random
81%
+7 −0
Challenges Word Set Square

Challenge Given a string, e.g. Hello, do the following: Mirror it: Hello -> HelloolleH and create a right triangle using it as the sides: H ee l l l l o...

11 answers  ·  posted 3y ago by Razetime‭  ·  last activity 1y ago by Shaggy‭

Question code-golf ascii-art
81%
+7 −0
Challenges Is it a near-anagram?

APL (Dyalog Extended), 18 bytes Anonymous tacit prefix function taking a list of two strings as argument. 2=1⊥(≠⌿∊≢⍤⊢⌸⍤,⍤1↑) Try it online! (…) apply the following tacit function to the arg...

posted 3y ago by Adám‭

Answer