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 »
Challenges

Posts tagged code-golf

Code golf is a winning criterion, where users seek to solve the challenge in as few bytes of source code as possible.

This tag doesn't have a detailed wiki yet.

60%
+1 −0
Sandbox Abbreviate everything [released]

posted 2y ago by General Sebast1an‭  ·  edited 9mo ago by trichoplax‭

60%
+1 −0
Sandbox Reverse your quine [released]

posted 2y ago by General Sebast1an‭  ·  edited 9mo ago by trichoplax‭

60%
+1 −0
71%
+3 −0
66%
+2 −0
Challenges Prove commutativity on this monoid presentation.

Given two binary strings $A$ and $B$ such that $A$ is an anagram of $B$, output a third binary string $S$ such that both $A$ and $B$ can be created by iterated removals of the substring $10101$ fro...

0 answers  ·  posted 9mo ago by WheatWizard‭

75%
+4 −0
Challenges Calculate the Z-array

Task Given a list of numbers $X$ produce a second list of numbers $Y$ such that $Y_i$ is the length of the longest common prefix of $X$ and $X$ with the first $i$ elements removed. For example if...

1 answer  ·  posted 9mo ago by WheatWizard‭  ·  last activity 9mo ago by TheCodidacter, or rather ACodidacter‭

Question code-golf list array
87%
+12 −0
Challenges Cumulative Counts

Challenge Given an array of numbers return the cumulative count of each item. This is the number of times an item has occurred so far. Examples [1,1,2,2,2,1,1,1,3,3] -> [1,2,1,2,3,3,4,5,1,2]...

19 answers  ·  posted 3y ago by rak1507‭  ·  last activity 9mo ago by WheatWizard‭

Question code-golf
66%
+2 −0
Challenges Build a replacement ball in regex.

In this challenge you will take a number $n$ and a string $X$ of length $\geq n$, and produce a regular expression which matches all strings that are withing $n$ character substitutions of $X$. Sp...

3 answers  ·  posted 9mo ago by WheatWizard‭  ·  last activity 9mo ago by WheatWizard‭

66%
+2 −0
Challenges Are these reduced forms of the same thing?

Task You are going to take three strings as input $A$, $B$ and $X$. And your goal is to determine if there exists a third string $S$ such that both $A$ and $B$ can be formed by iteratively removin...

0 answers  ·  posted 9mo ago by WheatWizard‭  ·  edited 9mo ago by WheatWizard‭

81%
+7 −0
Challenges Efficient censorship

You are a low-level censor working for the Ministry of Media Accuracy. Part of your job is to make sure that certain words don't appear in publications. Every morning you get a fresh stack of next...

4 answers  ·  posted 9mo ago by WheatWizard‭  ·  last activity 9mo ago by Shaggy‭

Question code-golf string
66%
+2 −0
Challenges Connect the corners without 4 in a row

Connect opposite corners of a rectangle of characters without putting 4 characters in a row. Input Two numbers, W and H, representing the width and height of the rectangle Each number will be ...

1 answer  ·  posted 1y ago by trichoplax‭  ·  last activity 9mo ago by WheatWizard‭

Question code-golf
66%
+2 −0
Sandbox Evaluate a univariate polynomial [FINALIZED]

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

71%
+3 −0
60%
+1 −0
Sandbox Write a Deadfish Interpreter[FINALIZED]

posted 3y ago by Razetime‭  ·  edited 9mo ago by trichoplax‭

71%
+3 −0
71%
+3 −0
Sandbox Add two negabinary integers [FINALIZED]

posted 3y ago by Moshi‭  ·  edited 9mo ago by trichoplax‭

81%
+7 −0
71%
+3 −0
Sandbox Are All Elements Equal?[FINALIZED]

posted 2y ago by Razetime‭  ·  edited 9mo ago by trichoplax‭

66%
+2 −0
Sandbox Multiply two strings [FINALIZED]

posted 2y ago by celtschk‭  ·  edited 9mo ago by trichoplax‭

77%
+5 −0
Sandbox Repeat the characters [FINALIZED]

posted 2y ago by celtschk‭  ·  edited 9mo ago by trichoplax‭

71%
+3 −0
Sandbox The Ludic Numbers[FINALIZED]

posted 2y ago by Razetime‭  ·  edited 9mo ago by trichoplax‭

66%
+2 −0
Sandbox Convert integer to English [FINALIZED]

posted 2y ago by celtschk‭  ·  edited 9mo ago by trichoplax‭

71%
+3 −0
71%
+3 −0
Sandbox Find good coalitions [FINALIZED]

