Newest Questions

11 votes
10 answers
638 views

Albuququerquerquerquerque challlengenge

Introduction Esolangs.org user "Tommyaweosme", after getting 3-4 hours into a 17-hour video called "albuquerque but every time a word repeats it loops (normal speed)", created this ...
islptng's user avatar
  • 151
2 votes
0 answers
79 views

63 ways to split your string in YAML

There are 63 ways you can split a string across multiple lines in YAML. Your task is to write a program that outputs a YAML array that demonstrates all of them and their key features, in any order. A ...
Steve Bennett's user avatar
-2 votes
0 answers
89 views

Prime ASCII Mock Text Converter [closed]

Prime ASCII Mock Text Converter Task: Write a program that transforms input text by selectively alternating the case of alphabetic characters (A-Z, a-z) if their ASCII codes are prime numbers. The ...
JOrE's user avatar
  • 1
-4 votes
7 answers
254 views

Produce 2025 in any human language, without those characters in your code

It's 2025! Write a function/program that outputs this number in words. There are two twists: You can write it out in (almost) any human language (including English). None of the characters in your ...
Steve Bennett's user avatar
6 votes
0 answers
92 views

How many polygons overlap? (hard)

Write a program or function which, given 1 or more polygons, determines the greatest number of polygons overlapping at a single point. That is, if each polygon was a piece of paper positioned ...
Steve Bennett's user avatar
12 votes
14 answers
2k views

Noise Cancelling Headphones

Alex ([email protected]) Hey champ, we've just had a huge order for those new noise-cancelling headphones we're meant to be making. Unfooooorrttunately... ...
Natelolzzz's user avatar
10 votes
1 answer
166 views

Draw the caustics in a cup

If you have ever consumed liquid from a shallow cup in sunlight, you may have noticed a shape like the following at the bottom: You might notice a nephroid shaped bright outline, a brighter area on ...
mousetail's user avatar
  • 13.9k
-3 votes
0 answers
38 views

I need help in solving following template error when compiling a solver in openfoam7 [closed]

Making dependency list for source file phaseModel.C g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter ...
bharat bhushan sharma's user avatar
-5 votes
1 answer
142 views

Daily Motto Finder

The daily motto is a project by me, allowing unique and dynamic motto every day. Here, you’ll attempt to rewrite my code, making it code-golf style. The motto uses a specific algorithm, determining ...
JOrE's user avatar
  • 1
13 votes
8 answers
1k views

Chisanbop complexity

Chisanbop is a simple method of counting from zero to ninety-nine on two hands invented by Sung Jin Pai and revised by his son Hang Young Pai. To make numbers, zero, one, or more digits are raised, ...
Jonathan Allan's user avatar
3 votes
7 answers
390 views

Custom variations of Niemöller's poem ("First They Came")

The "First They Came" poem(*) by German pastor Martin Niemöller: First they came for the socialists, and I did not speak out— Because I was not a socialist. Then they came for the trade ...
Explorer09's user avatar
8 votes
2 answers
153 views

Primitive words

Given a list of values, 1, 2, -1, or -2, we will allow the following simple moves: Remove adjacent values which are negatives of each other. e.g. ...
Wheat Wizard's user avatar
  • 102k
3 votes
4 answers
185 views

Fill in the blanks of this equation

Your task is to write a program or function that can fill in the blanks of an equation provided in this form: _ + _ / _ = 4 In this case, a valid solution would be: 2 + 8 / 4 = 4 Each blank must be ...
Steve Bennett's user avatar
15 votes
6 answers
455 views

Block covered cycles

Given a cycle of non-zero numbers we say a "block" is a substring appearing immediately after \$n\$ and immediately before \$-n\$, which contains neither \$n\$ nor \$-n\$. Here is an example ...
Wheat Wizard's user avatar
  • 102k
22 votes
24 answers
2k views

Output the 32 points of the compass

