text stringlengths 180 608k |
|---|
[Question]
[
Given a ruler length in inches and fractions of an inch, and a granularity in fractions of an inch, output the values of all marks on the ruler, starting from 0, in ascending order.
Input ruler length will be a mixed fraction (integer and proper fraction)
Input granularity will be a proper fraction i... |
[Question]
[
# Background:
In finance, the binomial options pricing model (BOPM) is the simplest technique used for option pricing. The mathematics behind the model is relatively easy to understand and (at least in their basic form) it is not difficult to implement. This model was first proposed by Cox, Ross, and... |
[Question]
[
Today is [Tax Day](https://en.wikipedia.org/wiki/Tax_Day)!
Oops.
Well, [today is tax day if you are a resident of Maine or Massachusetts](https://www.irs.com/articles/tax-deadline-alert-2015-tax-returns-are-due-april-18-2016).
So you're probably still completing your return and need a calculator for ... |
[Question]
[
The basic idea is to write a program that [twists](https://codegolf.stackexchange.com/questions/70696/golf-a-string-twister) itself, and the twisted version untwists itself. The first program will just be the twisting algorithm described here, and when given its own source code as input, outputs a pr... |
[Question]
[
## Background
This challenge is about the [stochastic block model](https://en.wikipedia.org/wiki/Stochastic_block_model).
Basically, you are given an undirected graph, where the nodes represent people, and the edges represent social connections between them.
The people are divided into two "communiti... |
[Question]
[
## **The Challenge**
The game *Light Up!* is a simple puzzle game where the objective is to light up every cell in an *n*-by-*n* array with light bulbs. However, there are blocks in the way that will prevent light from traveling, and no lightbulb can be places such that another lightbulb shines light... |
[Question]
[
**Closed.** This question is [off-topic](/help/closed-questions). It is not currently accepting answers.
---
Questions without an **objective primary winning criterion** are off-topic, as they make it impossible to indisputably decide which entry should win.
Closed 1 year ago.
[Improve this ques... |
[Question]
[
**Update:** It seems that the original question at math.SE was solved, there should be no 23 pieces solution.
The original problem is stated [here over at math.SE](https://math.stackexchange.com/questions/898656/can-23-of-this-polycube-fit-in-a-5x5x5-box)
The task is writing a program that fits 22 co... |
[Question]
[
In [project management](https://en.wikipedia.org/wiki/Project_management) there's a method, called the [critical path method](https://en.wikipedia.org/wiki/Critical_path_method), that is used for scheduling activities and for determining which activities' timings are crucial (i.e. critical) and for w... |
[Question]
[
**This question already has answers here**:
[Hashiwokakero: Build bridges!](/questions/4790/hashiwokakero-build-bridges)
(3 answers)
Closed 10 years ago.
Unsolved puzzle:

Solved Puzzle:
 but you have limited space! In this challenge, you should draw a polygon with n sides which is as big as possible for a given square container image.
I found surprisingly little information on the Internet about in... |
[Question]
[
Given year, month and optionally weekday of 1st, output the calendar of the month. The first week should remain nonempty.
For empty cell, fill it with the date where it's supposed to be, in last or next month, and add `#` to indicate gray. If last few days can't fit in 5 lines, then they share last l... |
[Question]
[
*The reason for this question is because I made a [deadlineless bounty](https://codegolf.meta.stackexchange.com/a/26136/78850) and I need a tips question to link in the bounty*
Vyxal 3 is the third major version of the Vyxal golfing language. As it is significantly different to Vyxal 2, the tips ther... |
[Question]
[
Your challenge is to output the number of twisted corners given a 2x2 Rubik's Cube scramble.
For the purpose of this challenge, twisted corners are defined as corners where the colour of the top/bottom face before (usually white or yellow) is not facing the top/bottom after the scramble.
Eg. if the... |
[Question]
[
This is an [ascii-art](/questions/tagged/ascii-art "show questions tagged 'ascii-art'") challenge where you will draw ascii-art showing a person "jumping" off the top of a building.
---
## The building
Input given will be a group of rectangular buildings. You may assume buildings are not "stacked on ... |
[Question]
[
**Setup:**
A *block* is any rectangular array of squares, specified by its dimensions \$(w,h)\$. A *grid* is any finite ordered list of blocks. For example, \$\lambda = ((3,2),(3,1),(1,2))\$ defines a grid.
Let \$\lambda\$ and \$\mu\$ be two grids with equal area.
A *tiling of \$\lambda\$ by \$\mu\$*... |
[Question]
[
**This question already has answers here**:
[Bot Factory KoTH (2.0)](/questions/217972/bot-factory-koth-2-0)
(9 answers)
Closed 3 years ago.
**Note:** [Bot Factory KoTH (2.0)](https://codegolf.stackexchange.com/questions/217972/bot-factory-koth-2-0) is now posted; you're probably looking for t... |
[Question]
[
What general tips do you have for golfing in [MathGolf](https://github.com/maxbergmark/mathgolf/blob/master/math_golf.txt)? I'm looking for ideas that can be applied to code golf problems in general that are at least somewhat specific to MathGolf (for tips which can be applied to loads of programming... |
[Question]
[
In a matrix of characters, a **cursor** is a movable position between two adjacent characters, before the first character or after the last character in a line, like that "I"-shaped indicator which moves while you type.
In this challenge, a cursor position is considered **valid** if at least one of i... |
[Question]
[
Your challenge is very simple: output the previous answer, in reverse.
However, as with [this](https://codegolf.stackexchange.com/questions/161757/print-the-previous-answer) similarly-titled question, there's a catch: in this case, you **cannot** use characters from the answer *before* the last. For ... |
[Question]
[
The Dank Memes Casino is one of the best casinos of the world. They have a rule that if you win or lose money, you will be paid at the beginning of the next month.
But, catastrophe struck and there was an earthquake, which demolished the casino.
Now, all the poker players have gathered and realised t... |
[Question]
[
This task is a classic programming task: Implement a regular expression parser. That is, write a program or function which takes a string describing a regular expression and a candidate string, and test whether the complete candidate string matches the regular expression. You may assume that the regu... |
[Question]
[
# Challenge
Given a rectangular area arrange a group of rectangles such that they cover the rectangular area entirely.
# Input
* An integer denoting the height.
* An integer denoting the width.
* The dimensions of the rectangles consisting
of the following form: `axb,cxd,...` where `a,b,c,` and `d` a... |
[Question]
[
Your task is to create a program or function that creates a paste on [sprunge.us](http://sprunge.us). Your program/function must receive the text to *sprunge* from your language's usual input mechanism, such as standard in; or in the case of a function, it can be a string or whatever makes the most s... |
[Question]
[
**This question already has answers here**:
[Build me a brick wall!](/questions/99026/build-me-a-brick-wall)
(91 answers)
Closed 7 years ago.
I need help making a brick road to go beside [my brick wall](https://codegolf.stackexchange.com/questions/99026/build-me-a-brick-wall)!
```
\ \__\ \__... |
[Question]
[
>
> Let's define a 2-quine as a program that prints its source code two times. For example, if the program `ABC` printed `ABCABC`, it would be a 2-quine.
>
>
> Let's define a 3-quine as a program that prints its source code three times. For example, if the program `ABC` printed `ABCABCABC`, it wou... |
[Question]
[
[Connect Four](http://en.wikipedia.org/wiki/Connect_Four) is a game where two players take turns to drop disks into columns of a vertically mounted grid, and attempt to connect four disks orthogonally or diagonally. When a column is chosen, the disk falls to the lowest empty position in that column, ... |
[Question]
[
Frank has been working IT his whole life. Each day he responds to tickets, organizes equipment, and reports to his boss. One day, near the closing time on friday, Frank is doing his final inventory and sorting come cables in the supply closet. Suddenly, the door closes and locks from the outside! Suc... |
[Question]
[
For example, if `n` is 5 and `r` is 2, it would mean the number of lists below:
```
[1,1,1,1,1]
[1,1,1,2,2]
[1,1,2,2,2]
[2,2,1,1,1]
[2,2,2,1,1]
[2,2,2,2,2]
```
which is **6**.
If `n` is 4 and `r` is 3:
```
[1,1,1,1]
[1,1,2,2]
[1,1,3,3]
[2,2,1,1]
...
[3,3,3,3]
```
which is **9**.
where each item has a... |
[Question]
[
Write a function or program which, given a number of lines and columns, generates a corresponding `tabular` environment for LaTeX with no data in it.
### Table format and `tabular` Environment
Here is an example of a table with 2 rows and 4 columns:
[, *T*, as **tie-breaker**.
The ra... |
[Question]
[
In the game [Hearthstone](https://en.wikipedia.org/wiki/Hearthstone:_Heroes_of_Warcraft) there is a playing board containing friendly and enemy minions, and two heroes - yours and the enemy's.
To generalize and simplify, we will assume it's your turn, the opponent has 0-7 minions with given health va... |
[Question]
[
There is that famous [riddle](http://www.scientificpsychic.com/mind/bear1.html):
>
> A bear walks 1 km south, 1 km east and 1 km north, and comes to the place it started from. What color is the bear?
>
>
>
This one is very old, so I'll generalize it:
>
> A bear walks `x` km south, `y` km east an... |
[Question]
[
Just last night I was reading a book which had a chapter on [the Partition Problem](http://en.wikipedia.org/wiki/Partition_problem); the Partition Problem is basically about splitting a set of numbers into two smaller sets of equal size.
To visualize it, the book contained the following picture:
![Fi... |
[Question]
[
For the purposes of this challenge, let's define a cyclic number as an integer that passes the basic part of [Midy's Theorem](http://en.wikipedia.org/wiki/Midy%27s_theorem), but not necessarily the extended theorem. This means:
>
> the digits in the second half of the ~~repeating decimal period are~... |
[Question]
[
The goal of this codegolf is evaluating the cumulative distribution function of the [student-t probability distribution](https://en.wikipedia.org/wiki/Student's_t-distribution). This is not trivial since there is no closed form and the function is dependent of two variables `v` and `x`. The distribut... |
[Question]
[
Your job is to solve this chess-related game.
The setup of the game is a 7x7 tile grid, you start on a random tile and you have to hop on each tile, until you hopped on all 49 tiles.
Top left corner is (0,0)
**Rules:**
* you can hop on each tile once.
* the only move allowed in the game is to hop two... |
[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/18535/edit).
Closed 7 years ago.
[Improve this question](/posts/18535/edit)... |
[Question]
[
A twist on a [recently asked question](https://codegolf.stackexchange.com/questions/6417/generate-a-valid-equation-using-user-specified-numbers), you are given a list of operators and a result and you need to find integers which, when operated on by those operators, generate the result.
**Example 1**... |
[Question]
[
**The challenge is to manipulate strings using basic Vim-like commands**
**Input:**
* A string of text to be transformed. The input alphabet is [a-z].
* A string of legal commands
**Output:**
* The transformed string
---
There are a few ideas you should understand:
The cursor is represented as a loca... |
[Question]
[
(This code golf task is related to [Code-Golf: Lights Off!](https://codegolf.stackexchange.com/questions/1899/code-golf-lights-off). The same puzzle is used, but the task is different.)
---
## Introduction
"Lights Out" is a puzzle in which you should switch off all lights in a 5x5 grid. However, when... |
[Question]
[
Pascal's Triangle is a familiar mathematical construct with many interesting properties. It is constructed by starting with a 1 on top, and generating the numbers in the next row from the sum of the number to the left and right in the row above (with implied 0's around the boundary):
```
1
1 1... |
[Question]
[
Inspired by this stack of little statues that are currently on my desk at work, given to me by my colleagues from Sri Lanka when they visited The Netherlands:
[](https://i.stack.imgur.com/sPZYQm.jpg)
This is split into two different... |
[Question]
[
Given a non-empty list of digits 0 though 9, output the smallest number that can be produced by an expression formed by reordering these digits and introducing exponentiation signs `^`, with adjacent digits getting concatenated as multi-digit numbers. Exponentiation is evaluated as right-associative.... |
[Question]
[
* Chat room: <https://chat.stackexchange.com/rooms/106513/easter-bunny-challenge>
* Git repo: <https://github.com/ajfaraday/easter_bunny_hunt>
---
The garden is a 2-dimensional grid with 49 rows and 49 columns.
The Easter Bunny™️ is in the center of the garden, minding his own business, holding on to... |
[Question]
[
In LLAMA, you want to dump cards from your hand as quickly as you can, but you might not be able to play what you want.
Each player starts a round with six cards in hand; the deck consists of llama cards and cards numbered 1-6, with eight copies of each. On a turn, the active player can play a card o... |
[Question]
[
Given a list of words, output a square grid of characters, so that all the words can be read from the grid, by moving horizontally, vertically, or diagonally between characters, without reusing characters in the same word. The grid must be the smallest possible which allows all words to be read.
## E... |
[Question]
[
Create a program (any language) which, given positive integer `m`, outputs a valid C *expression* that:
1. Uses a single variable `x` assumed of 32-bit unsigned type (i.e. `uint32_t`)
2. Would evaluate to range [0, `m`) for any of the 2³² possible `x`, reaching any of the `m` possible outcomes either... |
[Question]
[
Write a program or function that:
1. Takes as input a list or array of 128 numbers.
2. Sends that array to a GPU
3. Performs a calculation on the GPU to square each element of the array and then sum them
4. Gets the answer from the GPU, and returns or displays it
So your program will simply return th... |
[Question]
[
I'm (still) trying to make another submission to the [Largest Number Printable](https://codegolf.stackexchange.com/q/18028) question, and I've got the following bit of code:
```
f=->a{b,c,d=a;b ?a==b ?~-a:a==a-[c-c]?[[b,c,f[d]],~-c,b]:b:$n}
h=[],$n=?~.ord,[]
h=f[h]until h==p($n+=$n)-$n
```
Ungolfed:
... |
[Question]
[
Let us consider a regular n-sided polygon where all of the sides are equal in length with n being a natural number larger than or equal to three. All of the vertices lie on the unit circle (circle of radius one centered at the origin) and one of the vertices is always at the coordinate (x,y)=(1,0). N... |
[Question]
[
Using named matching groups is often easier to understand than numbering groups but takes up more bytes. Given a regular expression as specified below, your program or function must convert named groups to numbered groups.
## Task
These specifications are based on python 3's re module.
A named group ... |
[Question]
[
# Background
A [rooted tree](https://en.wikipedia.org/wiki/Tree_(graph_theory)#Rooted_tree) is an acyclic graph such that there is exactly one path from one node, called the root, to each other node. A node `v` is called the *parent* of another node `u` if and only if the path from the root to `u` go... |
[Question]
[
## Challenge
Find the oxidation states of each of the atoms in a given molecule. These can be output as a list or otherwise.
## Rules
The total oxidation state of a molecule will always be zero. **The total oxidation state is the sum of the oxidation states of each of the individual atoms in the mole... |
[Question]
[
I used to play a game while I was in the car, it consisted in taking the `n-1` first numbers of another car plate and use operators and roots on them to get the `n`th number of the plate.
I could use the following operators and roots :
* addition (ex: 1 + 1 = 2)
* subtraction (ex: 2 - 4 = -2)
* divi... |
[Question]
[
**Input:**
2 numbers, x and y.
**Output:**
Output a text block where x is the width of the text block and y is the height of the text block. Then there will be a straight line going from the top left to the bottom right and to show it, there should be a # where the line should cross.
The # should be ... |
[Question]
[
Is there any better way to golf this (other than removing newlines/indentation)?
```
function(a,b,...)
local c=s(a,b)
local d=c
for i,v in ipairs{...} do d=d:push(v) end
return c
end
```
I'm particularly bothered by the double `local` usage, but as Lua does not have multiple assignment, and I... |
[Question]
[
You have been assigned the task of installing new locks to the company's building. However, the locks you use are quite unusual: they require some combination of keys to open. Now, you want to figure out which locks are the most secure, so you can prioritize the most important locations.
The keys you... |
[Question]
[
This is the first problem I've posted here; please post criticisms in comments.
## Summary
A game board consists of a starting space, an ending space, and between them are `N` spaces, each with an instruction. You begin on the starting space with `0` points to your credit. Flip a coin or roll a die t... |
[Question]
[
*This challenge is entirely fictional. There is no time limit for this challenge.*
My little brother is terrible with computers! He saved up all of his money to buy a new one, and within half an hour the hard drive was wiped and the only software left is a lousy BF interpreter. The worst part of it i... |
[Question]
[
# Cyclic Equivalence
Let `L` be a list of pairs of letters, for example `[(a,b), (a,c)]`. We call `L` a *list of commutators*. Two words are *cyclically equivalent over* `L`, if one can be transformed into the other using the following operations:
1. Cyclic shift: pop a letter from the beginning, and... |
[Question]
[
Your task is to create a program which outputs a completed tournament bracket given a list of entrants, their seeds, and their scores in each game; in the fewest characters possible.
**Input**
Your entrants will have the following data. You can organize your data in whatever form you like, but you *c... |
[Question]
[
## Setting
The Fry King is a small criminal mastermind from the western european nation of Belgium, more specifically Flanders. He has acquired every single fastfood restaurant in a large part of Belgium and set them out on a 101X49 grid (102 intersections horizontally, 50 vertically, including the b... |
[Question]
[
The point of the puzzle is to learn about [livelocks](https://en.wikipedia.org/wiki/Livelock):
Create a multi-threaded (or a multi-process) program, whose threads (processes) indefinitely try to wait for each other and never finish. Unlike a deadlock situation, the state of threads (processes) in a l... |
[Question]
[
Create a function which takes an integer and returns an array of integers representing the number in [balanced base twelve](http://shwa.org/reverse.htm). Specifically, the representation should follow these rules regarding 6 & -6 (from the above link):
>
> 1. If the last digit of a number could be w... |
[Question]
[
Write a program to print [Carmichael numbers](http://en.wikipedia.org/wiki/Carmichael_number). The challenge is to print the maximum number of them in less than 5 secs. The numbers should be in increasing order. Please do not use built in functions. Also please don't store the carmichael numbers in a... |
[Question]
[
Your input is a matrix (2d array) of positive integers. For example:
\begin{matrix}
1 & 1 & 4 & 7\\
1 & 3 & 5 & 6\\
2 & 1 & 4 & 5 \\
\end{matrix}
A semi-continuous transformation of this matrix is a rearranging of elements that preserves immediate neighbors. For example, we can swap the \$2\$ in the ... |
[Question]
[
# Farkle Fest 2k19
In this challenge, we will be playing the semi-popular dice game Farkle.
[Farkle](https://boardgamegeek.com/boardgame/3181/farkle) is a dice game that has players selecting to save dice or risk rerolling the die for more points to add to their total. Players should use probability,... |
[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/186529/edit).
Closed 4 years ago.
[Improve this question](/posts/186529/edi... |
[Question]
[
Graph theory is used to study the relations between objects. A graph is composed of vertices and edges in a diagram such as this:
```
A-----B
| / \
| / \
| / E
| / /
|/ /
C-----D
```
In the above diagram, `A` is linked to `B` and `C`; `B` is linked to `A`, `C`, and `E`; `C` is l... |
[Question]
[
In one of [this question's](https://codegolf.stackexchange.com/questions/141315/what-an-odd-function) bonuses I asked you to design a permutation on the natural numbers such that the probability of a random term being odd was \$1\$. Now let's kick it up a notch. I want you to design and implement a p... |
[Question]
[
### Introduction:
I think most people will know how darts work. But since some might not, here are the rules of playing Darts in a nutshell:
* Amount of players: 2
* Starting points: 501
* Goal: Get your points to 0 first
* Darts per player: 3
* Available numbers on the board: 1 through 20, and Bulls... |
[Question]
[
Your program is given a string consisting entirely of lowercase letters at STDIN (or closest alternative). The program must then output a truthy or falsey value, depending on whether the input is valid romaji.
## Rules:
* It must be possible to divide the entire string into a sequence of kana withou... |
[Question]
[
# Challenge
Given a the ID for a PPCG user who has existed for at least a month, output the average amount of reputation they gain per month. You can do this by dividing their reputation by the time since their account was created (which you can find on the profile). This should be returned floored; ... |
[Question]
[
Note: this is my first post here.
# The Challenge
The challenge is to count the number of chocolate chips in a cookie. A cookie in this case is a circle with dots (the chips) in it. Given any square cartoon image of this cookie, you are to write a bot that counts and outputs the number of chocolate c... |
[Question]
[
Earlier, [we talked about exponential generating functions (e.g.f.)](https://codegolf.stackexchange.com/questions/83001/golf-the-exponential-generating-function-of-tangent).
# Task
You will take a few terms of a sequence.
Your task is to find another sequence with that many terms, whose e.g.f., when ... |
[Question]
[
### Challenge
Create a quine, that instead of outputting it's source, output's it's source QWERTY-sorted.
### What is QWERTY sorting?
QWERTY sorting is sorting code by the QWERTY keyboard. Anything higher or more left is greater (`q` > `Q`, `\` > `/`) with presedence on higher. To check, find the loc... |
[Question]
[
# Is the path correct ?
Given a string, your program must determine whether or not Alice can reach Bob, following the signs on the map. You must return a truthy or falsy value.
The input string will contain the following characters :
* (space) and `\n`. Only used for padding.
* `>`, `<`, `^`, `v`, ar... |
[Question]
[
Imagine for a second that you can compose a tree out of dots.
```
.
...
.....
.......
.........
...........
.............
...............
...
...
```
This tree is 13 dots tall.
Now imagine for a second that your filesystem looked like these dots. Your task in t... |
[Question]
[
## Task
Write a program or function that will determine if a point in 3D space lies on a 2D parabolic curve.
---
## Input
3 points in 3D space
* vertex of a 2D parabolic curve
* arbitrary point on the curve
* arbitrary point in space
Input may be taken in any form (string, array, etc.) provided no ot... |
[Question]
[
## Back-story
After typing up your essay on your new Macbook, you look up at the screen and realize that you typed in ten pages of gibberish! Or is it? On further inspection, you come to find that your Option key was stuck this whole time and these special Option-key characters correspond to the ASCI... |
[Question]
[
"Counter" is a language I've created for the purpose of this question.
**Rules**
* Commands are read from left to right from the first character.
* Each command may be executed as it is read, or you may execute all commands together at the end.
* In case of an error, all commands up till the error mu... |
[Question]
[
A [Vigenère Cipher](https://en.wikipedia.org/wiki/Vigen%C3%A8re_cipher) is encrypted by repeating a keyword to be the length of the plaintext, and summing each character in that text with the corresponding letter in the plaintext modulo 26. (using A=0,B=1 etc.)
For example, if the keyword is `LEMON` ... |
[Question]
[
(This is my first Q here, and I don't know much about code golfing.)
Your aim is to predict the winner of an ongoing [Snakes and Ladders](https://en.wikipedia.org/wiki/Snakes_and_Ladders) game.
**INPUT**
* A single number (2-1000) indicating the number of spaces on the board, say *x*.
* Another numbe... |
[Question]
[
Since my use of [Element](https://github.com/PhiNotPi/Element) has increased recently, I am interested in tips for golfing programs written in it.
What general tips do you have for golfing in Element? I'm looking for ideas that can be applied to code golf problems in general that are at least somewha... |
[Question]
[
This is inspired by the [Brainf\*\*\* to tinyBF converter challenge](https://codegolf.stackexchange.com/questions/48628/brainf-to-tinybf-converter).
Brainf\*\*k (which will be henceforth referred to as BF) is a well-known estoric programming language, so I won't go over it too much here.
[Nameless la... |
[Question]
[
This code-golf challenge is based on [the following puzzle](https://puzzling.stackexchange.com/q/7882/4551):
>
> You have an odd number of tokens whose weights are known whole numbers, and they don't all have the same weight. Show that there's a token you can remove so that the remaining tokens can'... |
[Question]
[
This question is inspired by the game [Disco Zoo](https://play.google.com/store/apps/details?id=com.nimblebit.discozoo)
## Background
Disco Zoo is a game where you can go into the wild and rescue animals. Once you have found an animal you can put it in your zoo for your visitors to see.
To find anima... |
[Question]
[
So I really like to mess with tables and shallow and deep copies and [I can do it in 239 chars!](https://gist.githubusercontent.com/SoniEx2/fc5d3614614e4e3fe131/raw/c42011f2a3e01ef1884f65fb186a400127e6345b/tablecopy.min.lua) I wonder if there's a shorter way to do it...
Rules:
* It must be done in le... |
[Question]
[
You are a contractor for a company who designs electrical circuits for the various products they make. One day, the company accidentally gets a huge shipment of one-ohm resistors and absolutely nothing else, and give you the task of putting them to good use in the newest products they're making.
Your... |
[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 6 years ago.
[Improve this que... |
[Question]
[
# Input
[A CSV file](http://freetexthost.com/feytmnomjh), read from standard input, containing the 2011 college football scores with the 4 columns: Winner, Winner Score, Loser, Loser Score. For example,
```
Cincinnati,35,Connecticut,27
Pittsburgh,33,Syracuse,20
Baylor,48,Texas,24
```
This file was ge... |
[Question]
[
Create a Markov Chain generator, which generates (and outputs) an Order 4 text chain. It must be able to support all plain text formatting used on this question, so be sure to check for punctuation (parentheses count for example, but HTML doesn't need to be accounted for fortunately)! You could even ... |
[Question]
[
You are dealt five cards from a single deck. Implement a strategy for [Jacks or Better Video Poker](http://en.wikipedia.org/wiki/Video_poker#Jacks_or_Better) that has an expected revenue of *at least* [99.46%](http://wizardofodds.com/jacksorbetter/simple.html). Output the cards you want to hold.
The ... |
[Question]
[
Imagine you are given an array/string containing \$5\$ letters of the English alphabet, with each letter having any value from **A** to **Z** (inclusive).
Every *day*, each letter will perform a job, which can affect itself or other letters in the array. The letter's job is determined by the letter i... |
[Question]
[
[Conway's Game of Life](https://conwaylife.com/wiki/Conway%27s_Game_of_Life) is a cellular automaton "played" on an infinite grid, filled with cells that are either alive or dead. Once given an initial state, the board evolves indefinitely according to the following rules:
* Any live cell with 2 or 3... |
[Question]
[
A jigsaw puzzle consists of (usually rectangular-ish) pieces. On each side of a piece, there is either an edge or a *connector* (a term I made up). A connector is either a tab sticking out (outie) or a slot facing inwards (innie). Two pieces can be joined if the outie tab can fit into the innie slot.... |
[Question]
[
Given a list of N lists, each containing M positive integers, and a separate list of M positive integers (target values), return a list of N scalars (integers with a value of 0 or more) that correspond to each list in the lists of lists, such that when each value in a list is multiplied by it's scala... |
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.