text stringlengths 180 608k |
|---|
[Question]
[
**This question already has answers here**:
[Polynomial Interpolation](/questions/1729/polynomial-interpolation)
(3 answers)
Closed 10 years ago.
Given a set of space-delimited integers, you've gotta either return a function that can generate that sequence, or return "There isn't any such func... |
[Question]
[
I assume everyone here is familiar with the Caesar Cipher that shifts letters to a certain index. <https://en.wikipedia.org/wiki/Caesar_cipher> for those who still needs introduction.
But, we can all agree that plain Caesar is unfun and way too easy. So here's a version that also shifts characters ar... |
[Question]
[
## Background
Malbolge is truly intriguing language. But programs written in it are also extraordinairly huge (and in some cases, unpostable on PPCG).
Your challenge (shall you accept it) is, to compress and decompress given normalized Malbolge program. Devise your own lossless algorithm. You may com... |
[Question]
[
Define `f(a,b) := a if b=1; a^f(a,b-1) if b>1` ([Tetration](https://en.wikipedia.org/wiki/Tetration), where `^` means power) for positive integers `a` and `b`, given four positive integers `a,b,c,d`, compare `f(a,b)` and `f(c,d)`.
Your program should output three constant values to mean "greater", "l... |
[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/95705/edit).
Closed 7 years ago.
[Improve this question](... |
[Question]
[
**This question already has answers here**:
[Polynomial Interpolation](/questions/1729/polynomial-interpolation)
(3 answers)
Closed 7 years ago.
For this challenge, **when given a list of (x,y) points your submission needs to output a polynomial function that goes through all of them**.
For ex... |
[Question]
[
There is a parade marching through a city! There are 3 main groups of marchers: the (B)and, Poster (C)arriers, and (F)lag Holders. Also, every (P)oliceman in the whole city is on duty.
Flag holders (F) can march anywhere in the parade, but two flag holders cannot march next to each other, unless thre... |
[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/48077/edit).
Closed 8 years ago.
[Improve this question](... |
[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.
---
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]
[
**Closed.** This question is [off-topic](/help/closed-questions). It is not currently accepting answers.
---
This site is for programming contests and challenges. **General programming questions** are off-topic here. You may be able to get help on [Stack Overflow](http://stackoverflow.com/about)... |
[Question]
[
**Closed.** This question is [off-topic](/help/closed-questions). It is not currently accepting answers.
---
**Want to improve this question?** [Update the question](/posts/2539/edit) so it's [on-topic](/help/on-topic) for Code Golf Stack Exchange.
Closed 12 years ago.
[Improve this question](/po... |
[Question]
[
Modern hardware can perform multiplication very fast in a constant latency of 3~4 cycles. But some tiny chips for embedded environments sometimes lack hardware multiplication, which has to be emulated by a series of instructions.
### Goal
You are given a primitive CPU with a set of basic operations. ... |
[Question]
[
## Challenge
Your challenge is simple, calculate the depth of each matching brackets in the given input e.g. `(()()(()))`->`[[1,1,[1]]]`, and output it in the form of a list/array/string representation
## Explanation:
For every bracket in the input, you have to count how many nested brackets there ar... |
[Question]
[
How do I remove all duplicates from list and order it based on count?
```
s = ["foo", "this", "lem", "foo", "lem"]
s = ["foo", "ebh", "wosv", "wosv", "ebh", "4whcu"]
#should return
>>> ["foo", "lem", "this"]
>>> ["ebh", "wosv", "foo", "4whcu"]
```
**Rules:**
* Must be shorter than the below code in t... |
[Question]
[
Let's say you have a sentence like:
```
this is a very long sentence with several words of no significance
```
It contains only the 26 lowercase letters of the alphabet and spaces.
And you have a dictionary, where each word contains any number of the 26 lowercase letters and nothing else:
```
henge
r... |
[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/200624/edit).
Closed 3 years ago.
[Improve this question](/posts/200624/edi... |
[Question]
[
The problem has 3 inputs.
**L**: a list of all numbers
**size**: the size each set can be
**max**: the max sum amongst each set
The challenge is as follows:
Given L, size and max, construct as many sets from L such that the number of elements is **size** and the sum of each of the elements does not e... |
[Question]
[
**This question already has answers here**:
[Expand the number](/questions/68939/expand-the-number)
(27 answers)
Closed 4 years ago.
Write a function to produce, for a non-negative integer, a string containing a sum of terms according to the following:
```
3 -> "3"
805 -> "800 + 5"
700390 -> "... |
[Question]
[
GHC command line errors can be horrible, lets make them as bad as possible. To disincentivize very long programs use the following formula to calculate your "score".
```
(# of bytes of GHC output) / 2^(8 + # of bytes of code)
```
Template Haskell is banned as there is probably a TH configuration wher... |
[Question]
[
**This question already has answers here**:
[Exploring the xorspace](/questions/124703/exploring-the-xorspace)
(8 answers)
Closed 5 years ago.
ProSet is a classic card game that is played normally with 63 cards. One card has 6 colored dots on it, like below
[
(27 answers)
Closed 5 years ago.
...or "[snakes but not too long](https://www.xkcd.com/1354/)".
Inspired by [this challenge](https://cod... |
[Question]
[
Write a program that reviews posts for the Close Votes queue on Stack Overflow.
Since it's near-impossible to write a bot that can accurately review posts in the actual queue, **we're instead going to use a grossly oversimplified version of the queue and its rules.**
Your program should take in the b... |
[Question]
[
### Challenge closed, the shortest answer has been acccepted.
A military projection is a projection where all lengths and the angles in the X-Z plane remain unattuned.
Your task is to print a cube in military projection using `/`, `|`, `\`, `-`, and any whitespaces you want, given any integer greater... |
[Question]
[
### You're in charge of distributing T-Shirts to everyone. Simple enough, right? But remember, there are different sizes of T-Shirts, and you have to keep that in mind...
# Challenge Specifications
There are `N` T-Shirt sizes. There are `K` people. Each person may wear any T-Shirt that is larger than... |
[Question]
[
Write a function or program that awards you SE badges. If an input "Q" is given it means you have asked a question. If no input is given it means you have only visited the site.\*
Badges it must support:
* Run script 30 days in a row: "Enthusiast"
* Run script 100 days in a row: "Fanatic"
* Input "Q"... |
[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]
[
**This question already has answers here**:
[One Ring to rule them all. One String to contain them all](/questions/13088/one-ring-to-rule-them-all-one-string-to-contain-them-all)
(21 answers)
Closed 9 years ago.
There's a simple digital number lock. After each button press the lock checks if t... |
[Question]
[
A **limit** in math determines the value that a function `f(x)` **approaches** as `x` gets closer and closer to a certain value.
Let me use the equation `f(x)=x^2/x` as an example.
Obviously, `f(x)` is undefined if x is 0 (x=0, x2=0, 0/0 is undefined).
But, what happens when we calculate `f(x)` a... |
[Question]
[
**Problem**
There is a circular track containing fuel pits at irregular intervals. The total amount of fuel available from all the pits together is just sufficient to travel round the track and finish where you started. Given the the circuit perimeter, list of each fuel pit location and the amount of... |
[Question]
[
## Knapsack Problem
(Actually, this is a **subset of real [knapsack problem](http://en.wikipedia.org/wiki/Knapsack_problem)**.... - there's nothing to optimize!)
The knapsack problem is:
>
> Given positive integers , an... |
[Question]
[
**This is an [ai-player](/questions/tagged/ai-player "show questions tagged 'ai-player'") challenge.** Your goal is to reach the number 2011 as quickly as possible, or to get as close to it as you can.
**Rules:**
* A "hole" consists of a rectangular grid of digits (0-9).
* Your total starts at 0.
* Y... |
[Question]
[
Write a program that does one step of the computation of factorial, then, generate (quine) a new program, and performs the rest of the process in the new program
The seed and spawned programs will have a variable n for the factorial to be computed and m for the accumulator.
I don't care if you use sc... |
[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 3 years ago.
[Improve this que... |
[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 10 years ago.
[Improve this qu... |
[Question]
[
**This question already has answers here**:
[Visualize the Euclidean algorithm again](/questions/119714/visualize-the-euclidean-algorithm-again)
(9 answers)
Closed 4 months ago.
The [Euclidean GCD Algorithm](https://en.wikipedia.org/wiki/Euclidean_algorithm) is an algorithm that efficiently co... |
[Question]
[
# Sokobunny 1
**You *love* buns!**
You love them so much, that you chased one down a bunburrow. The burrows are like mazes, and **YOU WANT TO CATCH THE FLUFFBALLS!!!!** However, the buns are smart! You can't catch the bun by by chasing after it, as you *wait out of politeness for the buns*.
Taken fro... |
[Question]
[
I'm recieving 2-dimensional positions of two objects as a string with this format: `x1,y1,x2,y2`. The string is recieved from a `readline` call (replaced in the snippet with a `prompt`).
In order to get the horizontal and vertical position differentials, I'm writing the following code:
```
[x1,y1,x2,... |
[Question]
[
Yes, I know there are already [three](https://codegolf.stackexchange.com/questions/105331/pokemon-type-chart-and-dual-type-chart) [pokemon type](https://codegolf.stackexchange.com/questions/1574/the-most-durable-pokemon-types) [questions](https://codegolf.stackexchange.com/questions/55823/its-super-e... |
[Question]
[
## Wanna be an Alchemist
I've been watching Full Metal Alchemist these past days and I've been wondering, It is really possible to trans-mutate matter? In the real world, I don't know if it is possible, but in the machine world, we think we "can".
---
**Problem**
Your task is, Given an input of N che... |
[Question]
[
UBASIC is a freeware [basic](/questions/tagged/basic "show questions tagged 'basic'") interpreter written by Yuji Kida at Rikkyo University in Japan, specialized for mathematical computing. It is considered to be a "ready-to-run" language that and is capable of running on DOS and Windows.
What genera... |
[Question]
[
Given 2 random circle sections, return how many times they intersect. Rules/clarifications are as below.
1. You are provided 10 total values,
* The center (x,y) of the circle section
* Angles of the circle (i.e. (0,90) would be a quarter circle "facing" the top-right corner.
* The radius of the ci... |
[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/114615/edit).
Closed 6 years ago.
[Improve this question](/posts/114615/edi... |
[Question]
[
So, recently, I found myself reformatting my code for Vitsy to using anonymous class instances for commands rather than the normal method approach. For those who don't know, anonymous class instance syntax looks something like this:
```
...
private abstract static class SomeClass {
public abstrac... |
[Question]
[
For the purpose of this question, a magic square is an `n`×`n` square of (not necessarily distinct) positive integers, where all rows, columns, and main diagonals add to a "magic constant" `m`.
### Your Task
Create a function or full program that, given the magic number `m` and a list representing a ... |
[Question]
[
## Introduction
You're an American spy during the heat of the Cold War and you've managed to intercept a Russian message. Immediately you recognise it as a code stick cipher and wrap it around a pencil. Looking at the paper on the pencil, you don't see anything. Then you try a bigger pencil, and you ... |
[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/36166/edit).
Closed 9 years ago.
[Improve this question](/posts/36166/edit)... |
[Question]
[
Few years ago, an esoteric programming language named [아희(Aheui)](http://esolangs.org/wiki/Aheui) was created. Well, actually you don't need to know about this language or Korean characters.
Aheui uses stacks and a queue, but this time we use **one stack** and ignore other stacks and queue. You can *... |
[Question]
[
You dudes, the [Most Excellent Adventure](http://1d4chan.org/wiki/Most_Excellent_Adventure) is a home brew roleplaying game system based on the Bill & Ted Films, *plays gnarly air guitar riff*.
In this game system, when you draw from your dice pool (you have between 1 and 12 ten-sided dice, with fac... |
[Question]
[
Permutations of a set have a natural order called lexicographic order in which two permutations are compared by comparing the first position at which they differ. For the purposes of this question we're working with base 64 and the order of the digits is
```
ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmno... |
[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/23476/edit).
Closed last year.
[Improve this question](/posts/23476/edit)
... |
[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 6 years ag... |
[Question]
[
**This question already has answers here**:
[Generate Pascal's triangle](/questions/3815/generate-pascals-triangle)
(68 answers)
Closed 10 years ago.
the contest is already finished, so I don't think it's cheating to ask:
I am trying to optimize this small contest: [pascal triangle](https://ww... |
[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/6256/edit).
Closed 7 years ago.
[Improve this question](/posts/6256/edit)
... |
[Question]
[
Check printer function (or subroutine) - Convert to English text from the input value. 12.34 -> "twelve dollars and thirty four cents". For the range .01 to 9999.99 assuming valid input.
[Answer]
# Common Lisp, 95
Newline not counted in:
```
(lambda(n &aux(d(floor n))(c(round(*(- n d)100))))
... |
[Question]
[
Write the shortest program to build a [cdb](http://cr.yp.to/cdb.html) database, using the following [syntax](http://cr.yp.to/cdb/cdbmake.html) for input:
```
+*klen*,*dlen*:*key*->*data*
```
followed by a newline. Example:
```
+3,5:one->Hello
+3,7:two->Goodbye
```
(Unlike the real [cdbmake](http://cr... |
[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/525/edit).
Closed 1 year ago.
[Improve this question](/posts/525/edit)
Wri... |
[Question]
[
**This question already has answers here**:
[Mirror quine (or my head hurts)](/questions/16043/mirror-quine-or-my-head-hurts)
(9 answers)
Closed 5 months ago.
Write a program that outputs its source code in reverse when run, and outputs its source forwards when I reverse the source. If your pr... |
[Question]
[
Heading into the final day of regular season games for the 2023 NBA season, the fifth to ninth seeds in the Western Conference were still very undecided. Four games would determine the seeding:
* New Orleans (N) at Minnesota (M)
* Utah at LA Lakers (L)
* Golden State (G) at Portland
* LA Clippers (C)... |
[Question]
[
This is the follow up question to standard [Sudoku solver](https://leetcode.com/problems/sudoku-solver/).
You are given a Sudoku grid where `.` represents an empty cell and the other cells are filled with numbers `0-8` (inclusive).
Rules:
* All the numbers in Sudoku must appear exactly once in all le... |
[Question]
[
Your friend Jack is a picky eater. He only likes certain foods, and he only likes to eat a certain amount of them each day. Despite this, Jack has very strict calorie and macronutrient goals that he strives to meet with his diet. To complicate things further, Jack's cravings change day by day, and he... |
[Question]
[
Summer Klerance turned in her term assignment for this [**challenge**](https://codegolf.stackexchange.com/questions/231585/a-suitable-mission#231761). Her professor was miffed (but also amused) when he overheard a disgruntled classmate of Summer's saying she got her answers by simulation rather than ... |
[Question]
[
Here in Russia, we have a little-known card game with the name, when translated directly, means Rooster.
The cards used are two full 54-card decks of playing cards from 2 through aces, with jokers. The game for each player divides into two stages. In the first stage, each player has 14 cards dealt, a... |
[Question]
[
Symja is a ["computer algebra language & Java symbolic math library for Android NCalc calculator"](https://github.com/axkr/symja_android_library). It's a fun little language, so I'm wondering if y'all have any tips for golfing in Symja.
~~As per usual, "remove comments", etc, isn't really an answer.... |
[Question]
[
Given a sequence \$S\$ with length \$n\$ of exactly one each of whole numbers from \$1\$ to \$n\$, your task is to return a number \$\sigma\$ indicating how shuffled it is.
# Definition of shuffledness
Humans perceive shuffling randomness locally [Citation Needed], so the shuffledness of a sequence 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/196122/edit).
Closed 4 years ago.
[Improve this question](/posts/196122/edi... |
[Question]
[
**This question already has answers here**:
[Coding Convention Conversion](/questions/70180/coding-convention-conversion)
(19 answers)
Closed 4 years ago.
# Introduction
All these snakes everywhere! I've had enough, and have decided that I much prefer camels. Therefore, I want you to convert m... |
[Question]
[
**This question already has answers here**:
[Bytes/Character](/questions/83673/bytes-character)
(30 answers)
Closed 4 years ago.
Given a UTF-8 string, give a string that represents byte counts of each characters.
**Rules:**
1. As long as the input string is encoded in UTF-8 **(without BOM)**, ... |
[Question]
[
What are some tips for golfing in [Turing Machine But Way Worse](https://github.com/MilkyWay90/Turing-Machine-But-Way-Worse), a language made by [MilkyWay90](https://codegolf.stackexchange.com/users/83048/milkyway90) and [ASCII-only](https://codegolf.stackexchange.com/users/39244/ascii-only)?
Tips sh... |
[Question]
[
This question was inspired by Tom Scott's video [here](https://www.youtube.com/watch?v=zp4BMR88260 "Tom Scott").
The English language has plenty of words, but what's the longest one that can be displayed on a seven segment display? Your challenge is given a list of letters that may **not** be display... |
[Question]
[
A [spoonerism](https://en.wikipedia.org/wiki/Spoonerism) is what you get when swap the beginnings of two adjacent words in a sentence. In this challenge, we'll try to find a plausible spoonerism based on one incorrect word.
So, given a list of words\*\* and an input word that is **NOT** in the dictio... |
[Question]
[
**This question already has answers here**:
[Rational Polynomial Interpolation](/questions/151436/rational-polynomial-interpolation)
(3 answers)
Closed 5 years ago.
# Introduction
A sequence of numbers is passed in as the input. The program has to generate the lowest degree polynomial possible... |
[Question]
[
**Yabasic**, or **Y**et **A**nother **Basic** is a dialect of [basic](/questions/tagged/basic "show questions tagged 'basic'") created by Marc-Oliver Ihm that may be run on Windows, Unix and PAL versions of the Sony PlayStation 2. Development for this language is ongoing.
>
> **Helpful Resources**
... |
[Question]
[
If you're sad, that's *wrong*. We need to scrub out ALL sadness.
This is a sad face, for reference:
```
......
.S..S.
........
...SS...
..SS..SS..
.S......S.
........
```
Where `S` is a consistent pixel, `.` is any pixel other than `S`, and is any pixel. Note that the sad face is not a... |
[Question]
[
**This question already has answers here**:
[A subset of Verbal arithmetic](/questions/1680/a-subset-of-verbal-arithmetic)
(5 answers)
Closed 6 years ago.
## Task
The letters spell out actual words, but if you replace each letter with a digit from 0–9, it also “spells” an arithmetic equation. ... |
[Question]
[
**This question already has answers here**:
[Levenshtein Distance](/questions/67474/levenshtein-distance)
(23 answers)
Closed 6 years ago.
>
> Oops, Auto-correct.
>
>
>
You have a word. But it's wrong. You wonder what word it would be. Thankfully, being a code golfer, You can make a code t... |
[Question]
[
The Zachtronics game TIS-100 contains a graphics display called the visualization module. I could try and explain the specs of this module, but the game's manual will do a better job:
[](https://i.stack.imgur.com/R18L6.png)
(As you m... |
[Question]
[
**This question already has answers here**:
[Given an input, move it along the keyboard by N characters](/questions/50336/given-an-input-move-it-along-the-keyboard-by-n-characters)
(9 answers)
Closed 6 years ago.
# Challenge
Given a string with any characters a-z or A-Z, return an 'encrypted' ... |
[Question]
[
# Introduction
In the game [*The Witness*](https://en.wikipedia.org/wiki/The_Witness_(2016_video_game)) (*possible spoilers ahead*) there is a group of puzzles that involve drawing a Tetris piece with your line while making sure that the symbol for the Tetris piece your currently drawing stays contai... |
[Question]
[
[B-splines](https://en.wikipedia.org/wiki/B-spline) are defined using a set of "knots", "control points", and degree. For the purposes of this challenge, the control points are not needed.
The knots are simply a list of strictly increasing real values (note that real B-splines may have repeated knots... |
[Question]
[
Your task is to write a program or function that detects accents in UTF-8 input. The catch is that your code must be written entirely in an 8-bit character encoding. The code will output a single integer which is the count of the number of accented letters in the input. Since Unicode is huge, the tes... |
[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/45375/edit).
Closed 9 years ago.
[Improve this question](/posts/45375/edit)... |
[Question]
[
Your mission, should you choose to accept it, is to write code for a GPS receiver.
## Input
* The current time, as nanoseconds from the Unix epoch. [EDIT: This is optional, please state whether you require it]
* Four satellite signals, in the following format:
+ The time the signal was sent, as nano... |
[Question]
[
**This question already has answers here**:
[Write a base X to base Y function [duplicate]](/questions/4423/write-a-base-x-to-base-y-function)
(3 answers)
Closed 9 years ago.
What your function must do:
be as short (in bytes) as possible
take 3 inputs that are strings: number , fromdigits,... |
[Question]
[
Input will be one or more space separated characters followed by a long string on STDIN or as an argument when called from the shell.
```
a C
WAtcIaElCpVqDRavOUejlgumcRCpfIWlaRFZpIoPYsWjsBSdlYfitfAPHpemiLpjaHheUGpFVQoZCnSCFgvpVzcoibdffoPRoJJwLIjVicPCdcvITXaQDjtMgrxQMZCkZNFmNqwGQYaSyPpdLOkAVHGVoVBiIks... |
[Question]
[
The string `2123132133` has the property that no subsequence of length 3 is the same as any other subsequence of length 3.
Your task is to build a program that will output as long of a string as possible that satisfies this property for sequences of length 9 with the characters from `1` to `9`.
The s... |
[Question]
[
Given an MxN grid of numbers, find the greatest product of a length 4 subsequence in any row, column, or diagonal. Subsequences *cannot* wrap around (e.g. `5 1 2 3` in the row `1 2 3 4 5`).
I/O can be anything reasonable: files, stdin/stdout, copy+pasting expressions/arguments, variables. (If I'm mis... |
[Question]
[
Alex is a Truck Driver who wants to find the quickest way to deliver goods to multiple cities. He knows the distances between his destinations, but you need to write a program to help him find the quickest way to deliver goods to them.
**Input**
The first line of input gives the number of cities Alex... |
[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]
[
Consider an array A of integers of length n. The k-max subarray sum asks us to find up to \$k \leq 3\$ (contiguous) non overlapping subarrays of A with maximum sum. If A is all negative then this sum will be 0. If A = [-1, 2, -1, 2, -1, 2, 2] and k=2 for example, then the two subarrays could be [2, -... |
[Question]
[
This challenge arises from a claim made in [a MathOverflow answer](https://mathoverflow.net/a/291608) and a paper linked in that answer which seems to back up the claim:
>
> Searching for triangular embeddings is much quicker than enumerating over all embeddings… In fact, [Jungerman](https://core.ac... |
[Question]
[
**This question already has answers here**:
[What's a half on the clock?](/questions/68031/whats-a-half-on-the-clock)
(23 answers)
Closed 3 years ago.
We know that not all fractions have a terminating binary representation. However every fraction can be written as a leading portion followed by... |
[Question]
[
**This question already has answers here**:
[Yarr! A map to the hidden treasure!](/questions/54301/yarr-a-map-to-the-hidden-treasure)
(17 answers)
Closed 4 years ago.
(This is not a duplicate of [Follow the path](https://codegolf.stackexchange.com/questions/68282/follow-the-path), as this chal... |
[Question]
[
Print the ASCII version of a random grid.
```
################################################################################
# # # # # # # # # # # # # # # # # # #
# # # # # # # # # # # # # # # # # # #
# # ###... |
[Question]
[
This is a more complicated version of [this puzzle](https://codegolf.stackexchange.com/q/189515/73483). The premise is the same but a few rules differ in a few key places, making for a more complex problem.
Assume I have some number of black shirts and some number of white shirts, both at least 1. Bo... |
[Question]
[
For example, how many adjacent swaps are at least needed to convert some string such as `BVVKCV` to one without any instances of `VK`?
Input-length of the string will be within the range `1 <= length <= 200`.
`VK` will be hardcoded across all test cases.
Input string examples:
```
Input: VKVKVVVKV... |
[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/172627/edit).
Closed 5 years ago.
[Improve this question](/posts/172627/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/171296/edit).
Closed 5 years ago.
[Improve this question](/posts/171296/edi... |
[Question]
[
### Backstory
If you visit the [Steward Badge Page](https://codegolf.stackexchange.com/help/badges/81/steward), you will see no one has received one of these badges from PPCG yet. However, there are two users:
**[DJMcMayhem](https://codegolf.stackexchange.com/users/31716/djmcmayhem)** & **[Martin End... |
[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... |
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.