text stringlengths 180 608k |
|---|
[Question]
[
Your task is to write a program that makes your screen appear to have a bad pixel.
You should choose exactly one pixel on the screen, and exactly one channel between red, green and blue, and make its value either always 0 or always maximum (usually 255). The values of other channels should be the same ... |
[Question]
[
Inspired by [this question](https://codereview.stackexchange.com/questions/117174/write-a-function-named-issuper-that-returns-1-if-its-array-argument-is-a-issuper) from our rivals friends over at Code Review.
# Definitions
A *super array* is an array where each new element in the array is larger than t... |
[Question]
[
Minecraft has a fairly unique lighting system. Each block's light value is either one less than the brightest one surrounding it, or it is a light source itself. Your task is to write a method that takes in a 2D array of light source values, and then returns a 2D array with spread out lighting, where 0... |
[Question]
[
This challenge is inspired by [xkcd](https://xkcd.com/612/):
[ appears and explains that the exit lies in front of you, but that between you and the exit is a series of challenges. As you wander forward you realize that all of the so-called *challenges* ar... |
[Question]
[
Ah, Tinder . . . the app that takes the code golf approach to online dating. With just a few well-chosen right swipes and a bit of luck (or a cute puppy pic), you too could have more matches than [/(?!)/](https://codegolf.stackexchange.com/a/18446/92901).
This [code-golf](/questions/tagged/code-golf "s... |
[Question]
[
>
> User CarpetPython posted [a new take on this problem](https://codegolf.stackexchange.com/q/42215/8478) which puts a much bigger focus on heuristic solutions, due to an increased search space. I personally think that challenge is much nicer than mine, so consider giving that one a try!
>
>
>
Vec... |
[Question]
[
Imagine the following scenario: you are playing battleships with a friend but decide to cheat. Rather than moving a ship after he shoots where your ship used to be, you decide not to place any ships at all. You tell him all his shots are misses, until it is impossible to place ships in such a way.
You ... |
[Question]
[
## Input
* A binary matrix \$M\$ representing the walls of a dungeon.
* The position \$(x,y)\$ of the player within the dungeon.
* The direction \$d\$ that the player is currently facing (0 = North, 1 = East, 2 = South, 3 = West)
## Output
A pseudo-3D representation of the walls that are in the field o... |
[Question]
[
In Vernor Vinge's excellent and fascinating book *A Deepness in the Sky*
(which, by the way, I highly recommend1), the *Qeng Ho*, a culture
that spans various star systems, has no notion of "days," "months," "years,"
etc., and hence has a unique timekeeping system that measures time entirely in
seconds... |
[Question]
[
**Let us take a break from the brain-wrecking questions and answer some of the simpler ones**
You have recently read something extremely funny, and want to express your laughter to the world! *But how can you?*
## Task
You have to display the string:
`Lololololololololololololololololololololololololol... |
[Question]
[
**Closed**. This question needs to be more [focused](/help/closed-questions). It is not currently accepting answers.
Closed 7 years ago.
**Locked**. This question and its answers are [locked](/help/locked-posts) because the question is off-topic but has historical significance. It is not currently ... |
[Question]
[
(Title with thanks to @ChasBrown)
[Sandbox](https://codegolf.meta.stackexchange.com/a/17585/56555)
**The Background**
This challenge is inspired by a question that I recently posted on [Puzzling Stack Exchange](https://puzzling.stackexchange.com/questions/81925/sum-letters-are-not-two-different). Plea... |
[Question]
[
Write a program or function that finds the number of zeroes at the end of `n!` in base 10, where `n` is an input number (in any desired format).
It can be assumed that `n` is a positive integer, meaning that `n!` is also an integer. There are no zeroes after a decimal point in `n!`. Also, it can be ass... |
[Question]
[
### Goal
Write a function or program sort an array of integers in descending order by the number of 1's present in their binary representation. No secondary sort condition is necessary.
### Example sorted list
(using 16-bit integers)
```
Dec Bin 1's
16375 0011111111110111 ... |
[Question]
[
# Your very own "for" instruction
Assuming you have the following input : `a, b, c, d`
Input can be in one-line using any format "a/b/c/d" or "a,b,c,d" etc..
You can also have 4 inputs.
You must code the following behaviour (pseudo-code here) :
```
var i = <a>
while (i <b> <c>)
print i
i = i + ... |
[Question]
[
Output or display the following three lines of text, exactly as they are shown below. A trailing newline is accepted.
```
bC#eF&hI)kL,nO/qR2tU5wX8z
A!cD$fG'iJ*lM-oP0rS3uV6xY9
aB"dE%gH(jK+mN.pQ1sT4vW7yZ
```
That block of text is the same as the one below, but where the n'th column is rotated n times do... |
[Question]
[
## Challenge
Write \$2 \le n \le 10\$ distinct, valid non-halting full programs in your language of choice. If all of them are concatenated in order, the resulting full program should be a valid halting program, but if any of them are left out, the result should still be a valid non-halting program.
Mo... |
[Question]
[
### Monopoly Board
For this code-golf challenge we will be building the board game Monopoly.
### Rules:
* Take no input.
* Output a 11x11 board where each ASCII character forming the board is the first letter of each space of the U.S. version of the Monopoly board.
* The characters must be separated by... |
[Question]
[
Given some finite list, return a list of all its prefixes, including an empty list, in ascending order of their length.
(Basically implementing the Haskell function [`inits`](http://hackage.haskell.org/package/base-4.11.1.0/docs/Data-List.html#v:inits).)
### Details
* The input list contains numbers (o... |
[Question]
[
Display the 12 numbers on a clock face exactly like this:
```
12
11 1
10 2
9 3
8 4
7 5
6
```
To better see the grid, here's one with dots:
```
........ |
[Question]
[
There was [a challenge](https://codegolf.stackexchange.com/questions/125470/multiply-two-strings) up a while ago about multiplying strings. It showed us how we can multiply not only numbers, but also strings. However, we still can't multiply a number by a string properly. There has been [one attempt](h... |
[Question]
[
An [Octothorpe, (also called number sign, hash or hashtag, or pound sign)](https://en.wikipedia.org/wiki/Number_sign) is the following ASCII character:
```
#
```
Isn't that a fun shape? Lets make bigger versions of it! So here is your challenge:
>
> Given a positive integer **N**, output an ASCII hash... |
[Question]
[
Write a program or function that duplicates letters in a word, so that all the duplicated letters arranged from left to right in the word would form the input array.
For example:
```
input: chameleon, [c,a,l,n]
output: cchaamelleonn
```
## Input
* The starting word (e.g. `chameleon`)
* An array of char... |
[Question]
[
Your task is simple: write a program that receives an integer as input and outputs it if it was odd, and does nothing otherwise (not halting is allowed). The challenge is, that you can only use odd bytes.
You can optionally append a trailing newline to the output.
This is code-golf, shortest answer in ... |
[Question]
[
### A simple one:
Take a positive integer **n** less than 1000, and output the integers from **1** to **n** interleaved with the integers from **n** to **1**. You must concatenate the numbers so that they appear without any delimiters between them.
### Test cases:
```
n = 1
11
n = 4
14233241
n = 26
12... |
[Question]
[
A Geiger counter is a device that is used to detect radiation.
We will be making a Geiger counter program.
As we all know, when radiation hits a computer program it removes exactly 1 byte at random. So a Geiger counter program is a program that itself does nothing, but when any byte is removed the modi... |
[Question]
[
Not to be confused with [Find the factorial!](https://codegolf.stackexchange.com/questions/607/find-the-factorial)
## Introduction
The factorial of an integer `n` can be calculated by
$$n!=n\times(n-1)\times(n-2)\times(...)\times2\times1$$
This is relatively easy and nothing new. However, factorials ca... |
[Question]
[
This challenge is about implementing [Shm-reduplication](https://en.wikipedia.org/wiki/Shm-reduplication), originating in Yiddish, where one takes a word, duplicates it, and replaces the first syllable in the second word with "Shm" in order to indicate that one does not care. Some examples include:
* "... |
[Question]
[
A simple challenge for your Monday evening (well, or Tuesday morning in the other half of the world...)
You're given as input a nested, potentially ragged array of positive integers:
```
[1, [[2, 3, [[4], 5], 6, [7, 8]], 9, [10, [[[11]]]], 12, 13], 14]
```
Your task is to determine its depth, which is ... |
[Question]
[
In the [Anno video game series](https://en.wikipedia.org/wiki/Anno_(series)) there are 6 games with a 7th one announced for early 2019. Their titles always feature a year in a specific pattern:
`Anno 1602, Anno 1503, Anno 1701, Anno 1404, Anno 2070, Anno 2205, Anno 1800`
* The digital sum is always 9.
... |
[Question]
[
[Related but very different.](https://codegolf.stackexchange.com/questions/64330/reverse-boustrophedon-text)
A [boustrophedon](https://en.wikipedia.org/wiki/Boustrophedon) is a text where every other line of writing is flipped or reversed, with reversed letters.
In this challenge, we will just reverse ... |
[Question]
[
Write a cat program, a quine, and a Hello World in the same language such that when two specific programs of the three are concatenated in a certain order, you get the third program. It does not matter which program is the first, second, and third are as long as all three types are represented once eac... |
[Question]
[
Draw lines between every pair of distinct points for `n` points arranged in a circle, producing something like the below result. Shortest code (in bytes) wins! Your lines don't have to be transparent, but it looks better that way. The output must be a vector graphic, or be an image at least 600 pixels ... |
[Question]
[
Given a set of letters, output all strings made of those letters. (This is [Kleene star](https://en.wikipedia.org/wiki/Kleene_star) of the set.) For example, for `{'a','b'}`, the strings are:
```
'', 'a', 'b', 'aa', 'ab', 'ba', 'bb', 'aaa', 'aab', ...
```
**Input:** A non-empty collection of distinct l... |
[Question]
[
We are going to fold a list of integers. The procedure to do so is as follows, If the list is of even length, make a list of half of its length where the nth item of the new list is the sum of the nth item of the old list and the nth-to-last item of the old list. For example if we had the list
```
[1 2... |
[Question]
[
*Originally [sandboxed](https://codegolf.meta.stackexchange.com/a/19105/78410) by [@xnor](https://codegolf.meta.stackexchange.com/users/20260/xnor)*
Left-or-right is a very simple language @xnor made up. Its expressions are made of arrows `<` (left), `>` (right), and parentheses. The goal is to evaluat... |
[Question]
[
## Challenge:
Given a number, take the largest prime strictly less than it, subtract it from this number, do this again to this new number with the biggest prime less than it, and continue doing this until it's less than 3. If it reaches 1, your program should output a truthy value, else, the program s... |
[Question]
[
## Background
**HQ0-9+-INCOMPUTABLE?!** is a half-joke programming language introduced in [Internet Problem Solving Contest 2011, Problem H](https://ipsc.ksp.sk/2011/real/problems/h.html).
>
> HQ9+ is an esoteric programming language specialized for certain
> tasks. For example, printing “Hello, world... |
[Question]
[
You are little speck on a Cartesian plane. Pondering your existence, you decide to roam around your plane and touch things. You notice that every coordinate pair you visit has a light switch. To entertain yourself, you decide to toggle every switch that you come across.
**The Challenge**: Create a prog... |
[Question]
[
When I was a kid, and wanted to count the dollar bills in my life savings, I would count out loud:
>
> one, two, three, four, five, six, seven, eight, nine, ten;
>
> eleven, twelve, thirteen, fourteen, fifteen, sixteen, seventeen, eighteen, nineteen, twenty;
>
> twenty-one, twenty-two, twenty-... |
[Question]
[
Correct a single-letter typo in a fixed text.
**Input:** The paragraph below but with exactly one typo, where a single letter `a-zA-Z` is replaced by a different letter `a-zA-Z`. To be clear, the letter isn't replaced everywhere it appears, but just in that one place. For example, the first word "In" m... |
[Question]
[
It is fairly simple to, given a number `n`, create a range from `0` to `n-1`. In fact, many languages provide this operation as a builtin.
The following CJam program reads an integer, and then prints out such a range ([Try it online!](https://tio.run/##S85KzP3/vyhT5/9/QwMDAA "CJam – Try It Online")):
`... |
[Question]
[
## Overview
The cover of a book will be provided in the following ASCII format:
```
______
| |
| |
| |
| |
------
```
The input can be in any reasonable format (eg. a list of strings, a nested list of characters, etc.)
Inside the "borders" of the cover, other printable ascii characters migh... |
[Question]
[
Your challenge is to write a program or function that, when given two strings of equal length, swaps every other character and outputs/returns the resulting strings in either order.
## Examples
```
"Hello," "world!" --> "Hollo!" "werld,"
"code" "golf" --> "codf" "gole"
"happy" "angry" --> "hnpry" "aagp... |
[Question]
[
## Challenge
Given two digits 0-9 as input, output a domino (from the [double-nine domino set](http://www.domino-games.com/domino-rules/double-nine.html)) with these number of pips (dots) on the two faces. The ten possible faces look like this (separated by pipes):
```
| | o| o|o o|o ... |
[Question]
[
[Thanksgiving](https://en.wikipedia.org/wiki/Thanksgiving_(United_States)) in the United States is coming up on November 24th. Many people will have a large dinner with their families, traditionally including turkey and many side dishes. This typically means the family members must coordinate who's goi... |
[Question]
[
GolfScript gets its own way far too often and I feel that a repository of handy hints for golfing in J might help in the fight against the evil empire. What tips do you have for making this already terse language shorter?
For those wanting to learn J, the obvious place to begin is the [jsoftware](http:... |
[Question]
[
# 4-state barcodes
Many postal services (Royal Mail UK, Canada Post, US Mail, etc) use a 4-state barcode to encode information about their mail. Rendered in ASCII, it may look something like this:
```
| | | | | | | | | |
| | | | | | | | | | | | | | | | |
| | | | | | | |
```
A ... |
[Question]
[
Everybody knows *pi* the mathematical constant, the ratio of a circle's circumference to its diameter.
```
3.14159265358979323846264338327950288419716939937510...
```
You probably also know *e* the mathematical constant, the base of a natural logarithm.
```
2.7182818284590452353602874713526624977572470... |
[Question]
[
Your program must take as input a line of characters, like this:
```
@+.0
```
And output the characters sorted by how dark they are, like this:
```
.+0@
```
Requirements:
* You must use a monospaced font for darkness detection.
* You must find out how many pixels each character takes up. You must actua... |
[Question]
[
We all know the age-old debate - should strings be length-prefixed or should they be null-terminated? Well, you've run into a blob of binary data and apparently whoever made it decided that the best solution would be a compromise and length-terminated their strings.
For the purposes of this challenge, ... |
[Question]
[
Write a program that, for the numbers 1 through 255, prints out BF code that will produce the given number in some byte of the array, plus a newline.
For example, the first four lines of the output could (and most likely will) be:
```
+
++
+++
++++
```
The winner will be the smallest: `source code + ou... |
[Question]
[
Given a positive integer ***N***, your task is to return the number of steps required by the following algorithm to reach ***N***:
1. Find the smallest triangular number ***Ti*** such that ***Ti ≥ N***. Build the corresponding list ***L = [ 1, 2, ..., i ]***.
2. While the sum of the terms of ***L*** is... |
[Question]
[
There's something wrong with your keyboard. The `Shift` key has a mind of its own. Every time you type a character you have no idea whether it will come out shifted or not (though it is 50-50). Besides the standard character keys, nothing on the keyboard is functional. There is no mouse or other means ... |
[Question]
[
In this challenge, you need to solve 4 different tasks using the same set of characters. You can rearrange the characters, but you can't add or remove characters.
The winner will be the submission that solves all tasks using the smallest number of characters. All tasks must be solved in the same langu... |
[Question]
[
**This question already has answers here**:
[Analog is Obtuse!](/questions/187245/analog-is-obtuse)
(19 answers)
Closed 4 years ago.
Given the time in 24 hour format (`2359` = `11:59pm`) return the angle between the minute and hour hands on a standard clock (*on the face plane, so don't just out... |
[Question]
[
**The Problem**
A doomsday scenario is described by three numbers on a single line, `n`, `m`, and `p`. Following that line are `n` lines with `m` values per line. Each value represents the total units of water each cell can hold.
The following `p` lines describe the weather for the next `p` days. 1 uni... |
[Question]
[
A simple but hopefully not quite trivial challenge:
Write a program or function that adds up the `k`th powers dividing a number `n`. More specifically:
* Input: two positive integers `n` and `k` (or an ordered pair of integers, etc.)
* Output: the sum of all of the positive divisors of `n` that are `k`... |
[Question]
[
Write a program or function that takes in a string guaranteed to only contain [printable ASCII](https://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters) characters except for space, and to be a positive [triangular number](https://en.wikipedia.org/wiki/Triangular_number) (1, 3, 6, 10, 15, ...) i... |
[Question]
[
# Input
no input for this challenge
# The Challenge
Write a code that outputs:
**The first 10 prime numbers whose sum of their digits equal the number of bytes of your code**
# Examples
Let's say your code is `Co&%423@k"oo"` which is `13 bytes`
your code must output `[67, 139, 157, 193, 229, 2... |
[Question]
[
This question will be a twist on finding the `n`th prime number.
# Challenge
You must write a program that will take one input `n`, and output the `n`th prime number whose decimal representation contains the decimal representation of `n` as a subtring.
Confused? Here are some examples.
```
n=1
Primes: ... |
[Question]
[
This is perhaps one of the classical coding challenges that got some resonance in 1986, when columnist Jon Bentley asked Donald Knuth to write a program that would find k most frequent words in a file. [Knuth implemented a fast solution](https://www.cs.tufts.edu/~nr/cs257/archive/don-knuth/pearls-2.pdf... |
[Question]
[
Given a natural number \$n\$, return the \$n\$-th [Leyland number](https://en.wikipedia.org/wiki/Leyland_number).
### Leyland Number
Leyland numbers are positive integers \$k\$ of the form
$$k = x^y + y^x$$
Where \$x\$ and \$y\$ are integers strictly greater than 1.
They are enumerated in ascending ord... |
[Question]
[
# Context
If `a0` and `b0` are two decimal numbers, with `a` and `b` representing the decimal expansion of all digits but the least significant one, then we know that
$$\frac{a0}{b0} = \frac{a{\not\mathrel0}}{b{\not\mathrel0}}= \frac{a}{b}$$
# Phony fraction
A *phony fraction* is a fraction where the n... |
[Question]
[
Before anyone says anything, [similar](https://codegolf.stackexchange.com/questions/2958/check-if-number-is-a-sum-of-consecutive-numbers-or-not) and [similar](https://codegolf.stackexchange.com/questions/5703/in-how-many-ways-can-a-number-be-expressed-as-a-sum-of-consecutive-numbers). But this is not a... |
[Question]
[
Write the shortest program that solves Rubik's cube (3\*3\*3) within a reasonable amount of time and moves (say, max. 5 seconds on your machine and less than 1000 moves).
The input is in the format:
```
UF UR UB UL DF DR DB DL FR FL BR BL UFR URB UBL ULF DRF DFL DLB DBR
```
(this particular input repre... |
[Question]
[
Given any of the following characters (or a newline):
```
`1234567890-=~!@#$%^&*()_+qwertyuiop[]\QWERTYUIOP{}|asdfghjkl;'ASDFGHJKL:"zxcvbnm,./ZXCVBNM<>?
```
Your program must output the row that it is on the keyboard
---
Because my keyboard is (almost) out of battery, your code must be as short as poss... |
[Question]
[
Consider a square grid on the plane, with unit spacing. A line segment of integer length \$L\$ is dropped at an arbitrary position with arbitrary orientation. The segment is said to "touch" a square if it intersects the interior of the square (not just its border).
# The challenge
What is the maximum n... |
[Question]
[
Write a program or function that takes in a nonempty single-line string. You may assume it only contains [printable ASCII](https://en.wikipedia.org/wiki/ASCII#Printable_characters) excluding space.
Print or return an ASCII art lozenge shape similar to a lemon or lime made from the prefixes of the strin... |
[Question]
[
**Intro**
This is based on an actual problem I recently faced while making a computer game and I thought it would make for a nice round of [code-golf](/questions/tagged/code-golf "show questions tagged 'code-golf'").
There are seven main [spectral classes](https://en.wikipedia.org/wiki/Stellar_classifi... |
[Question]
[
## Introduction
Consider two non-empty integer arrays, say **A = [0 3 2 2 8 4]** and **B = [7 8 7 2]**.
To perform *alignment addition* on them, we do the following:
1. Repeat each array enough times to have total length \$\text{lcm(length(A), length(B))}\$. Here \$\text{lcm}\$ stands for lowest common... |
[Question]
[
## Overview
Given a 3 line string, figure out if the structure falls to the left, balances, or falls to the right.
## Input structure
You can imagine the structure as metal rod with stuff on top, all being balanced on top of a vertical rod.
```
1 7 4 a
===============
|
```
The first li... |
[Question]
[
You are working as an intern for a mathematician who *really* hates TeX, LaTeX, etc. So much so that he has decided to abandon all typesetting whatsoever and make you do all the formatting in ASCII. You got tired of this after a while and decided to start automating parts of it, starting with square ro... |
[Question]
[
Here’s how to **backspace-and-retype** from one string to another:
1. Start from the first string.
2. Remove characters at the end until the result is a **prefix** of the second string. (This may take 0 steps.)
3. Add characters at the end until the result equals the second string. (This may take 0 ste... |
[Question]
[
## Background
The so-called "Urinal Protocol", describing the order in which individual urinals are picked in a men's bathroom, has been discussed in multiple places. One version is given in [this xkcd blog post](http://blog.xkcd.com/2009/09/02/urinal-protocol-vulnerability/). This question concerns a ... |
[Question]
[
## Introduction
After a day of drinking and watching the world cup, you sit down to play friendly game of boggle. Tempers rise as you are accused of wasting everyone's time with nonsense words that aren't even on the board! You may be seeing double, but surely you're thinking straight enough to write a... |
[Question]
[
This is the audio version of the [Twitter image encoding challenge](https://stackoverflow.com/questions/891643/twitter-image-encoding-challenge).
Design an audio compression format that can represent **at least one minute of music** in 140 bytes or less of printable UTF-8-encoded text.
Implement it by ... |
[Question]
[
**Please note:** By its nature, the spec for this challenge is difficult to understand. It probably requires at least a freshman course in computability theory, or equivalent background reading. In addition, the challenge itself is rather hard. Answering it will require writing an entire interpreter fo... |
[Question]
[
[Lisp](http://en.wikipedia.org/wiki/Lisp_(programming_language)) programmers boast that Lisp is a powerful language which [can be built up from a very small set of primitive operations](https://en.wikipedia.org/wiki/Scheme_(programming_language)#Minimalism). Let's put that idea into practice by golfing... |
[Question]
[
## TAS Golf

In the style of a [tool-assisted speedrun](https://en.wikipedia.org/wiki/Tool-assisted_speedrun) with a code-golf twist, the goal of this challenge is to complete [World 1-1](https://www.youtube.com/watch?v=PsC0zIhWNww) of the original... |
[Question]
[
A challenge with simple rules but non-trivial algorithms. :-)
### Task
Take input in the form of space-separated integers:
```
N A B S
```
Where N is the side length of a 2D square matrix filled with *unique* numbers (integers) between A and B inclusive. For each row and column in this matrix, the sum ... |
[Question]
[
Given a string you must move each letter (starting from the first letter) by its position in the alphabet. If you reach the end of the string you must wrap around. Non-letters don't need to be moved.
Example:
`Dog`
`D` is the fourth letter in the alphabet so we move it four spots to the right. After wr... |
[Question]
[
Recently I've been playing a game called Alcazar. It is a board puzzle game where your goal is to enter from one door, pass through all squares, and exit through another door. The only rules are:
* Enter once, leave once;
* Pass through all squares;
* Do not pass through a square more than once
The ima... |
[Question]
[
*Disclaimer: This does not do any justice on the rich topic of elliptic curves. It is simplified a lot. As elliptic curves recently got a lot of media attention in the context of encryption, I wanted to provide some small insight how "calculating" on an elliptic curve actually works.*
### Introduction
... |
[Question]
[
# Lets play a game of Meta tic-tac-toe!
This is a [king-of-the-hill](/questions/tagged/king-of-the-hill "show questions tagged 'king-of-the-hill'") tournament of Meta tic-tac-toe. The rules of Meta tic-tac-toe are as follows:
1. All of the regular rules of tic-tac-toe apply.
2. There are nine boards a... |
[Question]
[
**Closed**. This question needs to be more [focused](/help/closed-questions). It is not currently accepting answers.
Closed 7 years ago.
**Locked**. This question and its answers are [locked](/help/locked-posts) because the question is off-topic but has historical significance. It is not currently ... |
[Question]
[
**Challenge**
Print the numbers:
```
1
22
333
4444
55555
666666
7777777
88888888
999999999
```
In that order.
**I/O**
Takes no input. The numbers can have any delimiters desired (or none). That includes lists, cell arrays, .jpeg, etc.... Example outputs:
```
12233344445555566666677777778888888899999999... |
[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 7 years ago.... |
[Question]
[
# Introduction
It may sound strange, but we haven't got ONE challenge for counting from `1` to `n`, inclusive.
*[This is not the same thing.](/questions/11955) That one is a (closed) not well-explained challenge.*
*[This is not the same thing.](/questions/63834) That one is about counting up indefini... |
[Question]
[
The flag of Bangladesh is very simple. It looks like below:
[](https://i.stack.imgur.com/JaXP4.png)
The flag will be in bottle green (#006a4e) and rectangular in size in the proportion of length to width of 10:6, with a red circle in n... |
[Question]
[
**Closed.** This question is [off-topic](/help/closed-questions). It is not currently accepting answers.
---
Questions without an **objective primary winning criterion** are off-topic, as they make it impossible to indisputably decide which entry should win.
Closed 7 years ago.
[Improve this quest... |
[Question]
[
In this challenge, we will together create a word-search containing many programs in different languages.
I have started us off with a grid of 60-by-25 blanks (`·`), some of which are replaced by the characters of a Ruby program.
To answer, choose a language that was not yet used. Using your chosen lan... |
[Question]
[
### Background:
The current [Perfect Numbers challenge](https://codegolf.stackexchange.com/q/58026/76162) is rather flawed and complicated, since it asks you to output in a complex format involving the factors of the number. This is a purely [decision-problem](/questions/tagged/decision-problem "show q... |
[Question]
[
## Challenge
A [repdigit](https://oeis.org/wiki/Repdigit_numbers) is a non-negative integer whose digits are all equal.
Create a function or complete program that takes a single integer as input and outputs a truthy value if the input number is a repdigit in base 10 and falsy value otherwise.
The input... |
[Question]
[
Your task is simple: output the letter `x` a random number of times. Every possible length of `x`s must have a non-zero probability of being output.
Of course, there must be some lengths whose probabilities tend to \$ 0 \$, in order for the total probabilities to sum to \$ 1 \$, but all must still be t... |
[Question]
[
Your program should take an array as input.
The array:
1. Will always be 1 dimensional
2. Will only contain integers
3. Can be empty
The program should reverse the array, and then add up the elements to the original for example:
**Input:** `[1, 2, 3]`
**Original:** `[1, 2, 3]`
**Reversed:** `[3, 2, 1]... |
[Question]
[
# Background
Some holidays have fixed, easy-to-remember dates, like Oct 31, Dec 25, etc. Some, however, want to be troublesome. They're specified as things like "the first Monday in September" or "the fourth Thursday in November". How am I supposed to know when that is?
All I know is that Thanksgiving ... |
[Question]
[
**This question already has answers here**:
[Find a multiple of a given number whose decimal representation looks like binary](/questions/60942/find-a-multiple-of-a-given-number-whose-decimal-representation-looks-like-binary)
(44 answers)
Closed 6 months ago.
A *binary multiple* of a positive in... |
[Question]
[
Writing out numbers is among the Hello worlds of programming, often the numbers 1-10.
I want to write out many numbers! Many, Many numbers. But how many numbers do I have to write?
# Task
Given an integer input, give a number as output that would give me the number of digits that would be in a string 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.