Linked Questions
16 questions linked to/from Tips for golfing in Prolog
53 votes
84 answers
8k views
It's Hip to be Square
Challenge So, um, it seems that, while we have plenty of challenges that work with square numbers or numbers of other shapes, we don't have one that simply asks: Given an integer ...
42 votes
48 answers
6k views
Is it true? Ask Jelly!
Background Inspired by Octave's (and, by extension, MATL's) very convenient interpretation of truthy/falsy matrices, Jelly got the Ȧ (Octave-style all) atom. Ȧ takes an array as input and returns 1 ...
23 votes
70 answers
4k views
Check if an array (or equivalent) has the same number of odd and even numbers - Code Golf Edition!
Inspired by this code review question, I am curious to see what happens if we turn that into a code-golf challenge! The description is easy, the input is an array or any similar data structure with ...
34 votes
40 answers
4k views
Bubbler and 3 others are typing․․․
Task Implement a kind of "some users are typing" system, which can be found in Discord and some other chat clients. If 1 user (say, Bubbler) is typing, output ...
39 votes
37 answers
4k views
Sums of Consecutive Integers
Before anyone says anything, similar and similar. But this is not a dupe. Some positive integers can be written as the sum of at least two consecutive positive integers. For example, ...
22 votes
39 answers
4k views
Reverse factorial function
Given a number n, find x such that x! = n, where both x and n are positive integers. Assume the input n will always be the factorial of a positive integer, so something like n=23 will not be given as ...
25 votes
32 answers
3k views
Enumerate an array, grouping duplicates
The objective of this challenge is to take an array of positive integers, and enumerate its indices, grouping like elements. An enumeration without any duplicates is done by just outputting an array ...
60 votes
8 answers
3k views
Make the Stretchy Snakes Kiss
A stretchy snake looks something like this: <||=|||:)~ Each separate sequence of vertical bars (|) in a stretchy snake, ...
28 votes
16 answers
20k views
Short Deadfish Numbers
Deadfish is one of the best known non Turing-complete programming languages. It has only one accumulator (which starts at 0) to store data, and only four commands: ...
32 votes
9 answers
2k views
Is It Mountainous?
Challenge For this challenge, a mountainous string is one that conforms to the grammar rule M: x(Mx)* where at each production, the all x's are the same character. ...
24 votes
8 answers
4k views
Fill the rows, columns, and diagonals of an NxN grid with 1 through N
Task Given input N, generate and output an NxN grid where each row, column and the two diagonals contain the numbers 1 to N (or 0 to ...
25 votes
7 answers
757 views
Tips for golfing in Brachylog
Brachylog is a language that's beginning to rise in prominence in code-golfing recently (and just received a major update with a terser syntax). Like Prolog, it has the advantage that it can often ...
18 votes
7 answers
640 views
Panfix to parenthesized infix
Quylthulg is a language by Chris Pressey that attempts to solve the problem of infix notation using what it calls panfix: like postfix, panfix does not require the deployment of arcane contrivances ...
19 votes
5 answers
497 views
Convert an Expression to Panfix Notation
I was browsing esolangs, and chanced upon this language: https://github.com/catseye/Quylthulg. One interesting thing about this language, is that it doesn't use prefix, postfix, or infix, it uses all ...
12 votes
3 answers
1k views
RoboZZle interpreter
Your task is to write a RoboZZle interpreter. If you're not familiar with the game, please watch the video at robozzle.com or read my description below. A robot lives on a rectangular grid of squares ...