text stringlengths 180 608k |
|---|
[Question]
[
[Coming from this sandbox post](https://codegolf.meta.stackexchange.com/a/17058/59642)
This is inspired from an 8th graders math test
# Intro
We have a cube with following corners
```
A(0, 0, 0)
B(1, 0, 0)
C(1, 1, 0)
D(0, 1, 0)
E(0, 0, 1)
F(1, 0, 1)
G(1, 1, 1)
H(0, 1, 1)
```
This cube clearly has 8 c... |
[Question]
[
# Background
[Puzzlang](https://esolangs.org/wiki/Puzzlang) is a derivative of Brainfuck, where the symbol `X` executes a BF command based on three characters on top of it, and anything else does nothing.
The following is the translation table for Puzzlang, where `X` is the literal X and `.` stands f... |
[Question]
[
If you throw an ASCII egg in a given direction, you end up with an **ASCII splat of size *n***. It "starts" with one `o` (the yolk), and continues in a given direction with "lines" consisting of 2 up to *n* `*`'s. The `*`'s are separated by one "space", and the `o` and all the "lines" of `*`'s are se... |
[Question]
[
# Background
In the [game of Nim](https://en.wikipedia.org/wiki/Nim), players alternate removing "stones" from "piles": on each turn, a player must remove between one and all stones from a *single* pile. The object of Nim is to take the last stone or, in the misere variant, to force your opponent to ... |
[Question]
[
I am a robot. I bought [this keyboard](https://images-na.ssl-images-amazon.com/images/I/41P-kEz89OL._SX355_.jpg) because of its easy rectangular layout:
```
~` !1 @2 #3 $4 %5 ^6 &7 *8 (9 )0 _- +=
tab Qq Ww Ee Rr Tt Yy Uu Ii Oo Pp {[ }] \|
Aa Ss... |
[Question]
[
Imagine you have two boxes `B(x)` and `B(y)`, each containing an unknown bit - 0 or 1, and a machine `F` that can X-ray them and produce a third box for `B(x^y)` (*xor*). `F` can also compute `B(x*y)` (*and*). In fact, those are just special cases of the the single operation the machine can perform -... |
[Question]
[
[Cubically](https://github.com/aaronryank/cubically) is a fairly new esoteric language capable of creating short, golf-like answers for a very specific subset of problems. It is unique in that it stores memory in the form of a 3x3 Rubik's cube, making calculations far less trivial than in most langua... |
[Question]
[
# Input
* *verb*, a string that matches the regular expression `([a-pr-vyzıöüçğş]*[aeıioöuü][bcçdfgğhj-nprsştvyz]+|([a-pr-vyzıöüçğş]*[aeıioöuü]){2})(mak|mek)`
* *plural*, a truthy or falsy value
* *person*, an integer having value either 1, 2, or 3
* *tense*, an integer having value either 1, 2, or 3... |
[Question]
[
Given the input of the first number and the second number (both positive integers, zero exluded), determine in how many ways could you make the second out of the first, using following actions: `+1`,`+2` and `*3`. Operations are simply applied from left to right.
Examples:
1. Input: `1 2`. Output: `... |
[Question]
[
Let's do an exercise together, shall we? Simply follow the movements of the stickman. What stickman you ask? The one we are about to create!
Make a program that allows for a string-input only containing integers, and outputs the following nine stick-figures with an interval in between:
```
@ \@/ |@... |
[Question]
[
Let's write the shortest code to perform a simplified variant of the [DoD 5220.22-M Wipe Method](http://pcsupport.about.com/od/termsd/g/dod-5220-22-M.htm) with only two writing passes.
Any programming language accepted, but the use of disk-wiping-oriented libraries is prohibited.
Here's how we are to... |
[Question]
[
Since I am INSANELY hyped for the [Final Fantasy XV Uncovered event](http://www.finalfantasyxv.com/uncovered), I want *you* to write me a program to tell me when it is!!!
# The input
Your take input in the form of `HH:MM XDT`, where `HH` is a number in the range `1-12`, `MM` is a number between `0-60... |
[Question]
[
## Find the Intersection of 2 Sets in Unioned Interval Notation
Given two sets of real numbers described as the union of intervals, output a description of the intersection of these two sets as a union of the same type of interval.
The input sets will always consist of unions of intervals such that ... |
[Question]
[
This challenge is based on a problem described in [*D. Parnas, On the criteria to be used in decomposing systems into modules*](http://repository.cmu.edu/cgi/viewcontent.cgi?article=2979&context=compsci), and elaborated upon in [*J. Morris, Real Programming in Functional Languages*](http://research.m... |
[Question]
[
## What is Toothpick Sequence?
According to [Wikipedia](https://en.wikipedia.org/wiki/Toothpick_sequence)
>
> In geometry, the toothpick sequence is a sequence of 2-dimensional
> patterns which can be formed by repeatedly adding line segments
> ("toothpicks") to the previous pattern in the sequence.... |
[Question]
[
Blackbeard was an English pirate of the early 18th century. Although he was known for looting and taking ships, he commanded his vessels with the permission of their crews. There are no accounts of him ever harming or murdering his captives.
This challenge is in honor of the infamous Blackbeard and i... |
[Question]
[
Jack likes the C programming language, but hates writing expressions like `V=a*b\*h;` to multiply values.
He would like to just write `V=abh;` instead; why should the compiler moan about `abh` being undefined? Since `int a, b, h;` are defined, can't it just deduce multiplication?
Help him implement a... |
[Question]
[
Here is a fairly simple ASCII depiction of an open book:
```
|\
| \
| \
| \
| \__________
| || |
| || Lorem i |
\ || psum do |
\ || lor sit |
\ || amet, |
\ || consect |
\||_________|
```
Notice that the text portion is only on the right page and is 7 characters ... |
[Question]
[
Your challenge today is to refactor JavaScript code. You will take three strings as input; a JavaScript string, a old variable name, and the name you want to refactor it to. For example, an input of
```
"var x = 100; alert(x);", "x", "num"
```
Will output
```
"var num = 100; alert(num);"
```
---
Here... |
[Question]
[
Given an integer n, enumerate all possible full binary trees with n internal nodes. (Full binary trees have exactly 2 children on every internal node). The tree structure should be output as a pre-order traversal of the tree with 1 representing an internal node, and 0 representing an external node (N... |
[Question]
[
A screen consists of some LED segments like such:
[](https://i.stack.imgur.com/7x2CI.png)
The screen can be split into several(maybe one) component. Each component is a segment like above, with varying lengths. These components can b... |
[Question]
[
Note: This is the [radiation-hardening](/questions/tagged/radiation-hardening "show questions tagged 'radiation-hardening'") version of my previous challenge [Pristine Bit Checking](https://codegolf.stackexchange.com/q/182830/76162). This should be *much* more difficult than that one.
Write a program... |
[Question]
[
## Background
[Ada](https://en.wikipedia.org/wiki/Ada_(programming_language)) is a programming language that is not exactly known for its terseness.
However, its array literal syntax can in theory allow for fairly terse array
specifications. Here is a simple EBNF description of the [array literal](ht... |
[Question]
[
I'm surprised this hasn't been posted before!
The [Consistent Overhead Byte Stuffing](https://en.wikipedia.org/wiki/Consistent_Overhead_Byte_Stuffing) (COBS) algorithm is used to delimit byte streams.
We choose a frame marker (we'll use 0x00) and wherever 0x00 occurs in the stream it is replaced with... |
[Question]
[
## Introduction:
I saw there was only [one other badminton related challenge right now](https://codegolf.stackexchange.com/questions/44900/confused-badminton-players). Since I play badminton myself (for the past 13 years now), I figured I'd add some badminton-related challenges. Here the second ([fir... |
[Question]
[
Using ASCII print a section of a hexagon ring tiling.
Here's a small section:
```
/\__/\
/_/ \_\
/\__/\ \__/ /\__/\
/_/ \_\/__\/_/ \_\
\ \__/ /\__/\ \__/ /
\/__\/_/ \_\/__\/
/\__/\ \__/ /\__/\
/_/ \_\/__\/_/ \_\
\ \__/ /\__/\ \__/ /
\/__\/_/ \_\/__\/
\ \__/ /
... |
[Question]
[
Your job is to replace the battery packs on many floating fish tracking
devices in the shortest time. You must leave your base in the base helicopter
and visit each tracker once, then return to the base.
Finding the optimum route is known to be hard, but there is an additional
difficulty! Each tracke... |
[Question]
[
[Order and Chaos](http://en.wikipedia.org/wiki/Order_and_Chaos) is a variant of Tic-Tac-Toe played on a 6x6 board. What makes the game unique, however, is that both players can place either an X or an O! Each turn (starting with Order), a player places an X or O in any unoccupied square.
Winning is... |
[Question]
[
A *binary string* is a string which contains only characters drawn from *01*. A *balanced binary string* is a binary string which contains exactly as many *0*s as *1*s.
You are given a positive integer *n* and an arbitrary number of masks, each of which is *2n* characters long, and contains only ch... |
[Question]
[
>
> **Edit:** I will award a **100-reputation bounty** for the first solver of the **bonus puzzle** at the end of the question!
>
>
> I will add the bounty to the question only when the answer appears as this bounty has no deadline.
>
>
>
Given a non-decreasing list of one-digit positive intege... |
[Question]
[
Take an array of integers containing negative numbers, positive numbers and zeros. Group it **with one iteration and in place** such that all of the negative numbers come first, followed by all of the zeros, followed by all of the positive numbers.
Example:
```
Input: 5, 3, 0, -6, 2, 0, 5
Output: -6... |
[Question]
[
A well-known puzzle involves counting how many squares can be made using the points on a 3x3 grid:
```
. . .
. . .
. . .
```
The answer is 6 — four small squares, one large square, and one square formed from the top, left, bottom, and right pegs, with edges along the *diagonals* of the squares.... |
[Question]
[
I seem to have gotten myself into a bit of a pickle. Literally. I dropped a bunch of pickles on the floor and now they're all scattered about! I need you to help me collect them all. Oh, did I mention I have a bunch of robots at my command? (They're also all scattered all over the place; I'm really b... |
[Question]
[
Most of you probably know the C major scale:
```
C D E F G A B C
```
The major scale is characterised by the [intervals](http://en.wikipedia.org/wiki/Interval_%28music%29) between adjacent notes, which measured in [semitones](http://en.wikipedia.org/wiki/Semitone) are:
```
2 2 1 2 2 2 1
```
From thes... |
[Question]
[
I had fun solving this, so I offer this golf challenge.
The objective of this **golf** is to find the largest prime number that can be constructed using the given instructions.
You should accept 3x3 grid of single digits as input. (It's up to you how you want to do that, but specify that in your prog... |
[Question]
[
Did you know that [Heronian Tetrahedra Are Lattice Tetrahedra](https://www.maa.org/sites/default/files/pdf/upload_library/2/Marshall2-Monthly-2014.pdf)? A *Heronian* tetrahedron is a tetrahedron where
1. the length of each edge is an integer,
2. the area of each face is an integer, and
3. the volume ... |
[Question]
[
This is a program I wrote in JavaScript to validate some inputted credentials, with an intentional vulnerability. The `credentials_validator` function takes an object as input, with usernames and passwords. It returns a function, which takes a username and password and returns `true` if the credentia... |
[Question]
[
[Quote notation](https://en.wikipedia.org/wiki/Quote_notation)[[1]](https://www.cs.toronto.edu/%7Ehehner/ratno.pdf) is a way of expressing rational integers in a precise, finite manner, based on the concept of [\$p\$-adic numbers](https://en.wikipedia.org/wiki/P-adic_number). The notation is in the f... |
[Question]
[
After all assignments are submitted, a dictionary is created that maps student number to the hash of their file.
This dictionary, or hashmap, or mapping (whatever your language calls it) will look as follows:
`{100: "aabb", 104: "43a", 52: "00ab", 430: "aabb", 332: "43a"}`
The key is the student numb... |
[Question]
[
# Introduction
Your task is to generate the first 1000 terms in the continued fraction representation of digit-wise sum of square root of 2 and square root of 3.
In other words, produce exactly the following list (but the output format is flexible)
```
[2, 6, 1, 5, 7, 2, 4, 4, 1, 11, 68, 17, 1, 19, 5... |
[Question]
[
*Note: In this post, the terms 'character' and 'color' mean essentially the same thing*
This image:
[](https://i.stack.imgur.com/T7mxF.png)
can be represented as
```
....'''333
.eeee'''3e
..dddd33ee
%%%dd####e
```
(mapping colors to ascii characters... |
[Question]
[
*See also: Granma loves Ana*
You will be given a string of lowercase ASCII letters. Using [this dictionary file](https://hastebin.com/raw/itudojikot) (UPDATED), your task is to solve the anagram. To solve an anagram, you must output all words or groups of words that can be formed using each letter fr... |
[Question]
[
Given two numbers, print a page with an "X" in the specified location (±10%).
The numbers must be either percentages or fractions of the page's print area dimensions, e.g. `[25,75]` or `["15%","0%"]` or `[0.33,1]`. You do not have to consider margins. Just remember to state which number is width, and... |
[Question]
[
Given a number as input, determine how many significant figures it has. This number will should be taken as a string because you have to do some special formatting. You'll see what I mean soon (I think).
A digit is a sig-fig if at least one of the following apply:
* Non-zero digits are always signif... |
[Question]
[
Being a Haskell hacker, I prefer pointfree notation over pointful. Unfortunately some people find pointfree notation hard to read, and I find it hard to get the correct number of parentheses when I write in pointful.
Help me convert code written in pointfree to pointful notation!
## About
In pointfre... |
[Question]
[
# Introduction
You are sitting with your coworker, having lunch, and bragging to him/her about the latest and supposedly greatest project you've been working on. Getting sick and tired of your constant showcase of egoism, he/she gives you a challenge just so you'll shut up. Being the egoistic and hap... |
[Question]
[
Inspired by [Draw a timeline](https://codegolf.stackexchange.com/questions/73477/draw-a-timeline).
Given a timeline of events, output the date for each event.
A timeline will be given in the form
```
2000
--AF-C-------E--D---B--
```
Where the first line shows a known point in time. The known year... |
[Question]
[
A while ago I purchased a new wallet which is able to hold 8 cards (4 on both side). However, I seem to have way more cards than that and I need to make choices on which ones I want to carry with me. Some cards I use more often than others, but the cards I prefer to carry with me are not necessarily ... |
[Question]
[
# Background
[Hex](https://en.wikipedia.org/wiki/Hex_%28board_game%29) is a two-player abstract strategy game played on a `K×K` rhombus of hexagonal tiles.
Two opposite sides of the rhombus are colored white, and the other two black, and the two players, black and white, take turns in placing a token... |
[Question]
[
I previously asked [a question](https://codegolf.stackexchange.com/questions/51436/calculate-a-probability-exactly-and-quickly) for how to compute a probability quickly and accurately. However, evidently it was too easy as a closed form solution was given! Here is a more difficult version.
This task ... |
[Question]
[
On my website, users enter their date of birth in the style `xx.xx.xx` - three two-digit numbers separated by dots. Unfortunately, I forgot to tell the users exactly which format to use. All I know is that one section is used for the month, one for the date, and one for the year. The year is definite... |
[Question]
[
Yes, the good old GIF. Loved for its versatility, hated for its patents and partly obsoleted due to its limitations (and patents), GIF consists, at the core, of a color palette and a palette-indexed image compressed using the LZW algorithm.
Your task is to write a program that reads an image in ASCII... |
[Question]
[
# Input
Your input is a single string, separated by newlines into `2n+1` lines of length `2n+1`, for some integer `n ≥ 0`. The integer `n` is not part of the input; you'll have to compute it from the string. The lines are composed of the "direction characters" `>^<v`. If newlines pose a problem, you ... |
[Question]
[
Your task this time is to implement a variant of the POSIX [`expand(1)`](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/expand.html) utility which expands tabs to spaces.
Your program is to take a *tabstop specification* and then *read input on standard in* and replace tab characters in th... |
[Question]
[
Your goal is to input any arbitrary text, such as:
```
This is some text
```
And output that text formatted as code for posts (SE-flavored Markdown) and comments (mini-Markdown) on Stack Exchange, such as:
```
`This is some text`
`This is some text`
```
However, it gets trickier. Consider the input:
... |
[Question]
[
My home town, [Rhyl](http://maps.google.co.uk/maps?q=rhyl&um=1&ie=UTF-8&hq=&hnear=0x48652618418b2481:0xfce1c44350b2b6e1,Rhyl,+Denbighshire&gl=uk&ei=xBELT6mLBdC3hAe7pICxCQ&sa=X&oi=geocode_result&ct=title&resnum=3&ved=0CGIQ8gEwAg), has a one-way traffic system which seems to have been designed to keep ... |
[Question]
[
In a given 2d grid of positive integers (representing different types of "bubbles"), there are one of two actions that you can do each "step". You can either:
1. Pop an island (a connected group of bubbles - two bubbles that are diagonally adjacent are not considered connected) of the same type of bu... |
[Question]
[
# Introduction to Mahjong tiles
Mahjong (麻雀) is a board game that originates from China. Mahjong tiles used in this challenge are in Unicode points U+1F000 – U+1F021:
```
🀀🀁🀂🀃🀄🀅🀆🀇🀈🀉🀊🀋🀌🀍🀎🀏🀐🀑🀒🀓🀔🀕🀖🀗🀘🀙🀚🀛🀜🀝🀞🀟🀠🀡
```
They are categorized as:
* **Winds** (風牌): 🀀(East Wind),... |
[Question]
[
This is a follow up to [Count arrays that make unique sets](https://codegolf.stackexchange.com/questions/174407/count-arrays-that-make-unique-sets) . The significant difference is the definition of uniqueness.
Consider an array `A` of length `n`. The array contains only positive integers. For example... |
[Question]
[
Have fun with this one, [The Powder Toy](https://powdertoy.co.uk/) is a interesting challenge for golf, especially with filt logic.
The thing that makes TPT a challenge is the many many many many ways to approach a problem: `Should I use Cellular Automaton rules, SWCH logic, Filt logic, subframe filt... |
[Question]
[
### Input:
A 2D array containing two distinct (optional) values.
I'll use **0** and **1** when explaining the rules. The input format is of course flexible.
---
### Challenge:
Zeros are water, and ones are islands. In order to ensure loneliness, your task is to surround all islands with water by inse... |
[Question]
[
In [this](https://codegolf.stackexchange.com/q/135127/56656) question I defined a "chain" function as a function that:
* is a permutation, meaning that every value maps to and is mapped to by exactly one value.
* and allows any value can be obtained from any other value by repeated applications of th... |
[Question]
[
[Drunk Uncle](https://www.youtube.com/watch?v=PuduYMzY3Dc) (sorry M.E. and AUS for region lock) is a fictional character from Saturday Night Live. He often confuses words for others that sound like them. For this challenge you need to convert normal speech into drunkspeak.
# Algorithm
Translating to ... |
[Question]
[
This is [cops-and-robbers](/questions/tagged/cops-and-robbers "show questions tagged 'cops-and-robbers'"). This is the **Cops** thread. For the robbers thread, go [here](https://codegolf.stackexchange.com/questions/128066/stealing-sequences-robbers).
I've noticed a number of OEIS (On-line Encyclopedi... |
[Question]
[
Your task is simple: tell me who wins the battle of the letters.
# The troops
There are three different "troops" in this battle, summarized by this table.
```
name | health | damage
A 25 25
B 100 5
C 10 50
```
You may use any three unique characters to rep... |
[Question]
[
## Challenge
Write two programs that:
* run in two different programming languages.
+ These may not be two versions of one language.
* when one program is run, it outputs the second program, and vice versa.
* The two programs must be different (no polyglots).
Here's the catch though:
* The programs ... |
[Question]
[
## Challenge
Given the high resolution molecular mass of an organic molecule, output the molecule's molecular formula.
## Explanation
The input will be a single number to three decimal places of precision, the relative molecular mass of the molecule.
Here, the molecular mass is defined as the sum of ... |
[Question]
[
Logo is a programming language that was designed back in 1967 that has great potential for creating graphics in relatively few bytes compared to other languages.
Logo is an educational programming language that utilizes [Turtle Graphics](https://en.wikipedia.org/wiki/Turtle_graphics).
There are multi... |
[Question]
[
## Challenge
Given a SE user's ID, output the sum of their reputation from across all of the Stack Exchange networks the user has signed up to.
## Rules
If a user has 101 or less reputation on a site, count it as zero in the sum.
***You should not count Area 51 rep or hidden communities!!***
URL sho... |
[Question]
[
>
> **Note:** This is based on [Two roads diverged in a yellow wood (part 2)](https://codegolf.stackexchange.com/questions/114379/two-roads-diverged-in-a-yellow-wood-part-2), a previous challenge of mine. Because of the popularity of that question and [Two roads diverged in a yellow wood (part 1)](h... |
[Question]
[
# XKCD Comic:[enter image description here](https://i.stack.imgur.com/U7Hdw.png)
---
# Goal:
Given a date, the current Dow Opening, and your current coordinates as a rounded integer, produce a "geohash."
# Input:
Input through any reasonable means (STDIN, function argument, flag, etc.) the following:... |
[Question]
[
As a terrible Latin student for several years I have learned to hate many things about Latin. However there is one thing I love.
Latin scansion.
[Scansion](https://en.wikipedia.org/wiki/Scansion) is the act of determining the meter of a particular line of poetry. For Latin this means demarcating each... |
[Question]
[
# Lets Play Kick The Can!
## Although Moogie is the current winner, if anyone can take his crown they are encouraged to do so
Kick the can is a children's game. Involving one defender, and multiple attackers. Today it is no longer such a game! Your job is to write a bot that plays it, to win, [king-o... |
[Question]
[
Back in the day, all the 1337 kids used text faders in chatrooms. I don't know about you guys, but I want to feel cool like they did. The only problem is that their old scripts and applications were heavily coupled to the software they were made for, so I can't just make use of this amazing functiona... |
[Question]
[
I have not laughed as much from Stack Exchange content as I have from [this](https://english.stackexchange.com/q/312686/106629). I think you all will enjoy this challenge, as it is inspired by what is over there.
You will write a function or program that is code-golf, i.e. it would have to be as shor... |
[Question]
[
A Norwegian Birth Number consists of 11 digits, composed the following way:
```
DDMMYYiiikk
```
* `DD` is the day (from 01-31)
* `MM` is the month (from 01-12)
* `YY` is the year (from 00-99). It's not differentiated between 1900 and 2000
* `iii` is the "individual number"
* `kk` are two control digi... |
[Question]
[
Inspired by <https://puzzling.stackexchange.com/questions/24334/to-catch-a-thief>
You are given an `n` by `n` (`n` itself is optional input) grid filled with `0`s and `1`s (or any other character of your choice). You aim is to make every cell the same (either `0` or `1`). You can make a series of mov... |
[Question]
[
# Introduction
You are the manager of the electronics department in a major retail store and the biggest sales day of the year is this [Friday](https://en.wikipedia.org/wiki/Black_Friday_%28shopping%29). To help manage the crowds, your store is implementing a ticket system for the biggest deals, wher... |
[Question]
[
The goal of this challenge is to create a program that takes in a matrix and outputs its reduced row-echelon form.
>
> A matrix is in reduced row-echelon form if it meets all of the
> following conditions:
>
>
> 1. If there is a row where every entry is zero,
> then this row lies below any othe... |
[Question]
[
Write a term on the pure untyped lambda calculus that, when applied to a [church-encoded](https://en.wikipedia.org/wiki/Church_encoding) list of numbers, returns it with its numbers sorted in ascending or descending order. Church lists and numbers must be encoded as folds for their usual ADTs:
```
--... |
[Question]
[
You are given a nonary (base 9) non-negative integer consisting of the digits 0 through 8 as usual. However the number of digits in this number (with no leading zeros) is a prefect square.
Because of this, the number can be arranged in a square grid (with the reading order still preserved).
Example w... |
[Question]
[
# preface
In a very heated situation you have to go even further with golfing.
(e.g. in a challenge where your answer is 100 characters long and it is just embarrassing that you couldn't make it 99)
In that case, from now on you use the winner's algorithm of this challenge :)
# goal
You have to... |
[Question]
[
Make the shortest proxy server.
### Input/Output Specifications
Client:
* Input: a port number (32-bit integer) **(,) or (space)** a url (see test cases)
* Output: html source of the url
Server:
* Input: port to listen to (32-bit integer)
* Output: **REC** when input is received from the client, **OK... |
[Question]
[
Suppose we want to encode a large integer \$x\$ as a list of words in such a way that the decoder can recover \$x\$ regardless of the order in which the words are received. Using lists of length \$k\$ and a dictionary of \$n\$ words, there are \$\binom{n+k-1}k\$ different multisets possible ([why?](h... |
[Question]
[
[Hearts](https://en.wikipedia.org/wiki/Black_Lady) is a 4-player game that uses the following scoring rules:
1. Everyone starts with *score* 0.
2. Each round every player gets a non-negative amount of *points*. The sum of the points is 26, and at least one player gets 13 or more points.1
3. The point... |
[Question]
[
This [code-golf](/questions/tagged/code-golf "show questions tagged 'code-golf'") challenge (and test cases) are inspired by the work of Project Euler users amagri, Cees.Duivenvoorde, and oozk, and Project Euler Problem 751. (And no, this isn't on OEIS). [Sandbox](https://codegolf.meta.stackexchange.... |
[Question]
[
The objective is to make the smallest SB3 file that can simply be imported into Scratch 3.0 without a "The project file that was selected failed to load" error. Any means can be used, like editing the JSON or better compression. Here's where I am with project.json, the only file inside mine:
```
{"ta... |
[Question]
[
*Because [ARM is the July 2021 LoTM](https://codegolf.meta.stackexchange.com/questions/23648/language-of-the-month-for-july-2021-arm), I figured I'd create the tips thread.*
ARM is probably the most successful architecture for the digital world. From mobile phones to supercomputers, ARM is everywhere... |
[Question]
[
I have a bunch of ASCII art that I have recovered from a failed hard drive. Unfortunately, all of the newlines were stripped out, and I don't know the resolution of the original artwork. I do know that each one was originally rectangular, but to make matters worse, all the white space at the beginnin... |
[Question]
[
## Input:
An `NxM` grid or multi-line string (or other reasonable input-format), containing only printable ASCII (unicode range `[32,126]`).
## Output:
The amount of closed polygons of the same character that can be found, with two special rules:
* Spaces are wildcards and can be used (multiple times... |
[Question]
[
inspired by [this chat conversation](https://chat.stackexchange.com/rooms/240/conversation/satisfying-numbers)
A *satisfying number* is a number whose decimal representation is of the form `abx`, with the following properties:
* `x` is the longest trailing repeating suffix, or the last digit if there... |
[Question]
[
[<< Prev](https://codegolf.stackexchange.com/questions/150150/advent-challenge-7-balance-the-storage-carts)
Thanks to the PPCG community, Santa now has balanced his storage carts. Now, he needs to move them into the transport docks so that they can be sent to the loading bays. Unfortunately, the trac... |
[Question]
[
[Muriel](https://esolangs.org/wiki/Muriel) is a language where the only way to loop is to create a quine and execute it. Your job is to create your own language with this property and an implementation of it in a pre-existing language.
We will define a Muriel-like language like as follows:
1. It has ... |
[Question]
[
### Purpose
The idea is to provide the code necessary to map a 32-bit integer to/from a pronouncable word of 9 characters maximum. That could be useful, for example, to make a serial number easier to remember, or type in a form.
Both the method for translating an integer to the corresponding word and... |
[Question]
[
Your task is to build a bridge to connect two cliffs given an input `d`, the distance apart. `d` will always be even
However, the bridge needs columns to hold it up. Each column can hold a max of 6 spaces on each side.
For this example:
```
________ ________
| ... |
[Question]
[
## Task
Given an image with a line on it, produce or display an image with the line extended till the edge of image. The line is black and the background is white. The image size is `100x100` The image comes in any reasonable format (e.g. `jpg`, `png`, `ppm`, `bmp`).
## Line format
I'm using a simpli... |
[Question]
[
# Calculate the p-adic norm of a rational number
Write a function or a program, that takes 3 integers `m,n,p` (where `p` is a positive prime) as input, that outputs the p-adic norm (denoted by `|m/n|_p`) as a (completely reduced) fraction. Fermat is known to have only very small margins, but what is ... |
[Question]
[
You work for a company that wants to make a user-friendly calculator, and thus you have been tasked with adding the ability for users to use "numerical shorthands," that is, letters that represent numerical values, such as `k` for `1000`. Because your company wants to save money on storage in said ca... |
[Question]
[
I designed a language in which pointer arithmetic is the main tool of programming.
Here are some examples.
```
(print 0 to 8)
=9[>1=9-*-1.>-1-1]
(print 1 to 10 with spaces in between, character literal extension used)
=1[.>1=10-*-1[>1=' '!>-2+1;-2];1]='\n'!
(compute the factorial of 10)
=10>1=*-1-1[>... |
[Question]
[
Today your goal is to decrypt a secret message using [AES](https://en.wikipedia.org/wiki/Advanced_Encryption_Standard). Given a ciphertext and key you will decrypt and print the message.
---
1. Your program may be in any language. It will be run with input on stdin, and its output on stdout will be c... |
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.