text stringlengths 180 608k |
|---|
[Question]
[
**This question already has answers here**:
[Sᴍᴀʟʟ Cᴀᴘꜱ Cᴏɴᴠᴇʀᴛᴇʀ](/questions/60443/s%e1%b4%8d%e1%b4%80%ca%9f%ca%9f-c%e1%b4%80%e1%b4%98%ea%9c%b1-c%e1%b4%8f%c9%b4%e1%b4%a0%e1%b4%87%ca%80%e1%b4%9b%e1%b4%87%ca%80)
(22 answers)
Closed 6 years ago.
## Challenge
Your program needs to take an input o... |
[Question]
[
# Challenge
Detect the newest file in a specific folder and pass it as an argument to another process. The first argument to your program will be the folder, and the second argument will be the full path to the process.
Please specify the platform(s) your code works on.
# Examples
## Windows
```
newe... |
[Question]
[
**This question already has answers here**:
[Write an aphorism using valid code [closed]](/questions/18093/write-an-aphorism-using-valid-code)
(49 answers)
Closed 9 years ago.
I am looking for either suggestions or examples of more famous sayings written in code! If you have a website or datab... |
[Question]
[
**If a game can result in a win, worth one point; a draw, worth half a point; or a loss, worth no points; how many ways are there of scoring `k` points in `n` games?**
Applicable scenarios include NFL and chess.
* Input is via stdin, and consists of `n` and `k` on separate lines.
* `n` will be a non-... |
[Question]
[
### The challenge:
Write a program or function in any language that takes as an argument (command-line or function) a single English word. It returns or outputs the pluralized form of the word.
(To clarify, the program or function will be executed many times on different words, but separately - the l... |
[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/237585/edit).
Closed 2 years ago.
[Improve this question](/posts/237585/edi... |
[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/230999/edit).
Closed 2 years ago.
[Improve this question](/posts/230999/edi... |
[Question]
[
# Story
There is a woman, named Sarah, whom likes smooth horse rides. She's going to go for a ride down a path too thin to pass any other horses she may come across - and so that her ride can be as smooth as possible she does not want to have to change speed though she would prefer to get to her dest... |
[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/209149/edit).
Closed 3 years ago.
[Improve this question](/posts/209149/edi... |
[Question]
[
Write two programs A and B.
* Program A (the encoder) takes 1024 pairs of integers \$(k,v)\$, where \$0≤k<2^{32}\$ and \$0≤v<1024\$, and all \$k\$ will be different. It will output a single positive integer (likely a few thousand digits long).
* Program B (the decoder) takes two inputs: the output-i... |
[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/171132/edit).
Closed 5 years ago.
[Improve this question](/posts/171132/edi... |
[Question]
[
Jill lives in the (magnetic) north pole. One day, Jill decided to go for a walk, travelling in the four directions (north, east, west, south) for some lengths, with the help of a compass. Your task is to find whether Jill ended up where Jill lives, i.e. the magnetic north pole.
Only south is defined ... |
[Question]
[
You know that some decimal numbers can't be expressed as IEEE 754 floating points. You also know that arithmetic with floating points can give results that seem to be wrong:
* `System.out.print(4.0-3.1);` ([source](https://stackoverflow.com/q/4895154/562769))
* `0.2 + 0.04 = 0.24000000000000002` ([so... |
[Question]
[
Your task is to print this exact text:
```
| | | | | |
&***********&
| Code Golf |
| e---------f |
| d___________l |
| o-------------o |
| C_______________G |
###Dennis$Dennis###
#####################
```
# Rules
* Trailing or leading newline is allowed
* [code-golf](/questions/ta... |
[Question]
[
**This question already has answers here**:
[Full Width Text](/questions/75979/full-width-text)
(146 answers)
Closed 7 years ago.
Basically, between every character of a uni-line string, add a space, but there can't be two spaces in between one character.
* `aesthetic` becomes `a e s t h e t i... |
[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**:
[We're no strangers to code golf, you know the rules, and so do I](/questions/6043/were-no-strangers-to-code-golf-you-know-the-rules-and-so-do-i)
(73 answers)
Closed 9 years ago.
This is one of my favourite poems I wanted to share. Especially because... |
[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 9 years ag... |
[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 9 years ag... |
[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/269789/edit).
Closed 11 days ago.
[Improve this question](/posts/269789/edi... |
[Question]
[
Now that we know how to [Square a Number my Way](https://codegolf.stackexchange.com/questions/136564/square-a-number-my-way), we need an inverse operation, a way to Square Root a Number my Way. To square a number my way, you simply stack it on top of itself a number of times equal to the number of di... |
[Question]
[
**This question already has answers here**:
[Write a program that reverses the name of its source file](/questions/82635/write-a-program-that-reverses-the-name-of-its-source-file)
(30 answers)
Closed 7 years ago.
Write a program that prints the name of its source file. REPL environments are no... |
[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/18322/edit).
Closed 3 years ago.
[Improve this question](/posts/18322/edit)... |
[Question]
[
**Just-in-time edit**: I decided to reveal part of the answer and highlight a single aspect of the challenge.
---
Show how 4 weights, of 1, 3, 9, and 27 lbs. can be used to produce "weight differences" from 0 to 40 lbs.
You have a two - pan balance scale.
We define the **difference in pan weights** a... |
[Question]
[
**Introduction**
In the United States, national elections are normally held on the first Tuesday after the first Monday in November.
**Challenge**
Write a program that takes a Year as integer, and a pair of (day of week as character and ordinal as integer) and output the date as "yyyy-mm-dd"
Remember... |
[Question]
[
**This question already has answers here**:
[Build a polyglot for Hello World](/questions/10695/build-a-polyglot-for-hello-world)
(9 answers)
Closed 3 years ago.
Simple challenge: The code must be both valid Lisp and valid Fortran, and must print out "hello world" in both.
Note: I've sunk abou... |
[Question]
[
This riddle was inspired by [that thread](https://codegolf.stackexchange.com/questions/53642/every-possible-cycle-length). Consider that you are super-hacker and try to break MD5 hashing algorithm by looking for a hash collisions for a given hash string which your friend gave to you. But this is a no... |
[Question]
[
# Introduction
Given a set of text-based "screenshots" consisting of printable ASCII chars merge them so that all of them form one long screenshot so that nobody has to do it themselves when reading it.
# Challenge
Take input as a list of strings (referred to as "screenshots"). Each screenshot consis... |
[Question]
[
Task is to output this text:
```
ABCDEFGHIJKLMNOPQRSTUVWXYZA
A 00000000000000000000000 Z
B Y
C 101010101010101010101 X
D W
E V
F 2101210121012101210 U
G T
H S
I ... |
[Question]
[
# Goal
As the title suggests, write a radix sort function (either MSB or LSB is fine) that accepts two parameters:
* an array of values of any type (you can assume that they are all of the same type / class, etc.)
* a function (or function pointer, depending on your language) that takes a single para... |
[Question]
[
**This question already has answers here**:
[Write a program which performs brute force letter combination until the word "password" is found](/questions/12615/write-a-program-which-performs-brute-force-letter-combination-until-the-word-pa)
(16 answers)
Closed 8 years ago.
So, like the title s... |
[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 8 years ag... |
[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 8 years ag... |
[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]
[
Given some raw HTML, sanitize it by formatting the spaces, as defined below.
## Output rules:
Like [many](https://codegolf.stackexchange.com/search?q=xkcd) challenges, this one is inspired by [XKCD](https://xkcd.com/2109/).
1. First, "untag" all tags with nothing but spaces in them. (`<i>te<b> </b>xt... |
[Question]
[
* Let us assume that we have number `X`.
* Let us assume that we have positive integer "components" (`C`) of this `X` number.
* We can add these components together like `C1+C2+...+Cn = X`.
* We have `N` as limit of number of components.
* We have `B` as limit of biggest component
* Distribution: if ... |
[Question]
[
Pipe a short stream to the following Java program run with accompanying command line options, such that it prints `true`.
```
class Code implements java.io.Serializable {
private static final long serialVersionUID = 0L;
private static long count;
@Override public int hashCode() {
... |
[Question]
[
**This question already has answers here**:
[The Coin Problem](/questions/57146/the-coin-problem)
(6 answers)
Closed 4 years ago.
You are starting up a cryptocurrency exchange website which supports conversion from USD to two currencies, foo-coin and bar-coin. Write a program that takes the ex... |
[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 5 years ago.
[Improve this que... |
[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/172638/edit).
Closed 5 years ago.
[Improve this question](/posts/172638/edi... |
[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/135852/edit).
Closed 6 years ago.
[Improve this question](/posts/135852/edi... |
[Question]
[
*Thanks to [HyperNeutrino](https://codegolf.stackexchange.com/users/68942/hyperneutrino) for making more test cases*
Often in [chat](https://chat.stackexchange.com/rooms/240/the-nineteenth-byte), someone will ask a question, and multiple people will answer it at the same time. Usually, the person who... |
[Question]
[
**This question already has answers here**:
[Split string into n pieces (or pieces of length n)](/questions/77310/split-string-into-n-pieces-or-pieces-of-length-n)
(11 answers)
Closed 6 years ago.
Given a string and integer n, split the string at n character, and print as follows:
Ex)
`laptop... |
[Question]
[
This is a Code Golf challenge.
[Flood](http://www.chiark.greenend.org.uk/~sgtatham/puzzles/js/flood.html) is a game in which the player is presented with a game board such as this:
[](https://i.stack.imgur.com/RWaO2m.png)
On each turn, you ch... |
[Question]
[
I have a problem when posting an answer to a question that already have several answers and/or several comments:
The "post your answer" form sits on bottom, the answer is on top. There is an awful lot of "clutter" between them, that are not needed for the act of posting a new answer (yes, I've read t... |
[Question]
[
Your program will be run an undetermined amount of times. On all but the last, there will be a file called `data` in the same directory of your program that has the same value each time. On the last run, the file will be there but will have different data in it. On all the times *except* the last, yo... |
[Question]
[
### Challenge:
Write a a program to take an array of 24 4-letter strings, and output a compressed (lossless) representation of the array. You should also provide a program to decompress your representations.
### Input:
The input will be comprised of 4 letter words using each of `[G,T,A,C]` exactly on... |
[Question]
[
A fragmented file is a file which is seperated into several parts on a harddrive, because it can't fit into a certain space.
On all harddrives, there are files called unmovable files, which are unmovable. To simulate real data on a harddrive, the input will also have unmovable files.
You are given se... |
[Question]
[
# Can you decrypt me?
## Cops
Cops, post obfuscated code that hides a number \$n\$ (n must not be greater than the program length) inside its code. If \$n\$ chars are changed (no additions or deletions), the program outputs exactly one \$n\$ (any amount of whitespace before or after is allowed.) Othe... |
[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/268530/edit).
Closed 2 months ago.
[Improve this question](/posts/268530/ed... |
[Question]
[
Here is continuation of [this question](https://codegolf.stackexchange.com/q/192715/88163), this time lets compress/generate Mario in colors!
[](https://i.stack.imgur.com/4unZV.png)
Image size is 64x64 (above one is zoomed). The req... |
[Question]
[
**This question already has answers here**:
[Interpret brainfuck](/questions/84/interpret-brainfuck)
(78 answers)
[Make a +-#$%! interpreter](/questions/122343/make-a-interpreter)
(13 answers)
Closed 6 years ago.
A few month back, I made a language called [`;#`](https://codegolf.stackexchan... |
[Question]
[
## INTRO
Let's say you write a passage and you are close to the end of the line wanting to write down a large word. In most languages, you just leave some blank and move to the next line, like a sir.
>
> Example - English:
>
>
>
blah blah blah blah blah blah blah blah blah blah blah blah blah bl... |
[Question]
[
I'm golfing a program to sum two numbers in C++.
Example:
```
10 3
13
```
I found out that this problem can be solved in 54 symbols (without spaces and so on) using C++.
My code (63 symbols):
```
#include <iostream>
main() {
int a, b;
std::cin >> a >> b;
std::cout << a + b;
}
```
I have n... |
[Question]
[
# Your Challenge
You must write a program/function etc. that takes a domain name of a StackExchange site and outputs the domain for the meta version of the site passed to it. Examples:
```
stackoverflow.com => meta.stackoverflow.com
codegolf.stackexchange.com => codegolf.meta.stackexchange.com
mathov... |
[Question]
[
# Code-Bowling Quine Challenge
You must bowl a quine following the rules of code bowling and quines but the source code must be in the shape of a **rectangle** (details specified below)
---
# Quine
Quines returned must be returned via the ways defined in [the standard I/O rules](https://codegolf.meta... |
[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/102101/edit).
Closed 7 years ago.
[Improve this question](/posts/102101/edi... |
[Question]
[
**This question already has answers here**:
[Write a brainfuck translator](/questions/19899/write-a-brainfuck-translator)
(9 answers)
Closed 8 years ago.
## The Task
Write the shortest program, that accepts script in brainfuck from `STDIN` (or equivalent) and outputs to `STDOUT` (or equivalent... |
[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/48763/edit).
Closed 8 years ago.
[Improve this question](/posts/48763/edit)... |
[Question]
[
You have a library - a fully loaded 2014 [Babylon.js](http://www.babylonjs.com/).
You have a fragment shader - let's call it sample.fragment.fx.
You have a scene - loaded ahead of time, possibly from a .babylon JSON file.
Your goal is to assign the fragment shader to every textured object in the scen... |
[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/33087/edit).
Closed 9 years ago.
[Improve this question](/posts/33087/edit)... |
[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]
[
### Introduction
The Babylonians had a clever method for finding square roots. To find the square root of a number `N`, you start with a `guess`, then refine it by repeatedly evaluating a line of computer code (or papyrus scroll equivalent):
```
guess = (guess + N/guess) / 2
```
If the guess is small... |
[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/17712/edit).
Closed 10 years ago.
[Improve this question](/posts/17712/edit... |
[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/2821/edit).
Closed 5 months ago.
[Improve this question](/posts/2821/edit) ... |
[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/264316/edit).
Closed 6 months ago.
[Improve this question](/posts/264316/ed... |
[Question]
[
# Challenge
You find yourself in a `bash` terminal, and want to do some simple tests
on `sqlite3`.
So you issue the following command:
```
echo "CREATE TABLE T (id INT NON NULL PRIMARY KEY)" | sqlite3 test.db
```
Now you want to insert the first `N` integers (starting from 0, excluding N) into the ta... |
[Question]
[
## Task
Make code given on the command line that takes an unpacked hex value as input and `eval`s that in Perl. Like this:
```
perl -e 'map{eval}pack q/h*/,q/072796e6470222458656275672370202d6f62756020222b302072796e6470222478616e60202f6e6560202771697020247f6020246f602029647e2c5e622/'
```
But with one... |
[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/216005/edit).
Closed 3 years ago.
[Improve this question](/posts/216005/edi... |
[Question]
[
**This question already has answers here**:
[Write the shortest self-identifying program (a quine variant)](/questions/11370/write-the-shortest-self-identifying-program-a-quine-variant)
(48 answers)
Closed 3 years ago.
Write a program that takes a string as an input. For the input:
* If the in... |
[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/205155/edit).
Closed 3 years ago.
[Improve this question](/posts/205155/edi... |
[Question]
[
**This question already has answers here**:
[Print all ASCII alphanumeric characters without using them](/questions/105781/print-all-ascii-alphanumeric-characters-without-using-them)
(53 answers)
Closed 4 years ago.
You are tasked with displaying the string "ABCDEFGHIJKLMNOPQRSTUVWXYZ" and onl... |
[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/180804/edit).
Closed 4 years ago.
[Improve this question](/posts/180804/edi... |
[Question]
[
# Challenge
Given an integer greater or equal to 4, n, print a rounded rectangle of as close as possible (with a gap of 1) sides and a perimeter of n characters.
# Rules
* n is always 4 or greater, because otherwise the output wouldn't be a square
* The characters for the perimeter can be any non-whi... |
[Question]
[
Given a number `n`, calculates `BB(n)` (the maximum number of `1`s finally on the tape, among all halting 2-symbol n-state Turing machines with tape of zeros).
To solve the problem, you are given an extra ([black-box](https://codegolf.meta.stackexchange.com/a/13706)) function **H** as input, which ta... |
[Question]
[
Christmas is [coming up](https://www.yourchristmascountdown.com/), and this year you have been charged with organizing your family's christmas get-together. You have a list of foods you want be there, but before you assign foods to people, you need to know who's coming. So...
# Challenge
Given an inp... |
[Question]
[
**This question already has answers here**:
[Output a googol copies of a string](/questions/97975/output-a-googol-copies-of-a-string)
(85 answers)
Closed 6 years ago.
**Main objective**
The main objective is to output a text, it doesn't mind which text or where the text gets its output (it can... |
[Question]
[
**Closed**. This question needs to be more [focused](/help/closed-questions). It is not currently accepting answers.
---
**Want to improve this question?** Update the question so it focuses on one problem only by [editing this post](/posts/110390/edit).
Closed 7 years ago.
[Improve this question]... |
[Question]
[
# Chained Binary Operations
Here's a challenge involving [truth tables and binary operations](https://en.wikipedia.org/wiki/Truth_table). For this specific challenge, your task is to use the following table of operations:
[](https://i.sta... |
[Question]
[
The new xkcd feed bot room gave me an idea for a simple challenge.
Your code will have to monitor the xkcd website and output all the new comics to the user.
# Specs
* When first run it should just sit around waiting.
* Then, when randall posts a new comic, within a minute, it should display the new ... |
[Question]
[
**This question already has answers here**:
[Time-Sensitive Echo](/questions/60188/time-sensitive-echo)
(20 answers)
Closed 8 years ago.
A simple code golf challenge similar to [an already existing, but more complex one](https://codegolf.stackexchange.com/questions/60188/time-sensitive-echo):
... |
[Question]
[
**Closed**. This question needs to be more [focused](/help/closed-questions). It is not currently accepting answers.
---
**Want to improve this question?** Update the question so it focuses on one problem only by [editing this post](/posts/58654/edit).
Closed 8 years ago.
[Improve this question](... |
[Question]
[
All those questions that are duplicates... Ignored and marginalized by society. It is just not... right. We have to do something. There surely must be love for them too.
They feel appreciated if a piece of code outputs a link to a duplicate question. But the duplicate questions are not so easily impr... |
[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/16155/edit).
Closed 2 years ago.
[Improve this question](/posts/16155/edit)... |
[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/194586/edit).
Closed 4 years ago.
[Improve this question](/posts/194586/edi... |
[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/186546/edit).
Closed 4 years ago.
[Improve this question](/posts/186546/edi... |
[Question]
[
**This question already has answers here**:
[Is this Sequence Graphic?](/questions/108804/is-this-sequence-graphic)
(12 answers)
Closed 4 years ago.
It was a dark and stormy night. Detective Havel and Detective Hakimi arrived at the scene of the crime.
Other than the detectives, there were 10 ... |
[Question]
[
Inspired (you don't need to know them for this challenge) by the [Pumping Lemma](https://en.wikipedia.org/wiki/Pumping_lemma) for [various](https://en.wikipedia.org/wiki/Pumping_lemma_for_regular_languages) [languages](https://en.wikipedia.org/wiki/Pumping_lemma_for_context-free_languages), I propose... |
[Question]
[
Write a program to generate a rectangular word-search of size 6x9. Words may go downwards, rightwards and diagonally (downwards and to the right), they may also overlap on the board.
The challenge is to include as many different English words as possible from <https://www.ef.co.uk/english-resources/e... |
[Question]
[
**Idea:**
Consider a 2-bit bitmap of arbitrary side-lengths overlaid on a coordinate grid and imaged with random data (1's represent an element of the image, 0's represent the "blank" canvas background):
```
y x—0 2 4 6 8 10 14 18
|
0 0000000000111100000000
0000000011111110000000
2 0000... |
[Question]
[
(language-specific challenge)
## Specification:
Language: ECMAScript, any version[1]
Challenge: Somewhat like python's [itertools.groupBy](https://docs.python.org/2/library/itertools.html#itertools.groupby): Your function `Array.group(f)` should take as input an "equivalence function" `f` whose outpu... |
[Question]
[
## Introduction:
Unfortunately an Accordion Solitaire Solver challenge already exists ([*Solve a game of Accordion*](https://codegolf.stackexchange.com/questions/55315/solve-a-game-of-accordion)), so instead this easier related challenge.
Let's start by explaining how Accordion Solitaire works:
1. Yo... |
[Question]
[
# Introduction
I have some JavaScript code that uses [`Array.prototype.map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map) to map an array of functions `fns` to their return values:
```
const fns = [() => 1, () => 2];
const result = fns.map(
fn => fn()
... |
[Question]
[
It is widely known that Santa Claus delivers presents to houses all over the world in December. However, not many people know what he does during the rest of the year. You see, Santa enjoys a jolly good prank, and he'll often find himself pranking entire cities when he's not busy making or delivering... |
[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/129525/edit).
Closed 6 years ago.
[Improve this question](/posts/129525/edi... |
[Question]
[
For [a story I'm writing](http://meta.worldbuilding.stackexchange.com/questions/4639/my-alien-message-series), I needed to convert 101⅐ (101 + 1/7 if that doesn’t show up for you) into base 47.
Expressing an integer in some base brings back memories of first learning how to program back in the days o... |
[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/64575/edit).
Closed 8 years ago.
[Improve this question](/posts/64575/edit)... |
[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/57566/edit).
Closed 8 years ago.
[Improve this question](/posts/57566/edit)... |
[Question]
[
**This question already has answers here**:
[Show Ulam's spiral](/questions/4577/show-ulams-spiral)
(6 answers)
Closed 9 years ago.
**The challenge**
Get familiar with the [Ulam spiral:](http://en.wikipedia.org/wiki/Ulam_spiral#Construction)
The aim is to print the spiral like in the picture a... |
[Question]
[
Write a [quine](http://en.wikipedia.org/wiki/Quine_%28computing%29) that
1. Writes its source code to disk
2. Recursively executes the written source code
3. Produces some variation to the code the third time (so not a true Quine)
4. Stops recursively calling itself the fifth time
Bonus points for le... |
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.