posted 2y ago by celtschk‭  ·  edited 9mo ago by trichoplax‭

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

posted 3y ago by celtschk‭  ·  edited 9mo ago by trichoplax‭

66%
+2 −0
Sandbox Implement Rule 110 [FINALIZED]

posted 2y ago by celtschk‭  ·  edited 9mo ago by trichoplax‭

71%
+3 −0
Sandbox Golf golf challenge [FINALIZED]

posted 2y ago by Lundin‭  ·  edited 9mo ago by trichoplax‭

75%
+4 −0
Sandbox Find the IP address class [FINALIZED]

posted 2y ago by Razetime‭  ·  edited 9mo ago by trichoplax‭

71%
+3 −0
71%
+3 −0
Sandbox Keyword golfing [FINALIZED]

posted 2y ago by Lundin‭  ·  edited 9mo ago by trichoplax‭

71%
+3 −0
Sandbox Looping counter [FINALIZED]

posted 2y ago by celtschk‭  ·  edited 9mo ago by trichoplax‭

60%
+1 −0
Sandbox The Camelot Wheel [FINALIZED]

posted 3y ago by Quintec‭  ·  edited 9mo ago by trichoplax‭

66%
+2 −0
66%
+2 −0
Challenges Determine if a polyomino is "prime"

An $n$-polyomino is a connected subset of the square tiling consisting of $n$ squares. We will not require that polyominos be simply connected, that is they can have holes. We will say a $n$-polyo...

1 answer  ·  posted 10mo ago by WheatWizard‭  ·  edited 10mo ago by WheatWizard‭

66%
+2 −0
Challenges Count polyomino bisections

An polyomino is a non-empty connected subset of the square tiling consisting of squares joined along their edges. We will not require that polyominos be simply connected, that is they can have hole...

0 answers  ·  posted 10mo ago by WheatWizard‭

60%
+1 −0
Sandbox Label the hinged tetrominoes - [FINALIZED]

posted 10mo ago by trichoplax‭  ·  edited 10mo ago by trichoplax‭

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 12mo ago by aspen138‭

Question code-golf math
60%
+1 −0
Sandbox Bird is the word

posted 2y ago by Lundin‭  ·  edited 1y ago by General Sebast1an‭

71%
+3 −0
Challenges 8 coexisting queens

This is a fixed output challenge. Output a textual representation of a chessboard hosting 8 queens, none of which are attacking each other. There are 92 ways of arranging them, 12 if rotations and...

5 answers  ·  posted 1y ago by trichoplax‭  ·  last activity 1y ago by m90‭

71%
+3 −0
Challenges Mediocre pop count

Given a sequence of letters, omit those with the highest or lowest pop count. Terminology The pop count or population count of a binary string is the number of 1s in it. For this challenge, the ...

6 answers  ·  posted 1y ago by trichoplax‭  ·  last activity 1y ago by A username‭

75%
+4 −0
Challenges Encode with ROT13.5

Given a string, convert all of its letters using ROT13, and all of its digits using ROT5. This is sometimes referred to as ROT13.5. Input A sequence of printable ASCII characters (character cod...

4 answers  ·  posted 1y ago by trichoplax‭  ·  last activity 1y ago by Razetime‭

66%
+2 −0
Challenges Digit antitranspose

Convert a matrix or grid of digits to its antitranspose. For a square matrix , this is its reflection in its antidiagonal. More generally, for a rectangular matrix, this is its reflection in its sk...

4 answers  ·  posted 1y ago by trichoplax‭  ·  last activity 1y ago by torres‭

Question code-golf number
60%
+1 −0
Sandbox Digit antitranspose [FINALIZED]

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

60%
+1 −0
Sandbox Encode with ROT13.5 [FINALIZED]

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

75%
+4 −0
Challenges Just the vowels please

Given a sequence of letters, output only the vowels. Input A sequence of letters This may be a string or any ordered data structure of characters (provided it is consistent between inputs) Th...

9 answers  ·  posted 1y ago by trichoplax‭  ·  last activity 1y ago by taoh‭

Question code-golf alphabet
50%
+0 −0
Sandbox Sort letters by height [FINALIZED]

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

50%
+0 −0
Sandbox Connect the corners without 4 in a row [FINALIZED]

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

50%
+0 −0
Challenges Circle of text characters

Given a radius R, output a text representation of a circle. Input A positive integer R (strictly greater than zero) You do not need to handle values of R greater than 32 Output A square ...

0 answers  ·  posted 1y ago by trichoplax‭  ·  edited 1y ago by trichoplax‭

Question code-golf string