text stringlengths 180 608k |
|---|
[Question]
[
**Closed**. This question needs [details or clarity](/help/closed-questions). It is not currently accepting answers.
---
**Want to improve this question?** Add details and clarify the problem by [editing this post](/posts/24182/edit).
Closed 2 years ago.
This post was edited and submitted for revie... |
[Question]
[
Well, when I buy gifts for my two wives, I want them to feel equally important to me, but it's hard to go shopping with fixed budgets. Instead, I buy a bunch of stuff and divide them into two groups with as equal value as possible. Then I buy a bunch of chocolates to fix the rest.
But I don't want do a... |
[Question]
[
## Task
Write a program or a function that calculates a week-day name of a date which a user inputs.
## Input & Output
Input is a string, `YYYYMMDD`.
Example of input values:
```
20110617 : June 17, 2011
19040229 : February 29, 1904
06661225 : December 25, 666
00000101 : January 1, 0
99991231 : Decembe... |
[Question]
[
This part is somewhat detached from the actual array manipulation side of the challenge, scroll down for an explanation that is much more array-based
You've been [learning how to shuffle poker chips](https://www.wikihow.com/Shuffle-Poker-Chips) recently, but, as you're still learning, you don't always ... |
[Question]
[
In [Super Auto Pets](https://teamwoodgames.com/s), players build teams of animals that face off in battles to ~~the death~~ unconsciousness. Each animal has an Attack and Health value, and combat occurs in iterations of the following process:
1. The front animals of each team deal damage to each other ... |
[Question]
[
If we have a binary matrix then we will say that a \$1\$ is stable if it is in the bottom row or it is directly adjacent to a \$1\$ which is stable.
In other words there must be a path to the bottom row consisting only of \$1\$s.
So in the following matrix the \$1\$s highlighted in red are not stable.
... |
[Question]
[
Imagine we get a slice of some mountainous region, this would result in a shape similar to this:
```
4 _
3 _ _ __/ \
2 / \__/ \ _/ \_ /
1 / \ / \_/
0 \/
12322223210012233343221112
```
As we can see, we can represent this (to a certain d... |
[Question]
[
This is a [cops-and-robbers](/questions/tagged/cops-and-robbers "show questions tagged 'cops-and-robbers'") challenge based around defining languages and proving they are Turing complete.
This is the cops' thread. [The robbers' thread is here](https://codegolf.stackexchange.com/questions/162291/escape-... |
[Question]
[
Your task is to write a RoboZZle interpreter. If you're not familiar with the game, please watch the [video at robozzle.com](http://www.robozzle.com/) or read my description below.
A robot lives on a rectangular grid of squares coloured red, green, blue, or black. Black squares are inaccessible. The ot... |
[Question]
[
Imagine enumerating the elements of rhombi which grow `[1],[1,3,1],[1,3,5,3,1],…` (only odd numbers such that they align nicely). This would look like as follows, note that you always begin enumerating with `1`:
```
01
1 02 03 04
1 2 3 4 05 06 07 08 09 …
... |
[Question]
[
This has no practical purpose but it could be fun to golf.
# Challenge
Given a number *n*,
1. Count the amount of each digit in *n* and add 1 to each count
2. Take the prime factorization of *n*
3. Count the amount of each digit in the prime factorization of *n*, without including duplicate primes
4. C... |
[Question]
[
Given a string, return a table where the first column has the unique letters of the string in order of occurrence and subsequent columns list the indices of that letter in the string, using zero or one-based indexing. Horizontal whitespace does not matter, as long as the left-most column is vertically ... |
[Question]
[
This is a pretty run of the mill question. I will define a sequence and you golf some code to output a entry given a index.
* The first item in the sequence is 2.
* The nth item in the sequence is the smallest positive integer other than n and 1 sharing at least one factor with n (other than 1) that ha... |
[Question]
[
## Goal
Given an string with a train of hashes, calculate its total length and divide by the distance from start to finish.
## Simulation
**What are we simulating?** According to [this paper](http://science.sciencemag.org/content/271/5256/1710.abstract), the ratio of the length of a river to the distan... |
[Question]
[
You must write a program or function.
The input is a 'map' of numbers. You can choose to take the map as either a string with new line characters (`\n`) or a 2D array of strings.
All maps are 5 characters by 5 characters, and the characters are always either digits greater than 0 or spaces.
Here is ... |
[Question]
[
What general tips are these for golfing in Lisp (any dialect)? Please post one tip per answer, and only answers that are specific to a dialect of Lisp (e.g. "remove comments" is not an answer).
Please post the dialect of Lisp your tip applies to with your tip.
[Answer]
# Order function parameter... |
[Question]
[
This is a pretty simple challenge, but (I hope) a fun one.
# Task
If right now either the month is `4` and the day is `20`, the hour (on a 12 hour clock) is `4` and the minute is `20`, or the minute is `4` and the second is `20`, print this ascii art:
```
.
... |
[Question]
[
Your job is to write a program that finds the optimal number of moves it takes to get from the lower-left corner of a rectangle to the upper-right corner directly opposite.
Your program will accept input as an ordered pair `(width, height)`. These will be the dimensions of the rectangle you will work w... |
[Question]
[
One of the things that makes contract bridge very interesting is its highly complicated "artificial" meta game. This system of scoring hands is a small part of it.
Bridge is a trick-taking card game. Each player gets a hand of 13 cards, and the game starts with the *bidding*. The bidding determines how... |
[Question]
[
In this challenge, you are to draw the chessboard below, and allow for moves to be made.
**1. Drawing**
Each white square has 5x9 spaces.
Each black square has 5x9 colons.
The board is surrounded by a border of colons.
The pieces are 5 characters wide and sit on the bottom row of the square in the cent... |
[Question]
[
**Closed.** This question is [off-topic](/help/closed-questions). It is not currently accepting answers.
---
This site is for programming contests and challenges. **General programming questions** are off-topic here. You may be able to get help on [Stack Overflow](http://stackoverflow.com/about).
... |
[Question]
[
Programmers are often obsessed with *drawing* fractals. I think we need a new computer based medium.
The [H tree](http://en.wikipedia.org/wiki/H_tree) is a fairly simple type of fractal made of horizontal and vertical lines. Here it is at it's tenth iteration ([courtesy Wikipedia](http://en.wikipedia.o... |
[Question]
[
A simple Manufactoria challenge. Compute the input modulo 7. The input will be in big-endian binary (blue=1, red=0). The output should be in the same format.
Test cases provided. The smallest part count wins.
<http://pleasingfungus.com/Manufactoria/?ctm=Mod7;Input:_binary_number_big_endian._Output:_tha... |
[Question]
[
The [Flesch-Kincaid readability algorithm](https://en.wikipedia.org/wiki/Flesch-Kincaid) depends on the measures of word count and syllable count, neither of which is entirely objective, or easily automatable using a computer. For example, does "code-golf", with the hyphen, count as one word or two? Is... |
[Question]
[
Time to dig up your old trigonometry notes from high school! The challenge is to solve the unknown sides and angles of different triangles. And as is customary in code golf, the smallest working code wins.
This is not a trivial problem; my reference implementation in python is currently down to 838 837... |
[Question]
[
A [binary max heap](https://en.wikipedia.org/wiki/Heap_(data_structure)) is a rooted tree with integer labeled nodes such that:
* No node has more than 2 children.
* The label of every node is greater than all of its children.
We say a sequence of integers is **[heapable](https://arxiv.org/pdf/1007.236... |
[Question]
[
If we write a sequence of numbers as the coefficients of a power series, then that power series is called the (ordinary) **generating function** (or G.f.) of that sequence. That is, if for some function `F(x)` and series of integers `a(n)` we have:
```
a(0) + a(1)x + a(2)x^2 + a(3)x^3 + a(4)x^4 + ... =... |
[Question]
[
A [Graceful Graph](http://mathworld.wolfram.com/GracefulGraph.html) is a type of [Simple Graph](http://mathworld.wolfram.com/SimpleGraph.html). Graceful graphs are special because there is a way to label all their nodes with positive integers so that when the edges are also labeled with the differences... |
[Question]
[
We've all heard of the ol' Fizz Buzz problem, but what happens when you try to apply it with more factors? Fizz Buzz Crackle Pop!
# The Challenge
Write a **full program** that takes an *integer* input **n**, then n tuples containing an integer and a string, then another integer (>1) k, as such:
```
n ... |
[Question]
[
Find the nearest Date to a TargetDate for a given Day of Week.
For example, given a date of `20161219` and a day of week of `Friday (6)`, the answer is `20161216`.
Another example, given a date of `20161219` and a day of week of `Wednesday (4)`, the answer is `20161221`.
A final example, given a date o... |
[Question]
[
# Challenge
Given a rectangular grid of printable ascii characters as a string or through standard input, write a function or program that collapses the non-space characters into a pile on the bottom.
## The rules:
* The output has the same dimensions and characters as the input.
* A non-space characte... |
[Question]
[
## Background
An unlabelled tree may look like this:
```
o
/ | \
o o o
| / \
o o o
```
To *linearize* this tree, we first label each node `o` with it's number of child nodes:
```
3
/ | \
1 0 2
| / \
0 0 0
```
and then write the numbers in a list in a breath-first manner, meani... |
[Question]
[
Recently, I was introduced to a puzzle game known as [Solitaire Chess](http://www.thinkfun.com/products/solitaire-chess/). I'll summarize the rules here:
* The board is a 4x4 checkerboard.
* All pieces are the same color (no teams) and all pieces can capture any other piece.
* Every move must be a capt... |
[Question]
[
Anomalous Cancellation (from Wolfram Alpha):
>
> Anomalous cancellation is a "canceling" of digits of a and b in the numerator and denominator of a fraction a/b which results in a fraction equal to the original. Note that if there are multiple but differering counts of one or more digits in the numera... |
[Question]
[
This challenge consists of two parts. The winner will be the solution with the lowest total byte count. The same language must be used for both challenges.
# Part 1:
Write a function or program that takes a sentence with *only [valid words](http://www.mieliestronk.com/corncob_lowercase.txt)* as input, ... |
[Question]
[
A polynomial is divisible by a factor `(x-n)` if `f(n)=0` for a function `f`. Your job: to determine if a polynomial function `f(x)` is divisible by `(x-n)`.
# The input
The input is in the form of `(x-n), (Polynomial)`. **Remember, if n is negative, `(x-n)` will be in the input form of `(x+n)`**. For... |
[Question]
[
Your boss has found out that quite a bunch of his employees (including you) like to steal code from others. He ordered you to write him a program that he can use to find people who steal code from others.
## Task:
Write a program/function that detects if somebody copied (part of) his code from somewher... |
[Question]
[
## Introduction
Lately, I've been getting used to typing with [Swype](http://en.wikipedia.org/wiki/Swype).
I've noticed certain words can be produced by drawing a straight line from your starting letter to your ending letter, or by skipping letters that repeat.
For example, I can type the word `balloon... |
[Question]
[
I am curious if I am Code Golfing properly. I set the challenge for myself to make a small hashing program into a single statement in Python. I first started off with:
```
from itertools import permutations
from string import ascii_lowercase
from random import sample
def test():
chars = sample(asci... |
[Question]
[
Imagine a rectangular grid of `|` characters represents the taut strings on a loom ([the warp](http://en.wikipedia.org/wiki/Warp_(weaving))) that other threads ([the weft](http://en.wikipedia.org/wiki/Weft)), which we will represent as `-`, can be woven around.
Here is the unwoven warp of a 7×4 loom:
`... |
[Question]
[
Your challenge today is to cheat at badges!
You will build a bot that will connect to a Stack Exchange site, log in as you, visit the /questions page, visit a question, and then visit 9 other questions in the "related" sidebar (because that seems sufficient to count as "activity," and I need to standar... |
[Question]
[
The challenge is to [parse a string like Python does](http://docs.python.org/2/reference/lexical_analysis.html#string-literals) and print the contents of the string.
* **Input (command-line argument or stdin)**: a string literal (e.g. `"hello"`) (or multiple literals, see *string literal concatenation*... |
[Question]
[
(I've tagged the question "C" for the time being, but if you're aware of another language that supports unions, you can also use that.)
Your task is to build the four standard mathematical operators `+ - * /` for the following struct:
```
union intfloat{
double f;
uint8_t h[8];
uint16_t i[4... |
[Question]
[
## The challenge
Write a program that takes two integers from standard input, separated by a comma, and then prints a visualisation of long multiplication of those two integers to standard output.
Eg:
**Input**
```
14, 11
```
**Program output**
```
14
x11
_____
14
14
______
... |
[Question]
[
Another date-manipulating problem :P
## Task
>
> Write a program or a function that calculates the difference between two dates given by a user.
>
>
>
## Input & Output
Similar to [the previous one](https://codegolf.stackexchange.com/q/2878/1477), inputs are two `YYYYMMDD`s, separated by a space , ... |
[Question]
[
[Whyte Notation](https://en.wikipedia.org/wiki/Whyte_notation) is a classification method mainly for steam locomotive, that classifies by wheel arrangement. On a steam locomotive ( we're only focusing on non articulated locomotives here ), the wheels are generally disposed like this : you have a specif... |
[Question]
[
## Challenge
Given a [graph](https://en.wikipedia.org/wiki/Graph_theory) (a structure consisting of nodes and vertices), classify it according to a few categories.
Specifically, you will be given an unweighted [directed](https://en.wikipedia.org/wiki/Graph_theory#Directed_graph) graph, which is a set o... |
[Question]
[
## Background
Mathematicians are interested in all kinds of algebraic structures, e.g. groups, rings, boolean algebras. Generally, we have several operations (addition, multiplication, meet, join, etc.), and some equational relationships on the operations (e.g. associativity of multiplication). This ma... |
[Question]
[
Related: [Read a crossword](https://codegolf.stackexchange.com/q/76966/78410)
## Task
Given a completed Crossword puzzle, extract the words in it with their respective clue numbers, with "across" (horizontal) and "down" (vertical) words grouped and ordered like a real crossword puzzle.
The words are nu... |
[Question]
[
At the time of writing this puzzle, there are soon to be [269 puzzles related to primes](https://codegolf.stackexchange.com/questions/tagged/primes). To celebrate/mourn this event (269 is prime), this challenge will be about exploding primes. In preparation for this task, I've obtained a permit (legal,... |
[Question]
[
# Background
An **ex-increasing set sequence** of order \$N\$ is defined as a sequence of integer sets \$S\_1,S\_2,\cdots,S\_n\$ which satisfies the following:
* Each \$S\_i\$ is a non-empty subset of \$\{1,2,\cdots,N\}\$.
* For \$1\le i<n\$, \$S\_i \cap S\_{i+1} = \varnothing\$, i.e. any two consecuti... |
[Question]
[
An ordinary N-digit combination lock consists of N rotating discs. Each disc has digits 0-9 inscribed in order, and you need to turn them to the correct password to open it. Obviously, if you don't know the password, you will need to try at most 10N times before unlocking it. That's not interesting.
[!... |
[Question]
[
Since tomorrow is the 4th of May, here's a little Star Wars themed post to prepare you mentally to all the bad jokes coming tomorrow.
**BACKSTORY**
During a session of the galactic senate all the senators are sitting in an `n*n` grid.
A sudden outbreak of JarJar flu (which lasts forever and causes the ... |
[Question]
[
Given two [permutations](https://en.wikipedia.org/wiki/Permutation) in disjoint cycle form, output their product/composition in disjoint cycle form.
[](https://i.stack.imgur.com/FtEK0.png)
To find the composition, conver... |
[Question]
[
**Introduction:**
Like Twitter and Instagram and others, I wanted to display numbers like `1.2K` and `3.8 M` instead of `1,222` or `3,823,456`.
But that's not all! As we all know, there might be some *human beings* which undoubtely won't like these abbreviations and will try to reverse them. So, `1.2k`... |
[Question]
[
A [right-truncatable prime](https://oeis.org/A024770) is a prime where every prefix is a prime (in base 10). A [left-truncatable prime](https://oeis.org/A024785) is exactly the opposite, where every postfix is a prime (primes that start with 0 aren't allowed). Both of these sequences are finite (There ... |
[Question]
[
**GolfScript** automatically coerces values, according to the following ‘priority’ sequence:
>
> integer → array → string → block
>
>
>
(listed from lowest to highest.)
This means that `"1"7+` leaves the string `"17"` on the stack (and not `8`), because strings have a higher priority than integers.... |
[Question]
[
This is a follow-up question to my [Puzzling.SE question](https://puzzling.stackexchange.com/questions/28363/half-reverse-operation-on-binary-strings): I asked if there’s a function **f** mapping Boolean strings to Boolean strings, so that **f(f(b)) = reverse(b)** for all input strings **b**. (By **rev... |
[Question]
[
The other day my chemistry teacher was explaining to us about [scientific notation](https://en.wikipedia.org/wiki/Scientific_notation) (using a small number and multiplying it by powers of ten to express large numbers more easily), which brought me back a few years to when I first learnt it. After lear... |
[Question]
[
**Closed.** This question is [off-topic](/help/closed-questions). It is not currently accepting answers.
---
Questions without an **objective primary winning criterion** are off-topic, as they make it impossible to indisputably decide which entry should win.
Closed 7 years ago.
[Improve this quest... |
[Question]
[
# Introduction
In this challenge, your task is to find generalized subsequences of strings.
The subsequences are not necessarily contiguous, and they can also "wrap around" the string, going past its end and starting again from the beginning.
You'll want to minimize the number of wraps, though.
More fo... |
[Question]
[
# Background
Most (halfway decent) text editors allow you to navigate text using the arrow keys. Up and down allow you to navigate lines, while left and right move across a line but also wrap around. Furthermore, if the line is shorter than your cursor's X position, the cursor appears at the end of the... |
[Question]
[
This is based on a game one of my math teachers used to play in middle school. He would write 5 random one-digit numbers on the board, and then a random two-digit number. We would try to create an equation that used all 5 of the one-digit numbers to yield the two-digit number.
Here are some examples wi... |
[Question]
[
## Introduction:
I'm old-fashioned and still read a physical newspaper in the morning while eating my breakfast. Although I don't like Sudoku that much, I do solve the Light-complexity ones, which are extremely easy. With these, I always try to solve all the numbers using only the Hidden Single techniq... |
[Question]
[
You've arrived on an alien planet. The writing system, the culture and the language there are completely foreign to any language you know. But somehow they are all playing wordle already.
So as a method to learn their language and culture you start playing their version of wordle. Their wordle works a ... |
[Question]
[
More advanced version of [this](https://codegolf.stackexchange.com/questions/67646/chain-reaction-of-bombs)
The aim of this puzzle is to simulate the impact of the shock wave of bombs on a square grid. The grid initially contains cells labelled `0` along with several bombs of type `A`, `H`, or `B`. Dis... |
[Question]
[
I'm not sure if this kind of golf is allowed, but here it is.
Your objective is to create an image containing one pixel of every possible RGB color. The image with the smallest file size wins.
Rules:
* The image must be a PNG.
* The image must contain *exactly* one of every possible RGB color.
* Accept... |
[Question]
[
In the face of some regrettable rules that turned the [original](https://codegolf.stackexchange.com/q/209666/45613) into a glorified sorting task, I am posting a more challenging variant. Shout out to Luis Mendo for the suggestion of how to improve the original challenge.
---
You've inherited a server ... |
[Question]
[
Input a scientific notation number (base 10), output scientific notation in base 16 (as defined below).
## Details
In scientific notation, all non-zero numbers are written in the form
$$ m \times 10^n $$
Where \$ n \$ is an integer, and \$ m \$ is a real number, \$ 1 \leq |m| < 10 \$.
Consider scientif... |
[Question]
[
# Context
The water buckets riddle or the water jugs riddle is a simple riddle that can be enunciated in a rather general form as:
Given \$n > 0\$ positive integers \$a\_1, a\_2, \cdots, a\_n\$ representing the capacities (in units of volume) of \$n\$ buckets and a positive integer \$t \leq \max(a\_1, ... |
[Question]
[
Given an addition pyramid \$P\$, determine whether it can be solved. An addition pyramid consists of *layers*, each having one number less than the one below it. Layer \$i\$ is symbolized as \$P\_i\$. \$P\_1\$ is the base layer, and \$P\_{i+1}\$ is the layer atop \$P\_i\$. The \$j\$th number of \$P\_i\... |
[Question]
[
Two ambassadors at a UN conference want to speak to each other, but unfortunately each one only speaks one language- and they're not the same language. Fortunately, they have access to several translators, who each understand and speak a few languages. Your task is to determine the shortest chain of tr... |
[Question]
[
## Introduction
Inspired by the very recent video [The Trapped Knight - Numberphile](https://www.youtube.com/watch?v=RGQe8waGJ4w), I came up with a challenge.
The [trapped knight sequence](https://oeis.org/A316667) is a finite integer sequence of length 2016, starting from 1, and has the following cons... |
[Question]
[
In the spirit of [Solve the Halting Problem for Befinge](https://codegolf.stackexchange.com/q/99107/61384), let's define another 2D language called *Modilar SNISP*. Modilar SNISP has the following six instructions:
* `\` directs the instruction pointer as follows:
+ if approached from the top, go righ... |
[Question]
[
I posted [this challenge](https://codegolf.stackexchange.com/questions/67600) a while ago, which concerns *how many* elves Santa needs to deliver presents.
Due to population increase, Santa is a little more pressed for time this year. Although in the past we operated very asynchronously, we are beginni... |
[Question]
[
## Introduction
"Muhuhuhahahah!" The mad scientist laughs. "You're trapped in my own little game!"
In front of you is a deadly pit of snakes, while behind you is a bottomless chasm. There's no way out, you're stuck!
"Two steps in front of you is the snake pit, and two steps behind you is the chasm. But... |
[Question]
[
A *ballot number*, which we'll label *B*, is the number of ways of arranging the numbers from 1 through B(B+1)/2 into a triangle, such that each row and column is in any increasing order. The first four ballot numbers are:
```
a(0) = 1
a(1) = 1
a(2) = 1
a(3) = 2
```
`a(3)` is 2, which means that there ... |
[Question]
[

[Cheddar](https://github.com/cheddar-lang/Cheddar) is a high-level, functional + object-oriented programming language created by our user [Downgoat](https://codegolf.stackexchange.com/users/40695/downgoat) designed t... |
[Question]
[
## Challenge
Winter is fast approaching with many places receiving the first layers of snow for the 15/16 season, so why don't we break out the snow machines and code ourselves some snow?
Given a integer `n` via STDIN, output an ASCII representation Beta's snowflake (as described below) at level `n`.
#... |
[Question]
[
[](https://i.stack.imgur.com/0NXzam.png) [](https://i.stack.imgur.com/1R3Unm.png)
[Background theme](http://www.youtube.com/watch?v=zt0UuNpUqK4)
# Introduction
Obi-Wan Kenobi, Qui-Gon ... |
[Question]
[
In this form of the game Tic-Tac-Chec, the goal is to move chess pieces to get four-in-a-row. Your goal here is to figure out if a position has a winning move.
# Rules
The rules are similar, but not identical, to those of Tic-Tac-Chec.
The board is 4 by 4 squares. Each player has a rook, bishop, knight... |
[Question]
[
This question originates in [this reddit thread](http://www.reddit.com/r/mathriddles/comments/28kgo7/a_centrifuge/) by reddit user taho\_teg but it is expanded to a more general 'puzzle'.
You have a centrifuge with 24 holes for the vials uniformly distributed in a circle around the central axis. If you... |
[Question]
[
Turns out there are some distant aliens who know English *(and have coincidentally standardized on 8-bit computer architectures)*. Yet they have never heard of ASCII, nor even alphabetical order.
It is believed that these aliens are picking up information from Earth. Yet they are doing so with digital ... |
[Question]
[
### Overview:
Your job is to take CSV input in `key=value` format and line it up in a more organized (see below) way.
### Input:
Always via **stdin**. Records will always be in the following form `key=value`:
```
foo=bar,baz=quux
abc=123,foo=fubar
baz=qwe,abc=rty,zxc=uiop,foo=asdf
```
* There will be n... |
[Question]
[
**Input**: Either one or two strings consisting of `'0'`s and `'1'`s. If there are 2, they are separated by a space. All strings are of length at least 1.
**Output**:
* If a single input was given as input, 2 are output.
* If 2 were input, 1 is output.
The output strings can be whatever you like, but i... |
[Question]
[
In this challenge you will write code to take a list of positive integers and output all maximal linear sublists.
* A sublist is is a list which can be created by deleting values from the the input list. Sublists have more structure than just lists. They in a way "remember" which values are deleted.
* ... |
[Question]
[
## Background
Fibonacci numbers are defined as follows:
$$
F\_0 = 0, F\_1 = 1, F\_n = F\_{n-1} + F\_{n-2}
$$
The **Zeckendorf representation** is a representation of positive integers as a sum of one or more non-adjacent Fibonacci numbers, using indices 2 and higher. It is known that such a representat... |
[Question]
[
*A sequel to [What dice do I need to display every integer up to X?](https://codegolf.stackexchange.com/q/260434/117794)*
Numbers are great, but let's take it to the next level. I'd like to have a set of dice that can be arranged and rotated to display any words I want. Think Boggle:
[![Boggle dice s... |
[Question]
[
The Cabbage, Wolf, Goat riddle with a twist!
### Backstory:
There’s an intergalactic river than needs to be crossed! Being a space-ferryman you’ve offered some aliens on your small space ferry that can only carry two entities: you and a passenger. However, you know that because politics, some of these ... |
[Question]
[
The famous game of [Qwirkle](https://www.ultraboardgames.com/qwirkle/game-rules.php) has simple but intricate rules (See part 2 of this question for a summary of the rules!)
1. The Challenge
You are somehow (text input, function parameter, whatever) given a board of a Qwirkle game, like a snapshot from... |
[Question]
[
The golfing language [Jelly](https://github.com/DennisMitchell/jellylanguage) has a very complex and clever string compression system which I'm not going to go into depth about here. You can find a very good explanation [here](https://codegolf.stackexchange.com/questions/221428/decompress-an-integer-je... |
[Question]
[
We've had [Meta Regex Golf](https://codegolf.stackexchange.com/questions/17718/meta-regex-golf) and [Display OEIS Sequences](https://codegolf.stackexchange.com/questions/107209/display-oeis-sequences). Now, it is time for Meta OEIS Golf.
## Challenge
Given a sequence of integers, your program/function ... |
[Question]
[
In the description of this challenge, the following board will be used as a reference for positions:
```
ABC
DEF
GHI
```
For instance, in a game of ordinary tic-tac-toe, `B E A C G D F H I` describes the following:
```
-X- -X- XX- XXO XXO XXO XXO XXO XXO
--- -O- -O- -O- -O- OO... |
[Question]
[
## Background
Suppose that there are `2*n` people to be married, and suppose further that each person is attracted to exactly `n` other people under the constraints that:
1. Attraction is [*symmetric*](https://en.wikipedia.org/wiki/Symmetric_relation); i.e. if person `A` is attracted to person `B`, the... |
[Question]
[
[](https://www.youtube.com/watch?v=xHh0ui5mi_E)
**Given three dice rolls** (integer values from 1-6) in sorted order (so as to be indistinguishable), **convert them to the sum of two fair dice** with an identical distribution.
The answer... |
[Question]
[
This is [code-golf](/questions/tagged/code-golf "show questions tagged 'code-golf'").
In this challenge, we will be writing programs/functions that solve "[Knights and Knaves](https://en.wikipedia.org/wiki/Knights_and_Knaves)" puzzles.
**Background**
You find yourself on an island ... etc. ... every pe... |
[Question]
[
There are *n* boxes, numbered *1-n*. Each box is locked, such that it can be opened by only one corresponding type of key (also numbered *1-n*). These keys are randomly scattered in the boxes (one box may have any number of keys, one key may have any number of duplicates), and then all boxes are shut. ... |
[Question]
[
Write, in as few **characters** as possible, a program that takes zero or six command-line arguments
```
menorah
menorah YEAR MONTH DAY HOUR MINUTE SECOND
```
(Both forms must be supported. The zero-argument version shall be equivalent to calling the six-argument version with the *current* system date ... |
[Question]
[
Given a positive integer *n* output the sum of the first *n* decimal digits of the fractional part of *πn*.
Example input and outputs:
>
> 1 → 1
>
> 2 → 14
>
> 3 → 6
>
> 4 → 13
>
> 5 → 24
>
> 50 → 211
>
> 500 → 2305
>
> 5000 → 22852
>
>
>
Built-in functions computing di... |
[Question]
[
There has already been a [9 Hole Challenge](https://codegolf.stackexchange.com/questions/16707/9-hole-challenge) (and another one [here](https://codegolf.stackexchange.com/questions/19163/9-hole-mini-golf-text-manipulation)), but that was soooo last year. And besides, [I](https://codegolf.stackexchange... |
Subsets and Splits
Python Q&A Count
Counts the number of questions and answers related to Python in the dataset, providing insight into the prevalence of Python content.