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
 
84%
+9 −0
Challenges Coat of Many Colours

Challenge Given a list of unique colour names as input, sort them in the order that they first appear in Joseph's Amazing Technicolour Dreamcoat. Example Input: green, blue, red, brown Outpu...

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

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 4y ago by Razetime‭  ·  last activity 3y ago by Moshi‭

Question support discussion
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 4y ago by Razetime‭  ·  edited 4y 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 4y ago by ATaco‭  ·  last activity 3y 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 4y ago by Razetime‭  ·  edited 3y 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...

21 answers  ·  posted 4y ago by Dion‭  ·  last activity 6mo ago by xrs‭

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 4y ago by moony‭  ·  last activity 4y ago by dzaima‭

Question discussion
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 3y ago by Quintec‭  ·  last activity 3y ago by AndrewTheCodegolfer‭

Question default-rules
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 3y ago by Quintec‭  ·  last activity 1y 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 3y 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 3y 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 3y ago by Moshi‭

Answer
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 4y ago by Lundin‭  ·  last activity 4y ago by Lundin‭

Question code-golf
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
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 4y ago by lyxal‭  ·  edited 4y 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 4y ago by Quintec‭  ·  last activity 3y 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 4y ago by Corsaka‭  ·  edited 4y ago by Corsaka‭

Answer
83%
+8 −0
Challenges Bytes to Segfault

C, 5 bytes main; This exploits the fact that uninitialised globals live in the .bss section, and that section is not executable. So any attempt to execute code there, regardless of content, wil...

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

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 4y 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 4y 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
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 3y ago by Moshi‭  ·  last activity 1y ago by aspen138‭

Question code-golf math
83%
+8 −0
Challenges The 50 substrings that validate any string of Roman numerals

Given a string of Roman numerals, decide whether it forms a valid Roman number. If not, output the substring that proves this, from the list of 50 strings described below. Relevant fact This chal...

7 answers  ·  posted 8mo ago by trichoplax‭  ·  edited 1mo ago by trichoplax‭

81%
+7 −0
Challenges Operation "Find The Operator"

Challenge Make a program that takes input of 3 non-negative integers: a result and 2 other values that once calculated results to the 3rd value. The program must figure out how to get the 2 fir...

5 answers  ·  posted 3y ago by General Sebast1an‭  ·  last activity 3y ago by radarek‭

Question code-golf math number
81%
+7 −0
Meta New solution to same challenge in same language: Change existing answer or add new one?

Make a new post If they are completely different solutions, I would say they should be judged separately.

posted 3y ago by Quintec‭

Answer