The 32 points of the compass are: N, NbE, NNE, NEbN, NE, NEbE, ENE, EbN, E, EbS, ESE, SEbE, SE, SEbS, SSE, SbE, S, SbW, SSW, SWbS, SW, SWbW, WSW, WbS, W, WbN, WNW, NWbW, NW, NWbN, NNW, NbW (SEbE is ...
Steve Bennett's user avatar
0 votes
8 answers
206 views

Name the nth Tama successor

Tama was a cat born 26 years ago today who gained fame for being a railway station master and operating officer at Kishi Station on the Kishigawa Line in Kinokawa, Wakayama Prefecture, Japan. Photo ...
Themoonisacheese's user avatar
6 votes
8 answers
796 views

Implement PHMINPOSUW (Packed Horizontal Word Minimum)

PHMINPOSUW (Packed Horizontal Word Minimum) is a specialized x86 instruction that finds the minimum value and location of a 16-bit unsigned integer in an 8-element vector packed into a 128-bit ...
bigyihsuan's user avatar
  • 11.1k
3 votes
10 answers
537 views

Box drawing number display

Similar: Display words using 7-segment display Seven Slash Display My first challenge Using the box drawing symbols (─│┌┐└┘├┤┬┴┼╴╵╶╷ or ...
a random person's user avatar
14 votes
25 answers
1k views

Draw X numbers from range Y

Inspired by this question Task: Given integers X and Y: Randomly select an int in 1..Y (inclusive), X times. This selection is to be performed without replacement ...
Themoonisacheese's user avatar
7 votes
1 answer
211 views

Fitch Proof of \$(p\Longrightarrow q)\iff\lnot p\lor q\$ with least amount of steps

In the smallest amount of steps, prove $$(p\Longrightarrow q)\iff\lnot p\lor q$$ We base the proof system on this website. The related functionalities are: Assumption. Assume that some statement is ...
Sny's user avatar
  • 533
7 votes
7 answers
784 views

Conversion between CESU-8 and UTF-8 (for supplementary characters)

The Compatibility Encoding Scheme for UTF-16: 8-Bit, also known as CESU-8, is a Unicode encoding that is not part of the Unicode standard, but mentioned in a Unicode Technical Report as a ...
Explorer09's user avatar
7 votes
1 answer
271 views

Ruler-and-compass constructions

In this code-golf challenge, you will work with a construction that was used by the ancient Greeks: the straightedge-and-compass construction. In particular, you will count how many different ...
Peter Kagey's user avatar
  • 9,101
11 votes
3 answers
363 views

UTF-8 character decoder (with invalid sequence handling)

UTF-8 is the most widely used character encoding on the internet. It encodes a Unicode code point into a byte sequence of 1 to 4 bytes long. The UTF-8 encoding has many features that makes it popular, ...
Explorer09's user avatar
-2 votes
0 answers
60 views

Pi Calculating Challenge [duplicate]

Using as few characters of code as possible, create code to calculate at least 1000 digits of Pi within 1 second.
Andy Li3's user avatar
13 votes
11 answers
1k views

Bespoke numbers

Introduction Bespoke is an esoteric programming language I created in January 2025, where the commands are encoded into the lengths of words in the program. For example, ...
Josiah Winslow's user avatar
2 votes
1 answer
220 views

Long running section 11.4 Minsky machine

Challenge We define a Minsky machine as a program made of the following two instructions: +X which increments the register X and continues to the next instruction -Xn which simply continues if X is ...
malediscord kitten's user avatar
23 votes
10 answers
2k views

Turn a string into a snake

Write a function or program which writes an input string out as a snake. The snake starts heading to the right. If a / or \ ...
Steve Bennett's user avatar
3 votes
1 answer
215 views

Count number of families of sets satisfying a list of criteria

CHALLENGE This problem has a math background. For n=1,2,3,4 we want to count the number of families of sets with maximum n elements that satisfy many criteria of the form: $$\bigoplus_{k\in A,A\in \...
Fabius Wiesner's user avatar
7 votes
6 answers
2k views

Bring back cup stacking

Do you remember cup stacking? Young competitors compete to see how quickly they can arrange 12 upside-down plastic cups into three consecutive arrangements of cup pyramids. The number of each cups in ...
Steve Bennett's user avatar
7 votes
8 answers
2k views

The Oreo Problem: How to find the Excess

This problem is inspired from this childhood advertisement I remembered of while making biscuits with my checkers. Assume you got a black checker, and white checker on top of it, and another black ...
Aitzaz's user avatar
  • 1,912
12 votes
4 answers
1k views

Efficiently navigate a 6 sided die

An ant needs help moving around specific faces on a 6 sided die in order. Write a program or function which, given a series of numbers between 1 and 6, outputs the shortest set of instructions to ...
Steve Bennett's user avatar
4 votes
0 answers
181 views

Find the factor to use for shortest simple Brainfuck data initialization loop

I like writing answers using Brainfuck, since this language basically simulates a Turing machine, and it is pretty challenging to find the shortest answer for any problem, since there are a lot of ...
Weird Glyphs's user avatar
11 votes
9 answers
869 views

All possible swaps for the permutation

Given a permutation of {1,2,...,n} named A, do each swap of form swap A[i], A[j] exactly once, where ...
l4m2's user avatar
  • 30.8k
6 votes
2 answers
143 views

Inequality region vertices with 4 equations

Given the following inequalities: $$ \begin{align} ax+by&\leq c\\ dx+ey&\leq f\\ gx+hy&\leq i\\ jx+ky&\leq l \end{align} $$ These inequalities enclose a region in the shape of a convex ...
vbxr's user avatar
  • 139
10 votes
2 answers
220 views

Make a pretty cryptic crossword grid

Write a function/program that generates an aesthetically pleasing square cryptic crossword grid for a given size N. You do not need to include numbers. The rules for aesthetically pleasing are: The ...
Steve Bennett's user avatar
15 votes
7 answers
1k views

Draw all 11 cube nets

There are 11 ways of flattening a cube onto a flat surface, like a piece of paper, which can then be folded back up into a cube. Each of these is called a cube net. Your task is to write a program or ...
Steve Bennett's user avatar
21 votes
17 answers
1k views

Convert a parent vector to a depth vector

Consider the following diagram of a tree structure, with each node numbered by its index in a depth-first pre-order traversal: ...
noodle person's user avatar
17 votes
13 answers
2k views

Fix that slightly incorrect sum!

Oh no! A beautiful addition has been ruined by a typo. Write a function which can fix a single incorrect digit in an otherwise correct sum. Input Three integers a, <...
Steve Bennett's user avatar
12 votes
4 answers
1k views

Who's that evolution?

Given two first generation pokemon names as input, write a function (or a whole program) that outputs a Truthy value if the second one is an evolution of the first one (and a Falsy value otherwise). ...
Fhuvi's user avatar
  • 2,162
-6 votes
4 answers
302 views

Find the argmin of the cusum

Input You will be given an array arr of length 10 of float64s. They will all be between -1 and 1. Output You must give the index in the array of the minimum value ...
Simd's user avatar
  • 3,127
12 votes
8 answers
737 views

Output the symmetric inverse semigroup

The symmetric inverse semigroup is a very important object in the study of semigroups, for a number of reasons, but most obviously due to the Wagner-Preston theorem. In brief, for any set \$X\$, the ...
caird coinheringaahin g's user avatar
0 votes
2 answers
243 views

minimum line queries in logarithmic time

Input You are given 2 positive integers, n, q, followed by q queries. the queries can be of two forms: 0 a b: add the line a*x + b. a and b are integers between -...
3RR0R404's user avatar
8 votes
5 answers
2k views

Tips for golfing in ☾ (Moon)

What general tips do you have for golfing in ☾ (Moon)? I'm looking for ideas which can be applied to code-golf problems and which are also at least somewhat specific to ☾ (e.g. "remove ...
noodle person's user avatar
12 votes
14 answers
1k views

Generate the indices of the corners of the 12 face triangles of a cube

A cube has 6 faces. We can define it in terms of triangles only, by splitting each square face on the diagonal. Each vertex of the cube is numbered 0 through 7. The coordinates of a vertex are that ...
TJM's user avatar
  • 121
9 votes
15 answers
1k views

A121016: Numbers whose binary expansion is properly periodic. or A328594: Numbers whose binary expansion is aperiodic

I have been studying how to compress the Dis programs into their equvalent ones. One of the possibly easiest subset is programs with only } and ...
鳴神裁四点一号's user avatar
5 votes
3 answers
2k views

AAAAAAAAAAAA!!!! expressions

AAAAAAAAAAAA!!!!, which is 14 A's and 4 exclamation marks, is a procedural esoteric programming with no implementations yet created by User:Zzo38 first appeared in 2006. As the language name suggests, ...
鳴神裁四点一号's user avatar
15 votes
17 answers
1k views

Counting Gessel walks

OEIS A135404 gives the number of Gessel walks \$g(n)\$ of length \$2n\$. A Gessel walk is a walk on the square lattice starting and ending at the origin with possible steps (1,0), (-1,0), (1,1), (-1,-...
Parcly Taxel's user avatar
  • 4,391
7 votes
4 answers
1k views

Tips for golfing in array languages

We already have a few language-specific tips threads for languages which fall under the array-language umbrella, but there are many golfing tricks which are more or less universal among these ...
noodle person's user avatar
14 votes
4 answers
2k views

Generate a 45x45 solved crossword puzzle

2025 is an odd square: 2025=45*45. This is the only such year in our lifetime, so let's celebrate it! Your code should output a matrix of dimensions 45 by 45. Each element in the matrix should be an ...
anatolyg's user avatar
  • 14.1k
14 votes
19 answers
2k views

Antiparallel 12-hour Clock Hands

Output (or print) each of the 11 times, one per line, in the POSIX %I:%M:%S format, at which the hour and minute hands of a 12-hour clock are antiparallel. Here <...
Ray Toal's user avatar
  • 801

15 30 50 per page
1
2 3 4 5
288