text stringlengths 180 608k |
|---|
[Question]
[
Suppose your alarm wakes you up one morning, but you hit snooze so you can sleep for 8 more minutes. When it rings again you grudgingly get up and take a shower, which you estimate takes 15 to 17 minutes. You then brush your teeth for exactly 2 minutes, and get dressed, which takes about 3 to 5 minutes... |
[Question]
[
This question is slightly harder than the ASCII art version. There is no art, and now you get to do some floating point arithmetic!
# The Challenge
The U.S.S. StackExchange was traveling through the gravity field of planet cg-00DLEF when an astronomical explosion occurred on board. As the head programm... |
[Question]
[
This question is an extension of [Who's that Polygon?](https://codegolf.stackexchange.com/q/121815/110698) to arbitrary numbers of sides.
A [fundamental polygon](https://en.wikipedia.org/wiki/Fundamental_polygon) for a surface is an polygon with a prescribed pairing for all its \$2n\$ sides, each marke... |
[Question]
[
### Background
Math SE's HNQ [How to straighten a parabola?](https://math.stackexchange.com/q/4209381/284619) has 4,000+ views, ~60 up votes, 16 bookmarks and six answers so far and has a related companion HNQ in Mathematica SE [How to straighten a curve?](https://mathematica.stackexchange.com/q/251570... |
[Question]
[
[Sandbox](https://codegolf.meta.stackexchange.com/a/22322/80214)
Inspired by a [Codingame](https://codingame.com/) challenge I tried (and failed at) about a month ago.
Given a binary tree of words, say:
```
HELLO
/ \
WORLD EATING
/ / \
ARC... |
[Question]
[
In this challenge, your task is to detect (vertical) *Skewer Symmetry*. This means that one half of the pattern can be produced by mirroring the other half along a vertical axis, and then moving it vertically.
For example, the following pattern has skewer symmetry:
```
asdf
jkl;fdsa
;lkj
```
Be... |
[Question]
[
## Background
**[Tatamibari](https://en.wikipedia.org/wiki/Tatamibari)** is a logic puzzle designed by Nikoli.
A Tatamibari puzzle is played on a rectangular grid with three different kinds of symbols in it: `+`, `-`. and `|`. The solver must partition the grid into rectangular or square regions accord... |
[Question]
[
Write an indefinitely-running program that reports how many instances of itself are currently running. Each instance of the program should also report the order in which it was opened out of all other currently-running instances.
## Example
The user launches the program for the first time - we'll call ... |
[Question]
[
>
> **TL;DR:** Given an array of chars and a robot in a starting position of the array, write an algorithm than can read a string with movements (`F` for "go forward", `R` for "rotate 90 degrees right" and `L` for "rotate 90 degrees left") and calculate the ending position of the robot. More details i... |
[Question]
[
You're sick of other players smugly announcing "BINGO" and walking triumphantly past you to claim their prize. This time it will be different. You bribed the caller to give you the [BINGO](https://en.wikipedia.org/wiki/Bingo_(U.S.)) calls ahead of time, in the order they will be called. Now you just ne... |
[Question]
[
## The challenge
Your task is to animate Adve the Adventurer moving through a creepy (i.e. Halloween) maze. Adve is a `•`; he's character fluid, though, so he does not mind being represented by a different character.
To animate Adve, you print out each frame; a frame is the map with his current locatio... |
[Question]
[
[](https://i.stack.imgur.com/6Ee3A.jpg)
In music theory, an [interval](https://en.wikipedia.org/wiki/Interval_(music)) is the difference between two pitches. Each pitch is defined by the number of half-steps (The difference between C a... |
[Question]
[
URLs are getting too long. So, you must implement an algorithm to shorten a URL.
## i. The Structure of a URL
A URL has 2 main parts: a **domain** and a **path**. A domain is the part of the URL before the first slash. You may assume that the URL does not include a protocol. The path is everything else... |
[Question]
[
One aspect of password strength testing is runs of adjacent letters on the keyboard. In this challenge, a program must be created that returns `true` if a string contains any runs of adjacent letters.
## What counts as a run of adjacent letters?
For this simplified version of a password strength tester... |
[Question]
[
First, some definitions.
A [Hadamard matrix](https://en.wikipedia.org/wiki/Hadamard_matrix) is a square matrix whose entries are either +1 or −1 and whose rows are mutually orthogonal. The [Hadamard conjecture](https://en.wikipedia.org/wiki/Hadamard_matrix#Hadamard_conjecture) proposes that a Hadamard ... |
[Question]
[
Capacitors are notorious for being manufactured with high tolerances. This is acceptable in many cases, but some times a capacity with tight tolerances is required. A common strategy to get a capacity with the exact value you need is to use two carefully measured capacitors in parallel such that their ... |
[Question]
[
Inspired by this question [earlier today](https://codereview.stackexchange.com/questions/97309/generate-probabilities-around-a-numpad), I'd like to see interesting ways various programming languages can turn a numpad into probabilities. Commonly, tile-based games will allow you to use a numpad to move ... |
[Question]
[
See [Hole #1](https://codegolf.stackexchange.com/questions/39748/9-holes-of-code-golf-kickoff) if you are confused.
What does every kid do after he/she collects buckets of candy over Halloween?
Sort it by type and size, of course1!
## The Challenge
Given a dumped-out bag of candy of varying shapes and ... |
[Question]
[
You know those wooden toys with little ball bearings where the object is to move around the maze? This is kinda like that. Given a maze and a series of moves, determine where the ball ends up.
The board is held vertically, and the ball moves only by gravity when the board is rotated. Each "move" is a r... |
[Question]
[
[Marshall Lochbaum's online BQN REPL](https://mlochbaum.github.io/BQN/try.html) has an interesting(and aesthetically pleasing) method of displaying arrays. Your task is to implement a version with simpler rules.
```
[2,[3],4,[[[6,[5],7]]]]
```
becomes:
```
┌─
· 2 ┌· ... |
[Question]
[
An [arithmetico-geometric sequence](https://en.wikipedia.org/wiki/Arithmetico-geometric_sequence) is the elementwise product of an arithmetic sequence and a geometric sequence. For example, `1 -4 12 -32` is the product of the arithmetic sequence `1 2 3 4` and the geometric sequence `1 -2 4 -8`. The nth... |
[Question]
[
Given an integral polynomial of degree strictly greater than one, completely decompose it into a composition of integral polynomials of degree strictly greater than one.
### Details
* An *integral polynomial* is a polynomial with only integers as coefficients.
* Given two polynomials `p` and `q` the *c... |
[Question]
[
>
> This question is based on [what I came up with](https://codegolf.stackexchange.com/a/127426/70347) to answer [another question](https://codegolf.stackexchange.com/q/127397/70347).
>
>
>
Sometimes the questions here ask to draw some ASCII art. One simple way to store the data for the art is [RLE... |
[Question]
[
# Introduction
For my 5th KOTH, I present to you a challenge based on the well-known game [Battleship](https://github.com/Thrax37/hit-master) with a few twists. You'll only command one ship, whose type you'll be able to select between the 5 "traditionnal" classes, but you'll be able to undertake multip... |
[Question]
[
## Introduction
>
> In mathematics, a polygonal number is a number represented as dots or pebbles arranged in the shape of a regular polygon. The dots are thought of as alphas (units). These are one type of 2-dimensional figurate numbers.
>
>
> The number 10, for example, can be arranged as a triang... |
[Question]
[
Your task is to regulate traffic on a crossroads. There are 4 roads coming from north, east, south and west.
The input is a string representing the upcoming traffic on each road. For example, `NNNWS` indicates there is a total of 5 cars: three at the north, one at the west and one at the south. The ord... |
[Question]
[
# Characters
Let’s call these Unicode characters **English IPA consonants**:
```
bdfhjklmnprstvwzðŋɡʃʒθ
```
And let’s call these Unicode characters **English IPA vowels**:
```
aeiouæɑɔəɛɜɪʊʌː
```
(Yes, `ː` is just the long vowel mark, but treat it as a vowel for the purpose of this challenge.)
Finally,... |
[Question]
[
Tonight, my fiancée took me out to dinner to celebrate my birthday. While we were out, I heard *Happy Birthday* sung to 5 different guests (including myself), in a restaurant full of 50 people. This got me wondering - the original birthday problem (finding the probability that 2 people in a room of `N`... |
[Question]
[
We don't have a single challenge about drawing a real 3 dimensional cube, so here it goes:
# Challenge
Your task is to draw a rotated, cube with perspective. It can be in a separate window or as an image.
# Input
Your input is 3 separate numbers between 0 and 359.99... These represent the rotation arou... |
[Question]
[
## Description
Write a function `f(m, G)` that accepts as its arguments a mapping `m`, and a set/list of distinct, non-negative integers `G`.
`m` should map pairs of integers in `G` to new integers in `G`. (`G`, `m`) is guaranteed to form a finite [abelian group](https://en.wikipedia.org/wiki/Abelian_g... |
[Question]
[
The popular webcomic [Homestuck](http://www.mspaintadventures.com) makes use of a programming language called `~ATH` to destroy universes. While this code golf challenge is **not** to write a program to annihilate our existence, we will be destroying some more tame (albeit less interesting) entities: *... |
[Question]
[
You saved the day with your [prime sequence code](https://codegolf.stackexchange.com/q/59736/42963), and the math teacher loved it. So much so that a new challenge was posed to the librarian (a/k/a, your boss). Congratulations, you get to code the solution so the librarian can once again impress the ma... |
[Question]
[
### The Game
Recently, much of my time has been taken up by an addicting game on my phone, called Logic Dots, which inspired me to write this challenge. It's easier to explain the rules if I show you the game display, so here is a screenshot of an unsolved, and solved puzzle:
 is the [fifteen puzzle](http://en.wikipedia.org/wiki/15_puzzle). It has a 4 by 4 grid, 15 tiles, and one empty grid space. The tiles can only move into the empty space and must always be in line with the grid.
Let's def... |
[Question]
[
**Closed**. This question needs to be more [focused](/help/closed-questions). It is not currently accepting answers.
---
**Want to improve this question?** Update the question so it focuses on one problem only by [editing this post](/posts/4651/edit).
Closed 9 years ago.
[Improve this question](/po... |
[Question]
[
[Code 39](http://en.wikipedia.org/wiki/Code_39), developed in 1974, is one of the most commonly used symbologies, or types, of barcodes, although it is the UPC/EAN system that is most often seen in retail sales. Code 39 barcodes can encode uppercase letters, numbers, and some symbols and are trivial to... |
[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 3 years ago.
[Improve this quest... |
[Question]
[
My third word search related challenge in a row. :)
## Challenge:
#### Brief explanation of what a word search is:
In a [word search](https://en.wikipedia.org/wiki/Word_search) you'll be given a grid of letters and a list of words. The idea is to cross off the words from the list in the grid. The words... |
[Question]
[
If you have read in your childhood a Geronimo Stilton's book, I am sure that you remember the style of the text, sometimes the words were decorated for making the act of reading more funny for kids: [example](https://www.google.com/search?q=geronimo%20stilton%20texto&tbm=isch&ved=2ahUKEwiSzoTxwdXwAhWJ5... |
[Question]
[
The program should start out with 2 separate files, here named "a" and "b". "a" and "b" should be what I am calling inverse quines: "a", when run, should output "b"'s source code, and "b", when run, should output "a"'s source code, for example:
```
./a
#source code of b, optionally followed by newlines... |
[Question]
[
# Leon's story
Leon is a professional sling shooter and he comes to a shooting range everyday to practice. A casual target is not a challenge for him anymore so before shooting he first covers the target of radius `1.0` with `k` rectangle stickers. He then fires `n` shots that cannot hit the stickers.
... |
[Question]
[
In the plane (\$\mathbb R^2\$) we can have at most five distinct points such that the distances from each point to every other point (except itself) can assume at most two distinct values.
An example of such an arrangement is a regular pentagon - the two different distances are marked with red and blue... |
[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/186408/edit).
Closed 4 years ago.
[Improve this question](/posts/186408/edit)... |
[Question]
[
You have a little robot with four distance sensors. It knows the layout of a room, but it has no sense of orientation other than being able to lock onto the grid orientation. You want to be able to find out where the robot is based on the readings, but it can be ambiguous because of the limited sensors... |
[Question]
[
tl;dr: Output the values where the reduced prime factorization leader changes.
Every positive integer has a unique prime factorization. Let's call the reduced prime factorization just the list of multiplicity of the prime factors, ordered by the size of the factors. For instance, the reduced prime fact... |
[Question]
[
When multiplying monomials in the Milnor basis for the Steenrod algebra, part of the algorithm involves enumerating certain "allowable matrices".
Given two lists of nonnegative integers *r1*, ... ,*rm* and *s1*, ... ,*sn*, a matrix of nonnegative integers X
[ [Next >>](https://codegolf.stackexchange.com/questions/149950/advent-challenge-5-move-the-presents-to-the-transport-docks)
Santa was able to remanufacture all of the presents that the el... |
[Question]
[
# Challenge
Given a string input, output the demolished version of it.
# The Process
```
P
r Pr r
o o o
g g g
r r r rogr r
a -> a -> a -> a -> a -> -> -> -> ->
m m m ... |
[Question]
[
Given
* a matrix `a` of characters from `u=" ╶╺╵└┕╹┖┗╴─╼┘┴┶┚┸┺╸╾━┙┵┷┛┹┻╷┌┍│├┝╿┞┡┐┬┮┤┼┾┦╀╄┑┭┯┥┽┿┩╃╇╻┎┏╽┟┢┃┠┣┒┰┲┧╁╆┨╂╊┓┱┳┪╅╈┫╉╋"`
* the coordinates of a submatrix as `x`,`y`,`w`,`h` (left, top, width>1, height>1)
* a thickness `t` of 1 (as in `┌`) or 2 (as in `┏`)
render an inner border for the submatrix... |
[Question]
[
*This is a tips question for golfing in Python, which is on topic for main.*
I'm looking for the shortest way to get all of the most common elements of a list in Python, in the shortest way possible. Here's what I've tried, assuming the list is in a variable called `l`:
```
from statistics import*
mode... |
[Question]
[
Yesterday, I left my sandwich on the table. When I got up today, there was a bite in it... Was it mine? I can't remember...
# Problem:
Take a representation of the sandwich and my bite pattern and tell me if it was my bite or not.
# Examples:
### Example 1:
My bite pattern:
```
..
.
```
Sandwich:
```
#... |
[Question]
[
The user will hide, and the computer will try to find them.
First, the program will take an input, for the size of the grid. Like 5x5, 10x10, 15x15, etc. The grid won't always be a perfect square.
The grid is sort of like a chessboard:
```
_______________________________
| | | | | |... |
[Question]
[
We are putting balls into a fixed number **a** bins. These bins begin empty.
```
Empty bin (a=4): 0 0 0 0
```
And one by one we add balls to the bins.
```
0 0 0 1 or
0 0 1 0 or
0 1 0 0 or
1 0 0 0
```
We need a quick way to loop over all the possible states the bins take, without duplicates and with... |
[Question]
[
Output a full formal poof of such statements such as `1+2=3`, `2+2=2*(1+1)` etc.
# Introuction
If you know Peano Arithmetic you can probably skip this section.
Here's how we define the Natural Numbers:
```
(Axiom 1) 0 is a number
(Axiom 2) If `x` is a number, the `S(x)`, the successor of `x`, is a numb... |
[Question]
[
Mr Short likes to play chess. Mr Short is also a very traditional man. Hence, Mr Short is disturbed by the recent trend of using [Algebraic notation](https://en.wikipedia.org/wiki/Algebraic_notation_(chess)) in modern chess, and he would rather use [Descriptive notation](https://en.wikipedia.org/wiki/D... |
[Question]
[
**A Latin square is a square that has no repeated symbols in either the X or Y columns**. For example:
```
ABCD
DABC
CDAB
BCDA
```
is one such square. Notice how every column and row contains a permutation of the same 4 letters.
However, our Latin square has a problem: **If I were to rotate the sec... |
[Question]
[
[Subleq](https://esolangs.org/wiki/Subleq) is a programming language with **only one** instruction. Each instruction contains 3 parameters. Code and data space is the same. How it works:
```
A B C
```
A, B and C are signed ints. Instructions are executed in the next way:
```
*B = *B - *A
if(*B <= 0) go... |
[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/54877/edit).
Closed 8 years ago.
[Improve this question](/posts/54877/edit)
... |
[Question]
[
Your program will control a mining robot searching underground for valuable
minerals. Your robot will tell the controller where you want to move and dig,
and the controller will provide feedback on your robot status.
Initially your robot will be given an image map of the mine with some mining
shafts al... |
[Question]
[
I struggle to easily encode big numbers in ><>. If only there was a program that could find the best way for me?
## What is `><>`
[`><>`, pronounced "fish"](https://esolangs.org/wiki/Fish), is a esoteric 2dimentional programing language. We will consider a subset here, consisting of the following comma... |
[Question]
[
This is a challenge to write bots to play the 1st and 2nd players in the following simple poker game.
## Rules of the poker game
There are two players, A and B. Each antes $10 into the pot, and is dealt a card, which is a real number in the range [0, 1).
Player A goes first, and may pass or bet. If A p... |
[Question]
[
I recently saw [this](https://esolangs.org/wiki/MarioLANG) language in a challenge and it's awesome. Does anyone have some tips for [code-golf](/questions/tagged/code-golf "show questions tagged 'code-golf'")ing in it?
Your tips should be at least somewhat specific to MarioLANG.
Please post one tip per... |
[Question]
[
In this variant of the [Four fours puzzle](http://en.wikipedia.org/wiki/Four_fours) your should use up to `x` `x's` (and no other number) and a defined set of operations to reach every number from 0 to 100. If `x = 4` then you can use up to four `4s` and this question becomes the classic four fours puz... |
[Question]
[
## Introduction:
You are a worker, who is in charge of managing a set of bridges, connecting a square grid of "nodes":
```
N - N - N
| | |
N - N - N
| | |
N - N - N
```
(the grid here is 3 by 3, but they can be larger).
Each of the bridges has a set capacity from `1` to `10`, and each of the br... |
[Question]
[
Wikipedia says about [Polar Coordinates](https://en.wikipedia.org/wiki/Polar_coordinate_system):
>
> In mathematics, the polar coordinate system is a two-dimensional coordinate system in which each point on a plane is determined by a distance from a reference point and an angle from a reference direct... |
[Question]
[
A couple months ago, we had a [discussion on meta](http://meta.codegolf.stackexchange.com/q/7683/42545) about increasing the reputation awarded for upvotes on questions. Here's the basics of our current reputation system for votes:1
* A question upvote `U` is worth 5 reputation.
* An answer upvote `u` ... |
[Question]
[
Someone's given us a string, but all bracket-like characters have been changed into normal ones, and we don't know which, or even how many there were. All we know is that if `L1,L2,L3,...,LN` were different kinds of left brackets and `R1,R2,R3,...,RN` were different corresponding kinds of right bracket... |
[Question]
[
# A simple register calculator
This challenge involve a simple register calculator that works in the following way:
* It has some registers named `A,B,C,...,Z`, each of them can contain an integer, they are all initialized to `0`.
* It executes instructions of 3 characters: The first character of any i... |
[Question]
[
# Write an interpreter for [2B](http://esolangs.org/wiki/2B)
I like [David Catt](http://esolangs.org/wiki/User:David.werecat)'s esoteric language 2B, having memory stored in a tape where each cell is a seperate tape of bytes (the 'subtape'). Write an interpreter for it!
## Language Specification
Offici... |
[Question]
[
The barbells at my gym look like this:
```
=========[]-----------------------[]=========
```
They can hold plates of five different sizes, 2.5 pounds, five pounds, ten pounds, 25 pounds, and 45 pounds:
```
.
. ! |
. ! | | |
| | | | |
' ! | | |
... |
[Question]
[
I'm sure most of us have seen SQL results in a terminal, all neatly formatted into rows and columns. If you haven't, here's an example:
```
+----------+-----------+----------------+
| column 1 | column 2 | column 3 |
+----------+-----------+----------------+
| data | more data | even more da... |
[Question]
[
### Introduction
After a long battle, you have managed to defeat a Sphinx in a contest of riddles. The Sphinx, impressed with your skill, wishes to give you a reward commensurate with your cleverness, and conjures into existence a strip of magical parchment divided into eight boxes, each containing a n... |
[Question]
[
In [Chinese Checkers](https://en.wikipedia.org/wiki/Chinese_checkers), a piece can move by hopping over any other piece, or by making a sequence of such hops. Your task is to find the longest possible sequence of hops.
# Input
A sequence of 121 zeroes or ones, each representing a place on a board. A ze... |
[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/16209/edit).
Closed 1 year ago.
[Improve this question](/posts/16209/edit)
I... |
[Question]
[
Let's call a non-empty list of strings a ***mesa*** if the following conditions hold:
>
> 1. Each listed string is non-empty and uses only characters that occur in the first string.
> 2. Each successive string is exactly one character longer than the preceding string.
> 3. No string in the list is a [... |
[Question]
[
## Background
*Flow Free* is a series of puzzle games whose objective is to connect all the same-colored pairs of dots on the grid. *Flow Free: Warps* introduces the "warping" mechanic: a line connecting two dots can go through the border of the grid, which makes it re-enter through the opposite side o... |
[Question]
[
# Challenge
## Premise
Consider a mosaic of \$m\times n\$ tiles, in \$k\$ unique colours designated by integers. Example (\$3\times6\$, four colours):
```
4 1 3 2 4 2
1 2 4 2 1 3
4 3 2 1 4 4
```
My poor man's mirror is a pane of glass of width \$\sqrt{2}\cdot\min(m,n)\$. I stand it diagonally on the mo... |
[Question]
[
[UTF-8](https://en.wikipedia.org/wiki/UTF-8) is a relatively simple way to encode Unicode codepoints in a variable-width format such that it doesn't easily confuse code that isn't Unicode aware.
## UTF-8 overview
* Bytes in the range of 1-0x7F, inclusive, are normally valid
* Bytes with the bit pattern... |
[Question]
[
I work at a bakery that serves Wheat, Rye, Barley, Grain, and French bread, but the baker's a little weird - he stacks the loaves in random order, and sometimes just leaves some shelves at the end empty.
Each day, the same customer comes in and asks for one of each loaf of bread, but the tricky thing i... |
[Question]
[
Dice Cricket is a game I was introduced to as a child and have used as a way to pass time for years since. I couldn't find a Wikipedia page so I'll explain the rules below.
# Dice Cricket Rules
## Premise
Dice Cricket is a game similar to scoring a game of [cricket](https://en.wikipedia.org/wiki/Cricke... |
[Question]
[
I have a bunch of boards I need to stack in as small a space as possible. Unfortunately, the boards fall over if I stack them more than 10 high. I need a program to tell me how to stack the boards to take as little horizontal space as possible, without stacking boards more than ten high, or having boar... |
[Question]
[
A superior highly composite number is an integer where the ratio of its count of divisors to some power of the number is as high as possible. Expressing this as a formula:
Let d(n) be the number of divisors of n, including the number itself. For a given integer n, if there exists a number e such that d... |
[Question]
[
# Backstory
You wake up dizzy in a chemistry laboratory, and you realize you have been kidnapped by a old mad chemist. Since he cannot see very well because of his age, he wants you to work for him and only then, you can escape the laboratory.
# Task
It is your task to return the [structural formulae](... |
[Question]
[
### Challenge:
Given a checkerboard, output the smallest amount of moves it would take (assuming black does not move at all) to king a red piece, if possible.
**Rules**:
Red's side will always be on the bottom, however their pieces may start in any row (even the king's row they need to get to). Black p... |
[Question]
[
*Inspired by [this question](https://math.stackexchange.com/q/1609248) over on Math.*
Let the prime factorization of a number, *n*, be represented as: \$P(n) = 2^a\times3^b\times5^c\times\cdots\$. Then the number of divisors of *n* can be represented as \$D(n) = (a+1)\times(b+1)\times(c+1)\times\cdots\... |
[Question]
[
## Challenge
Given two inputs, a positive ion and a negative ion, you must output the formula for the ionic compound which would be made from the two ions. This basically means balancing out the charges so they equal zero.
Do not bother with formatting the formula with subscript numbers, but you must h... |
[Question]
[
# Programmer's Garden
Being a professional software developer, you cannot risk exposing yourself to the harsh non-artificial light of the sun, but you also have a soft spot for flowers, and want to keep your garden in good shape all year round.
To this end, a gardener is hired each month to tidy up the... |
[Question]
[
**Scenario**
I am using pattern matching lockscreen and I sadly forgot my pattern. I would like to know how much time I will need to unlock it. Here are the specifications of Google's lock screen, that we will use for this challenge.
* Every 5 wrong code, the user has to wait `30 seconds` before any fu... |
[Question]
[
Inspired by [this question](https://gamedev.stackexchange.com/questions/3488/saves-in-exe-file).
Create a program that prompts the user to store some data, and when the program is quitting, spit out the program itself, except the session data changed.
The user then open the newly generated program, and... |
[Question]
[
## Overview
Shue (Simplified Thue) is a language that was designed by AnttiP for [this challenge](https://codegolf.stackexchange.com/q/242897/107299). A Shue program consists of the possible outputs and a list of string replacements. For example, the following program prints "yes" if an unary string is... |
[Question]
[
Turn-based tactics games like Advance Wars, Wargroove, and Fire Emblem are made up of a square grid of varying terrain with units of differing movement classes requiring different costs for each terrain type. We'll be investigating a subset of that problem.
## Challenge
Your task is to determine if one... |
[Question]
[
>
> Disclaimer: The story told within this question is entirely fictional, and invented solely for the purpose of providing an intro.
>
>
>
I have a friend who is an architect, and, after explaining the concept of code-golf and this site to him, he said that I should code something actually useful... |
[Question]
[
One of the cool features introduced in the C++11 standard is the ability to declare a template parameter as being [variadic](https://en.wikipedia.org/wiki/Variadic_template); i.e. that parameter represents a sequence of an arbitrary number of arguments (including zero!).
For example, suppose the parame... |
[Question]
[
A [dual graph](https://en.wikipedia.org/wiki/Dual_graph) is defined such that for every "face" in a graph `G`, there is a corresponding vertex in the dual graph, and for every edge on the graph `G`, there is an edge in the dual graph connecting the vertices corresponding to the two faces on either side... |
[Question]
[
This challenge is inspired by a picture that often roams on Facebook that looks like [this](https://i.stack.imgur.com/SM0I2.jpg). Except our base square will look more like this:
```
┌─┬───┬─┐
├─┼─┬─┼─┤
├─┼─┴─┼─┤
├─┼─┬─┼─┤
└─┴─┴─┴─┘
```
The square is made out of `n x m` 1x1 square, you have to count ho... |
[Question]
[
In [ValiDate ISO 8601 by RX](https://codegolf.stackexchange.com/questions/54555/validate-iso-8601-by-rx), the challenge was to use only standard regular expressions to **validate standard date formats *and* values** (the former is a common job for RX, the latter was unusual). The winning answer used 77... |
[Question]
[
# Bob the Bowman
```
o
/( )\ This is Bob.
L L Bob wants to be an archer.
#############
.
/ \ <--- bow So he bought himself a
(c -)-> <--- arrow ... |
[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/55239/edit).
Closed 2 years ago.
[Improve this question](/posts/55239/edit)
... |
[Question]
[
## Introduction
[Tangrams](http://en.wikipedia.org/wiki/Tangram) are a classic puzzle involving arranging/fitting blocks into various shapes. From the Chinese 七巧板 - literally meaning "seven boards of skill". Let's take this idea and use the seven [Tetrominos](http://en.wikipedia.org/wiki/Tetris#Gamepla... |
[Question]
[
```
0000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000
0000001111111111111100000000000000000011111111111111100000000000000000
000000111111111... |
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.