text stringlengths 180 608k |
|---|
[Question]
[
[Pascal's Pyramid](http://en.wikipedia.org/wiki/Pascal%27s_pyramid) is an extension of Pascal's Triangle to the third dimension. Starting with a 1 as the apex, the elements of each successive layer can be determined by summing the three numbers that are above it. The nth layer contains the coefficien... |
[Question]
[
Ok, I found myself with a nice little problem:
you will get from `stdin` a string. In this string you will find some hex colors (like `#ff00dd`). You must return the string with the colors inverted (`#ff00dd` inverted is `#00ff11`).
A sample input/output could be:
```
ascscasad #ff00ff csdcas dcs c#0... |
[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 8 years ago.
[Improve this que... |
[Question]
[
**This question already has answers here**:
[Zeroes at the end of a factorial](/questions/79762/zeroes-at-the-end-of-a-factorial)
(62 answers)
Closed 7 years ago.
Write a function which takes n as a parameter, and returns the number of trailing zeros in n!.
## Input Constraints
0 <= n <= 10^10... |
[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 1 year ago.
[Improve this ques... |
[Question]
[
Your task is to write a program that performs case conversion from plain text, and other case formats, into one of the specified formats below. Inputs will be either plain lowercase text, or one of the detailed cases below. You must remove non-alphabetic characters except (space), `_` (underscore) a... |
[Question]
[
The **Zany Car Game** is a tile matching game. You are given a number of tiles, with coloured cars split into a top and bottom half. To win the game, you need to find a square arrangement of the tiles so that only whole, correctly coloured cars are formed at each tile join , like the image below.
[![... |
[Question]
[
Black Box is a board game, Your task is to reveal all clues.
## What is black box
Black box is a board game with hidden atoms, Your task is given input, All atoms, reveal all clues.
## I/O
### Input
The atoms can be any 1-char that is not newline (Used for separator) Like this.
```
O....
...O.
..O..
... |
[Question]
[
In [Conway's Game of Life](https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life), there is an infinite square grid of cells, each of which is alive or dead. The pattern changes each "generation". A dead cell with exactly 3 live neighbors (orthogonal or diagonal) becomes a live cell. A live cell only... |
[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/186118/edit).
Closed 4 years ago.
[Improve this question](/posts/186118/edi... |
[Question]
[
Matlab has a useful command for visualizing data: [`plot`](https://uk.mathworks.com/help/matlab/ref/plot.html). It draws data points using "markers" in 2-D space, connecting them with lines; however, for this challenge, let's ignore the lines and use only markers. In fact, only one marker.
Input: one... |
[Question]
[
*(thanks to @JonathanFrech for the title)*
## Challenge
Write a program or function that, given a collection of positive integers \$S\$ and a positive integer \$n\$, finds as many non-overlapping subcollections \$T\_1, T\_2, ..., T\_k\$ of \$S\$ as possible, such that the sum of every \$T\_m\$ is equ... |
[Question]
[
Make an upside down triangle of **positive** integers. Every number in the triangle must be **distinct**. Each number is the **summation** of its two parents (similar to how Pascal's triangle is constructed, but upside-down). Construct it in such a way that the bottom number is **minimized**.
For exa... |
[Question]
[
If Abe goes, then Beth and Diana go. If Beth goes, then Catherine goes. If Catherine goes, then Diana goes. If Diana goes, then Ezra goes. Only three people go. Who goes?
# Challenge
Given a list of several pairings of people, such that in each pairing the second person goes if the first person goes,... |
[Question]
[
Based on [this challenge](https://codegolf.stackexchange.com/questions/142066/output-the-trinity-hall-prime) and [this Math.SE question](https://math.stackexchange.com/questions/2420488/what-is-trinity-hall-prime-number). Idea originally come from [a Numberphile video](https://www.youtube.com/watch?v... |
[Question]
[
### Taking in Input
Define a function `f` as follows:
```
IF x < 0:
f(x) = -√|x|
ELSE:
f(x) = √x
```
In your programs/functions, each point `(x, y)` given as input will correspond to the point `(f(x), f(y))`. For example, if the points `(4, -2)` and `(-1, 5)` are given as input, your program ... |
[Question]
[
A [Woodall Prime](https://oeis.org/A050918) is a prime which can be calculated, given a positive integer `n`, with `n * 2^n - 1`.
Your task is to, given a integer `k`, generate a Woodall Prime with `k` digits. If no such Woodall Prime exists, you must generate a Woodall Prime with the closest amount ... |
[Question]
[
A histogram is an array of integers that counts the number of times a symbol occurs. For example, for the string `"aaabbbabbdebabbbebebdbaaabbabaaaaeebeaabaaba"` a histogram is `a: 18, b: 18, c: 0, d: 2, e: 6`, or `[18, 18, 0, 2, 6]` in short.
If we were to pick a random character out of this string,... |
[Question]
[
Take as input 3 floating point numbers, which represent the x, y, z coordinates of a point. Return a truthy or falsey value indicating whether the point is inside the regular icosahedron centred at the origin, with top and bottom vertices at (0, 0, 1) and (0, 0, -1), and with one of the upper ring of... |
[Question]
[
# Topping the Charts
You are a record label company. Your goal is to get 4 of your signed bands in the top 4 positions in the charts. However, its recently been noted that bands currently in the charts influence who is going to be in the charts the next day.
In this challenge, each player will contro... |
[Question]
[
**Format**
The format is a 64 bit value **x** representing a IEEE-754 double-precision binary floating-point number (a.k.a "a double"). **x** is assumed to represent a real number (not a NaN or Infinity).
**Goal**
The goal is to print/output the shortest string containing a decimal representation for... |
[Question]
[
The goal of this challenge is to write a program which takes a string (of any length) as input and displays anagrams (see [these examples](http://en.wikipedia.org/wiki/Anagram#Pseudonyms) of anagrams) of this string, made by taking words in a dictionary (either individually or in pairs), but the anag... |
[Question]
[
Consider 3 dimensional space which has been partitioned by at least two planes which go through the origin. If there are `n` planes then the number of distinct pyramidal regions this creates is exactly [`2 - n + n^2`](http://www.austms.org.au/Gazette/2006/Sep06/HoZ.pdf) as long as they are in "genera... |
[Question]
[
Your program will receive an ascii shape consisting of only underscores `_`, pipes `|`, spaces and newlines `\n`, which, together, represent a horizontally-aligned, right-angled shape. Together with this shape, on a new line, you will also receive either a positive or a negative integer, whose absol... |
[Question]
[
An undecidable set is a set for which determining whether an object is an element of the set is an [undecidable problem](http://en.wikipedia.org/wiki/Undecidable_problem)
Write a program which runs forever, printing the elements of any undecidable set, each element appearing on its own line. For any ... |
[Question]
[
The cow and chicken problem is a traditional problem for introducing young students to the concept of systems of equations. It goes as follows:
>
> A farmer raises cows and chickens on his farm. His animals have a total of 24 heads and 68 legs. How many cows and how many chickens does he have?
>
> ... |
[Question]
[
Your program reads from standard input and prints to standard output.
The first thing you'll be receiving on stdinput will be the ruleset for your firewall (until you encounter a double newline).
We'll start explaining **the ruleset** itself with some sample input:
```
/* header abbreviations added f... |
[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/4773/edit).
Closed 3 years ago.
[Improve this question](/posts/4773/edit)
... |
[Question]
[
A program should take an input on stdin, and guess what a word might be. It should run as a session. One example session is shown below. Characters are fed to it, with a \* for a letter not revealed; it should remember letters already revealed. It shows possible words in a list if the total number wo... |
[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/200354/edit).
Closed 3 years ago.
[Improve this question](/posts/200354/edi... |
[Question]
[
[Surreal Numbers](https://en.wikipedia.org/wiki/Surreal_number) are one way of describing numbers using sets. In this challenge you will determine the value of a surreal number.
# Intro
A surreal number consists of two sets: a left and right. The value of the surreal number must be greater than all n... |
[Question]
[
Non-associative operators (for example the subtraction-operator) often are either left- or right associative, such that one has to write less parentheses. Consider for example the following:
$$
a-b-c
$$
Probably everybody read that as \$(a-b)-c\$, by default (usually) subtraction is left-associative.... |
[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/162652/edit).
Closed 5 years ago.
[Improve this question](/posts/162652/edi... |
[Question]
[
In the context of quines, an intron (or payload) is a part of a quine that serves no purpose in producing output, but is still included in the data section. For example:
```
function quine() {
const data = "function quine() {\n const data=\"@\";\n // Arr! This be an intron!\n return data... |
[Question]
[
The goal is to make a two frame animation with ASCII art of a hammer smacking a table.
Trailing white-space is allowed and the frames need to repeat continuously. The program should iterate over both frames with a time of 0.5 seconds between frames.
Lowest byte count wins for each language!
**Sample:... |
[Question]
[
You will create a program that generates the stereographic projection of polyhedra.
In particular, to keep things simple, we'll only focus on n-[chamfered](https://en.wikipedia.org/wiki/Chamfer_(geometry)) [dodecahedron](https://en.wikipedia.org/wiki/Regular_dodecahedron).
Given a natural number `n` ... |
[Question]
[
Everyone loves slicing in python, as in `array[5]` to access the fifth element or `array[:5]` to access the zero through fourth element or `array[::-1]` to reverse an array. However, these all have seemingly distinct notations. When and where should the colons and integers be placed?
# Task
Your task... |
[Question]
[
These are the hosts of the "Weekend Update" news segment on *Saturday Night Live*, with the years they hosted and their initials:
```
Chevy Chase 1975-1976 CC
Jane Curtain 1976-1980 JC
Dan Aykroyd 1977-1978 DA
Bill Murray 1978-1980 BM
Charles Rocket 1980-1981 ... |
[Question]
[
Write a program that can validate a PNG file. Your program should follow the [PNG spec](https://www.w3.org/TR/PNG/) and must validate the PNG signature and the 4 critical chunks: `IHDR`, `IDAT`, `PLTE` and `IEND`. Your program must not validate the contents of ancillary chunks, except for their CRC c... |
[Question]
[
What's great about golfing is not having to deal with errors. Except this time you won't get off so lightly! I need to do some arithmetic with certain limitations, and I wan't to know what goes wrong if anything.
# Challenge
Given a list of signed integer values `[n1..n11]`, give the following result... |
[Question]
[
*Hey guys, first time poster here. I went on Coderoulette recently and some guy posted this question. I looked around online but it doesn't seem to be anywhere. I figured I would post it here for anyone who is a fan of these types of problems. Enjoy!*
---
Alexa is a druid who loves Mathematics! She l... |
[Question]
[
## Challenge
Output the person on PPCG who has cast the most upvotes and the person who has cast the most downvotes.
## Voters
You should only look at the people who have cast more than 1000 votes in total.
To find the person who upvotes the most, you should the find the person with the highest `upvo... |
[Question]
[
Wikipedia has [several restrictions](https://en.wikipedia.org/wiki/Wikipedia:Naming_conventions_%28technical_restrictions%29) on an article's title. I summarize them here:
* It may not be empty.
* It may not begin with a lowercase letter. A character is considered lowercase if it has an `Ll` after it... |
[Question]
[
I have a new programming language called Brussels-Sprout. Brussels-Sprout functions in an array of 256 boolean values, all initialized to zero, has one instruction pointer, and one "bit index".
After each (non-branching) instruction is executed, the instruction pointer is incremented by one. If the ... |
[Question]
[
Your goal is to map a piece of text to a sine curve of the form:
# a sin ( mx - b )
Where *a* and *m* are non-zero rational numbers, *b* is a rational number, and the calculations are in radians.
It doesn't really matter where the origin of your graph is, as long as you fit all the letters in your ou... |
[Question]
[
In a preference ballot there are many ways to decide who won. One of which is the [Borda count method](https://en.wikipedia.org/wiki/Borda_count), where we give everyone point based on their places on the ballot.
For example, in these results:
```
10 5 7 2
_____________
1 a d a c
2 b a d... |
[Question]
[
Given a matrix M all of whose entries are 0 or 1, we want to known whether there exists a non-zero vector **v** with each element in {-1, 0, 1}, such that M**v** = **0**.
An easy way to do this is just to try all possible vectors v. The M is m by n then there are 3n - 1 such vectors. But of course t... |
[Question]
[
**Overview:**
Your challenge is to write a program that will play minesweeper optimally, giving the best move in any position. Moreover, you must do this on the largest board possible.
**Game details:** Minesweeper is a one player game, played on a rectangular board. At the beginning of the game, a s... |
[Question]
[
Some time ago I came across a game called [Ubongo](http://en.wikipedia.org/wiki/Ubongo). The player got four shapes and has to put them together in a way, that the shapes form the shape of the board. One example is this:

Note that the shapes can ... |
[Question]
[
Implement the [Pigeonhole sort](http://en.wikipedia.org/wiki/Pigeonhole_sort). This is a variant of the Bucket sort, and its logic is very simple: index your items (by a given function) and then return all non-empty indexes' items.
Your program/function should get an array of items in the most comfor... |
[Question]
[
# The task
The task is to write a program that turns a list of IPv6 addresses into a shortest possible list of CIDR masks, such that everything but those IPs is matched.
# CIDR masks
A CIDR mask matches IPs by a prefix. `::/19` matches all IPs whose first 19 bits are zero, i.e. `0:0000-1fff:*:*:*:*:... |
[Question]
[
Objective:
>
> The task is to create two programs using the same or different
> programming languages. The sourcecodes will be combined in two
> different ways and the resulting sourcecodes can be in any programming
> languages. The four programs (original two + the two combinations)
> should ou... |
[Question]
[
You are given a graph represented through an adjacency list. For example, the input
```
1-2 2-3 3-4 4-1
```
would correspond to the graph with nodes *1*, *2*, *3* and *4*, where *1* is connected to *2*, *2* is connected to *3*, *3* is connected to *4*, and *4* is connected to *1* (forming a square).
... |
[Question]
[
A polynomial over a variable *x* is a function of the form
>
> p(x) = anxn + an-1xn-1 + ... + a1x + a0
>
>
>
where *a0 ... an* are the *coefficients*. In the simplest
case, the coefficients are integers, e.g.
>
> p1(x) = 3x2 + 4x + 1
>
>
>
By allowing the coefficients to be polynomials over ... |
[Question]
[
**This question already has answers here**:
[Base Conversion With Strings](/questions/69155/base-conversion-with-strings)
(9 answers)
Closed 8 years ago.
## Create a function 'baseXtoY' which:
converts an integer or string `n`, which is a base `x` number (hexadecimal, binary, etc)
into a base ... |
[Question]
[
## The challenge
Create a program that mimics a chessboard.
## The datails
The chessboard must be surrounded by the labels of each row and column, being the columns labeled from 'a' to 'h' and the rows labeled from '1' to '8'. Also, place the default position for each chess piece (blacks are on the ... |
[Question]
[
**Closed.** This question is [off-topic](/help/closed-questions). It is not currently accepting answers.
---
This question does not appear to be about code golf or coding challenges within the scope defined in the [help center](https://codegolf.stackexchange.com/help/on-topic).
Closed 1 year ago... |
[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 9 years ago.
[Improve this que... |
[Question]
[
**This question already has answers here**:
[Stackable sequences](/questions/144201/stackable-sequences)
(27 answers)
Closed 2 months ago.
Given a list of non-negative integers the function \$f\$ replaces every integer with the number of identical integers preceding it (not necessarily contigu... |
[Question]
[
Let's introduce a simplified variant of the well known Spider Solitaire.
From Wikipedia:
>
> The main purpose of the game is to remove all cards from the table, assembling them in the tableau before removing them. Initially, 54 cards are dealt to the tableau in ten piles, face down except for the to... |
[Question]
[
The aim of this post is to gather all the tips that can often be applied to [radiation-hardening](/questions/tagged/radiation-hardening "show questions tagged 'radiation-hardening'") challenges.
Please only post answers which can apply to a large number of languages, and one tip per answer.
[A... |
[Question]
[
# Challenge
You just entered a room. Here's how it looks (you are the X):
```
|\ /|
| \/ |
| X |
| |
|----|
```
You challenge yourself to see if you can reach where you started by following the walls. You go right until you find a wall. Then, you turn clockwise until you are facing parallel to t... |
[Question]
[
Your regex will receive a string of the form
```
!XX!
#<extra>
```
where `X` is any hexadecimal digit (0-9 and A-F **capital letters only**), and `<extra>` is a character sequence to your choosing. (perhaps something like `0123456789ABCDEF0` could be useful?)
You may use any regex flavour.
Scoring wi... |
[Question]
[
Write a program that takes two lists of strings and generates a javascript regex that fully matches all the strings in the first list and matches none of the strings in the second list.
To be specific when for all stings in the first list `str.match(/[your-output]/)` must produce a match for the full... |
[Question]
[
## Background
[Supplementary reading 1](https://blog.functorial.com/posts/2017-08-05-Embedding-Linear-Lambda-Calculus.html), [Supplementary reading 2](https://doisinkidney.com/posts/2020-10-17-ski.html)
Linear lambda calculus is a limited form of lambda calculus, where every bound variable must be us... |
[Question]
[
Suppose you have a string \$s\_0\$ and someone else has a hidden string \$s\_1\$. You don't know what \$s\_1\$ is but they tell you that they can get from your string, \$s\_0\$, to their string by making a certain number of moves \$d\$. Each move can be one of the following:
* Insertion : Add a char... |
[Question]
[
Using FTP's ASCII mode to transfer binary files is a bad idea. It is likely to corrupt your data. Badly. Let's simulate this corruption!
Your task is to write a program which takes a file as input and outputs the corrupted version of the file. Because how exactly your file gets corrupted is dependent... |
[Question]
[
Chinese Hearts, also known as Gong Zhu (拱猪, Chase the Pig), is a variance of the Hearts game. It is a 4 player card game with the aim to earn the highest amount of points. You may read more about it on [Wikipedia](https://en.wikipedia.org/wiki/Gong_Zhu). This time, we want implement a program (full o... |
[Question]
[
I have recently thought of a wonderful relatively old mobile game, called Tower Bloxx. Alhough I'm not really old myself, but it reminded me of childhood and school :)
So this my challenge is a kind of a *reference* to that good game!
I have (hopefully) looked into any tower question on PPCG and thi... |
[Question]
[
This challenge is similar [to my previous one](https://codegolf.stackexchange.com/questions/144053/distances-to-coordinates), but has a twist that makes it significantly more difficult.
There are *n* people on a 2D plane. Using distances between them we're going to find their positions. You may make ... |
[Question]
[
The WannaCrypt ransomware has struck and it is attacking networks right, left and center. A network is defined by an m\*n binary matrix (a), which has a a[i][j] = 1 if a computer is infected and a[i][j] = 0 if it is not. At the end of each hour, all computers that are a neighbour (which shares a side... |
[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/123878/edit).
Closed 6 years ago.
[Improve this question](/posts/123878/edi... |
[Question]
[
This is much like my [earlier challenge](https://codegolf.stackexchange.com/questions/103105/number-of-straight-chain-alknes-of-given-length), except, this time, order *doesn't* matter.
A straight-chain alk\*ne is defined as a sequence of carbon atoms connected by single (alkane), double (alkene), or... |
[Question]
[
What general tips do you have for golfing in [S.I.L.O.S](http://rjhunjhunwala.github.io/S.I.L.O.S/)? I'm looking for ideas which can be applied to code-golf problems and which are also at least somewhat specific to S.I.L.O.S (e.g. "remove comments" is not an answer).
Please post one tip per answer.
S... |
[Question]
[
In this challenge we'll compute an infinite minimal admissible sequence.
The sequence for this challenge starts with `a(1) = 1`.
We continue this sequence by finding `a(n)` as the smallest possible number such that `a(n) > a(n-1)` and for every prime `p`, the set `{a(i) mod p : 1 ≤ i ≤ n}` has at mos... |
[Question]
[
[You've received a coded message](https://codegolf.stackexchange.com/q/89062/47581) from your ally that you know is encoded with the [VIC cipher](https://en.wikipedia.org/wiki/VIC_cipher). As you know that the VIC cipher is notoriously convoluted, you want to write a program that will decode the VIC ... |
[Question]
[
Previously, we computed the [Bit-Reversal Permutation](https://codegolf.stackexchange.com/q/83373/6710) where we found how the order of indices would be permuted. In that case, we received an input *n* which was the order of the permutation of the indices where the length was 2*n*. However, this time... |
[Question]
[
# Intro
[Cookie Clicker](http://orteil.dashnet.org/cookieclicker/) is a popular browser game in which the player has to click a cookie to gain... Cookies!
The player can buy upgrades which will automatically farm cookies for you. Sometimes a golden cookie will enter the screen, which will provide a... |
[Question]
[
At some point, I bumped into an SO question asking how to implement Perl's trivial hash-of-hashes data structure in Java.
For those who don't know Perl, the hash value can be a scalar or another hash, or technically speaking hash reference. Arbitrary depth. Additional feature offered by Perl is auto... |
[Question]
[
You **love** watching the snow falling outside, but you know it won't be snowing much longer. You could take a video, but decide to make a snow animation because ... um ... you need to practice your animation skills!
## Snow
Snow is simply the `*` symbol here. Half of the snow moves at `1` char per f... |
[Question]
[
This challenge is a slightly different kind of Code Golf challenge. Rather than coding to match IO, you code to match an interface.
### Background
[Finite state machines](https://en.wikipedia.org/wiki/Finite-state_machine) are very useful design models for modeling event-based programming. A state ma... |
[Question]
[
## Introduction
Classes have started! And so does the boredom. I decided to doodle in my notebook and started to draw some dots in (IMO) an aesthetically pleasing way. I came up with these numbers:
[](https://i.stack.imgur.com/3Me2Z.png)
based on the... |
[Question]
[
**This question already has answers here**:
[Calculate π with quadratic convergence](/questions/47912/calculate-%cf%80-with-quadratic-convergence)
(5 answers)
Closed 8 years ago.
Compute 30000 digits of the mathematical constant π, with the fastest code.
Implement in any computer programming l... |
[Question]
[
The [Vigenère cipher](http://en.wikipedia.org/wiki/Vigen%C3%A8re_cipher) is a substitution cipher where the encryption of each letter of the plaintext depends on a different character in a keyword. This stops you using simple methods of frequency analysis to guess the correct substitution. However, t... |
[Question]
[
I've created a new language called "EasyFlow." Your task is to simplify writing [BrainFlow](https://codegolf.stackexchange.com/q/36995/23550) programs by compiling EasyFlow to BrainFlow. That is, you take an EasyFlow program and output a BrainFlow program which does the same thing. EasyFlow is define... |
[Question]
[
Imagine you are given two lists of numbers which are to be interpreted as points on a circle of circumference 1000. Let us say
```
circleA = [10, 24, 44, 175, 321, 579, 618, 841, 871, 979]
circleB = [270, 283, 389, 406, 435, 457, 612, 684, 692, 732]
```
To measure the distance between these two circl... |
[Question]
[
## Short version
[`RC4`](https://en.wikipedia.org/wiki/RC4), designed in 1987, is one of the most famous stream ciphers. This question asks you to practically demonstrate its [2nd byte bias](https://en.wikipedia.org/wiki/RC4#Biased_outputs_of_the_RC4) (for a theoretical proof, see section 3.2 of this... |
[Question]
[
From [Wikipedia](http://en.wikipedia.org/wiki/PESEL):
>
> **PESEL** is the
> national identification number used in Poland since 1979. It always
> has 11 digits, identifies just one person and cannot be changed to
> another one.
>
>
> It has the form of YYMMDDZZZXQ, where YYMMDD is the date of... |
[Question]
[
In The Art of Computer Programming, Knuth describes an algorithm to compute short addition chains. The algorithm works by computing a tree known as the Power Tree. The tree is rooted at 1, and each level is computed from the previous. Suppose we've computed level *k*. Then, for each node (*n*) in lev... |
[Question]
[
*This is the cops thread of this cops and robbers challenge. The robbers thread is [here](https://codegolf.stackexchange.com/questions/264164/hashers-and-crashers-robbers).*
[Related, but hashes numbers instead of strings and uses a different scoring system.](https://codegolf.stackexchange.com/q/5106... |
[Question]
[
Slope fields or direction fields, are a graphical representation of the solutions to a first-order differential equation of a scalar function. A slope field shows the slope of a differential equation at certain vertical and horizontal intervals on the cartesian plane, and can be used to determine the... |
[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/241404/edit).
Closed 2 years ago.
[Improve this question](/posts/241404/edi... |
[Question]
[
# Background
I want to display *rich, vibrant images* on my theoretical fancy custom display, but due to budget constraints, it displays everything in 3-bit colour! Whilst [Regular Dithering](https://codegolf.stackexchange.com/questions/26554/dither-a-grayscale-image) would work, I don't want to sacr... |
[Question]
[
Create a program that interprets the programming language Bucket.
Bucket works on two buckets: the first can hold A and the second can hold B units of liquid. The things you can do with these buckets are:
f: fill bucket A
F: fill bucket B
e: empty bucket A
E: empty bucket B
p: pour units of liquid fr... |
[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/187996/edit).
Closed 4 years ago.
[Improve this question](/posts/187996/edi... |
[Question]
[
A store is having a big sale.
If your price reaches $199 or more, you can reduce it by $100.
**You can buy each product only once.**
Here's an example list of products: (in order to simplify, the names of the products are represented by letters)
```
+------+-------+
| name | price |
+------+---... |
[Question]
[
You are given a list, L, with the length N. L contains N random positive integer values. You are only able to select from the outer edges of the list (left/right), and after each selection every value in the remaining list increase by a factor of the current selection. The goal is to maximize the tot... |
[Question]
[
**This question already has answers here**:
[L€€CH€$! D€AṬH ỊṢ ṢOOṄ! (Length Mapping)](/questions/139049/l%e2%82%ac%e2%82%acch%e2%82%ac-d%e2%82%aca%e1%b9%ach-%e1%bb%8a%e1%b9%a2-%e1%b9%a2oo%e1%b9%84-length-mapping)
(9 answers)
Closed 5 years ago.
# Challenge
Given a positive integer \$n\$, outp... |
[Question]
[
**This question already has answers here**:
[Decode the Void](/questions/119994/decode-the-void)
(7 answers)
Closed 5 years ago.
We define a *tree-like list*, or *trist* for short, as the empty list or a list containing only previously constructed trists.
The *natural numbers* can either inclu... |
[Question]
[
[Quarterstaff repo here with additional quarterbf interpreter](https://github.com/Destructible-Watermelon/Quarterstaff): rather bereft of documentation, however, but it does contain the two interpreters
you can go to <https://tio.run/#quarterstaff> to run quarterstaff programs online. however, the TI... |
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.