text stringlengths 180 608k |
|---|
[Question]
[
May be you know [the game of Set](http://www.setgame.com/set/daily_puzzle) (a wonderful game for kids btw) a card game with 81 cards, where each card has a figure on it with 4 different attributes (form , number, colour and fill). Each attribute has 3 different values:
```
form: wave, oval, diamond
c... |
[Question]
[
Here is a simple, bite-sized (byte-sized?) code golf: given a non-empty list of positive integers less than 10, print a [block-diagonal](http://en.wikipedia.org/wiki/Block_matrix#Block_diagonal_matrices) matrix, where the list specifies the size of the blocks, in order. The blocks must consist of pos... |
[Question]
[
In Excel, the columns range from `A-Z, AA,AB,AZ,BA,..,BZ` and so on. They actually each stand for numbers, but rather are encoded as alphabet strings.
In this challenge, you will be given a string of alphabets, and you must calculate the column it corresponds to.
Some tests:
>
> 'A' returns 1 (meani... |
[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/192889/edit).
Closed 4 years ago.
[Improve this question](/posts/192889/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/189559/edit).
Closed 4 years ago.
[Improve this question](/posts/189559/edi... |
[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.
---
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 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/181701/edit).
Closed 4 years ago.
[Improve this question](/posts/181701/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/179730/edit).
Closed 5 years ago.
[Improve this question](/posts/179730/edi... |
[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/177049/edit).
Closed 5 years ago.
[Improve this question](/posts/177049/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/167675/edit).
Closed 5 years ago.
[Improve this question](/posts/167675/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/165926/edit).
Closed 5 years ago.
[Improve this question](/posts/165926/edi... |
[Question]
[
You must write a program that evaluates a string that would be entered into an advanced calculator.
The program must accept input using stdin and output the correct answer. For languages that do no have functions to accept stdin, you may assume the functions `readLine` and `print` to handle these tas... |
[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/158044/edit).
Closed 5 years ago.
[Improve this question](/posts/158044/edi... |
[Question]
[
Given a string as input, output one or more variants of the string such that:
* No character is in it's original position
* No character is adjacent to a character that it was originally adjacent to
You can assume this will always be possible for the given string, and will only contain single case al... |
[Question]
[
# Can these rectangles fill a rectangular space?
Given a bunch of rectangles, you are asked whether or not they can be arranged to fill a rectangular space.
## Specs
Given a bunch of arbitrary `m x n` rectangles; `0 <= m, n <= 1000`, determine whether or not it is possible to arrange them so that the... |
[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/118630/edit).
Closed 6 years ago.
[Improve this question](/posts/118630/edi... |
[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 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/114798/edit).
Closed 6 years ago.
[Improve this question](/posts/114798/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/112915/edit).
Closed 6 years ago.
[Improve this question](/posts/112915/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/109602/edit).
Closed 7 years ago.
[Improve this question](/posts/109602/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/109476/edit).
Closed 7 years ago.
[Improve this question](/posts/109476/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/109387/edit).
Closed 7 years ago.
[Improve this question](/posts/109387/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/109142/edit).
Closed 7 years ago.
[Improve this question](/posts/109142/edi... |
[Question]
[
So... uh... this is a bit embarrassing. But we don't have a plain "Hello, World!" challenge yet (despite having 35 variants tagged with [hello-world](/questions/tagged/hello-world "show questions tagged 'hello-world'"), and counting). While this is not the most interesting code golf in the common lan... |
[Question]
[
This challenge is to score a Cribbage hand. If you don't play Cribbage, you've got some learning to do. We play with a standard poker deck, and a hand consists of four cards plus the "up card". There are two types of hand: normal, and a 'crib hand'.
Cards come in the format `vs` where `v` is one of: ... |
[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/102193/edit).
Closed 7 years ago.
[Improve this question](/posts/102193/edi... |
[Question]
[
Here's an interesting challenge...
I want you to golf code that when executed will allow your input to be converted to mimic output as though you were typing on a DVORAK keyboard layout.
The aim is to mimic the US Simplified Dvorak Keyboard (US:SDK)
. It is not currently accepting answers.
---
**Want to improve this question?** Add details and clarify the problem by [editing this post](/posts/97538/edit).
Closed 7 years ago.
[Improve this question](/posts/97538/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/95988/edit).
Closed 7 years ago.
[Improve this question](/posts/95988/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 7 years ago.
[Improve this que... |
[Question]
[
Given an unsorted list of unique, positive integers, output the shortest list of the longest possible ranges of sequential integers.
# INPUT
* An unsorted list of unique, positive integers
+ e.g. `9 13 3 11 8 4 10 15`
* Input can be taken from any one of the following:
+ `stdin`
+ command-line arg... |
[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/89756/edit).
Closed 7 years ago.
[Improve this question](... |
[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/89126/edit).
Closed 7 years ago.
[Improve this question](/posts/89126/edit)... |
[Question]
[
Objectives: Output a String which contains every positive integer strictly below 1000.
The obvious answer would be to concatenate every one of them, and that would create a String of 2890 characters (thanks manatwork), to avoid this kind of easy answer, the length of the string must be under 1500 cha... |
[Question]
[
There is a well-known theorem that [any permutation can be decomposed into a set of cycles](http://en.wikipedia.org/wiki/Permutation#Notation). Your job is to write the shortest possible program to do so.
## Input:
Two lines. The first contains a number `N`, the second contains `N` distinct integers ... |
[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/80761/edit).
Closed 7 years ago.
[Improve this question](/posts/80761/edit)... |
[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]
[
Write a program that prints its own source code out backwards, in other words an *eniuq*.
**Scoring:**
* +50 if you use pull data from the Internet.
* +25 if you read your own source code.
* +1 point per character
* Lowest score wins.
**Rules:**
* No using other files (e.g. `reverse.txt`)
* Minimum ... |
[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 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/71736/edit).
Closed 3 years ago.
[Improve this question](/posts/71736/edit)... |
[Question]
[
**Your task** is to program a robot so that it reaches the hole in the ground on each of the maps within reasonable time. If the robot reaches the hole, it falls down into it and thus victory is assured, even if the program never stops running.
Since the robot has to be programmed by manually punchin... |
[Question]
[
**This question already has answers here**:
[Cryptographic quine variant](/questions/8947/cryptographic-quine-variant)
(4 answers)
[Golf you a quine for great good!](/questions/69/golf-you-a-quine-for-great-good)
(453 answers)
Closed 8 years ago.
Challenge: make a program that outputs a [MD... |
[Question]
[
Suppose you're given some distinct uppercase letters scattered in a rectangular array of otherwise-blank cells. Each cell in the array *belongs* to the letter *nearest* to it, defined as the letter reachable in the smallest number of horizontal and/or vertical steps -- no diagonal steps. (If a cell 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/6284/edit).
Closed 6 years ago.
[Improve this question](/posts/6284/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/61922/edit).
Closed 8 years ago.
[Improve this question](/posts/61922/edit)... |
[Question]
[
In this task you have to write a program that reads a regular expression and generates another program that outputs whether an input string is accepted by that regular expression. The output must be a program written in the same language as your submission.
# Input
The input is a regular expression *... |
[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/61144/edit).
Closed 8 years ago.
[Improve this question](/posts/61144/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/59870/edit).
Closed 8 years ago.
[Improve this question](/posts/59870/edit)... |
[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 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/49955/edit).
Closed 8 years ago.
[Improve this question](/posts/49955/edit)... |
[Question]
[
**This question already has answers here**:
[Four Squares Together](/questions/28169/four-squares-together)
(16 answers)
Closed 8 years ago.
## Sum of squares
Goal: Write a given natural number as sum of squares. Thanks to Lagrange, Fermat and Legendre we know that you can write any positive 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/48293/edit).
Closed 8 years ago.
[Improve this question](/posts/48293/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/47439/edit).
Closed 8 years ago.
[Improve this question](/posts/47439/edit)... |
[Question]
[
The [Vigenère cipher](http://en.wikipedia.org/wiki/Vigen%C3%A8re_cipher) was a simple polyalphabetic cipher that basically applied one of several Caesar ciphers, according to a key. Basically the letters in the key indicate which shifted alphabet to use. To that end there was a simple tool, called t... |
[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/45139/edit).
Closed 9 years ago.
[Improve this question](/posts/45139/edit)... |
[Question]
[
Your challenge today is to implement a [t9](http://en.wikipedia.org/wiki/T9_(predictive_text))-like functionality.
You will implement a function that will only have 2 parameters.
You will receive 1 phone number in a string and the content of a text file with a list of words (don't assume a specific... |
[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]
[
**This question already has answers here**:
[Render "Digital Clock Style" Numbers](/questions/997/render-digital-clock-style-numbers)
(40 answers)
Closed 9 years ago.
The challenge is make a digital clock that exhibits ascii numbers in a 24-hour format like:
```
_ _ _ _
|_| |_| . |_|... |
[Question]
[
**This question already has answers here**:
[Look and say sequence [duplicate]](/questions/2323/look-and-say-sequence)
(25 answers)
Closed 9 years ago.
There is a sequence of numbers called the "Look-and-Say Numbers".
Here is an example of the first 5 terms of the sequence, starting at 1 (with... |
[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/6380/edit).
Closed 5 years ago.
[Improve this question](/posts/6380/edit)
... |
[Question]
[
# preface
In a very heated situation you have to go even further with golfing.
(e.g. in a challenge where your answer is 100 characters long and it is just embarrassing that you couldn't make it 99)
In that case, from now on you use the winner's algorithm of this challenge :)
# goal
You have to... |
[Question]
[
**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/6454/edit).
Closed 2 years ago.
[Improve this question](/posts/6454/edit)
... |
[Question]
[
**This question already has answers here**:
[Golf a mutual quine](/questions/2582/golf-a-mutual-quine)
(17 answers)
Closed 9 years ago.
Write a program in language A which outputs a program in language B where:
1. Language A != Language B
2. The output is itself a solution to this question.
Th... |
[Question]
[
**This question already has answers here**:
[Convert radicals to mixed & entire radicals and to real numbers [closed]](/questions/18535/convert-radicals-to-mixed-entire-radicals-and-to-real-numbers)
(5 answers)
Closed 10 years ago.
Given integers a and b in the format a√b (a on the square root... |
[Question]
[
**Closed.** This question is [off-topic](/help/closed-questions). It is not currently accepting answers.
---
Questions without an **objective primary winning criterion** are off-topic, as they make it impossible to indisputably decide which entry should win.
Closed 7 years ago.
[Improve this que... |
[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/2336/edit) so it's [on-topic](/help/on-topic) for Code Golf Stack Exchange.
Closed 12 years ago.
[Improve this question](/po... |
[Question]
[
**This question already has answers here**:
[2048-like array shift](/questions/95409/2048-like-array-shift)
(51 answers)
Closed 4 years ago.
I have a fixed length vector of 4 elements. The inputs of which are always 0 or 2^n for n = 1 to 15 (so n = 0 excluded i.e. 2^0 = 1 will not appear)
`x =... |
[Question]
[
Your mission, even if you don't accept it, is to input three numbers from STDIN or file:
>
> 5 0.5 6
>
>
>
What you must do is evaluate this:
>
> (5a + 0.5b)^6
>
>
>
This basically means that the first two numbers are the coefficients of a and b and the third is the exponent in a binomial exp... |
[Question]
[
A completely even number is a positive even integer whose divisors (not including 1) are all even.
Some completely even numbers are:
* 2 (divisors: 2, 1)
* 4 (divisors: 4, 2, 1)
* 16 (divisors: 16, 8, 4, 2, 1)
* 128 (divisors: 128, 64, 32, 16, 8, 4, 2, 1).
Some *non*-completely even numbers are:
* 10... |
[Question]
[
**Closed**. This question needs to be more [focused](/help/closed-questions). It is not currently accepting answers.
Closed 9 years ago.
**Locked**. This question and its answers are [locked](/help/locked-posts) because the question is off-topic but has historical significance. It is not currentl... |
[Question]
[
**This question already has answers here**:
[Output your Score!](/questions/160646/output-your-score)
(188 answers)
Closed 4 years ago.
# Introduction
A quine is a program that takes no input and produces a copy of its own source code as output. Writing a quine is a standard test of a programm... |
[Question]
[
From [here](https://codegolf.meta.stackexchange.com/questions/2140/sandbox-for-proposed-challenges/22219#22219). Every new game is the first day of the month, 12:00 PM UTC.
The goal is to create the Stack Overflow logo using ASCII characters.
It looks like this.
[. 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/133003/edit).
Closed 6 years ago.
[Improve this question]... |
[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/33257/edit).
Closed 9 years ago.
[Improve this question](/posts/33257/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/20154/edit).
Closed 5 years ago.
[Improve this question](/posts/20154/edit)... |
[Question]
[
**This question already has answers here**:
[Different Way Forward](/questions/47005/different-way-forward)
(31 answers)
Closed 2 years ago.
Given a list of integers, such as `{1, 4, 2, 8, 10}`, TI-Basic's `ΔList` will determine the difference between every overlapping pair of items. In the gi... |
[Question]
[
This is similar to [this question](https://codegolf.stackexchange.com/questions/111287/solve-the-new-york-times-spelling-bee).
However, I have a different goal in mind:
Reduce the wordlist to words that could appear.
The easy part is to delete hyphens and similar.
The hard part, however: Remove words... |
[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 2 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 7 years ago.
[Improve this que... |
[Question]
[
Okay, so I saw this in a meme and decided it'd be the perfect code golf challenge:
I prefer to increase the side of my indents according to the Fibonacci sequence:
```
class Kls
def method
t = Time.now
if t.hour >= 12
puts "It's afternoon"
if t.hour == 18
puts "It's time for your ... |
[Question]
[
Okay, the challenge is that you have to write a regex that matches half of all strings.
Some rules to clarify:
For ANY string length(>0), if I permute all strings(of that length), exactly half of them should be matched. Put more lightly, if I generate a random string of that length it should have a 5... |
[Question]
[
The task is to build a numerical library for working with arbitrarily large integers that supports the following operations:
* addition
* subtraction
* multiplication
* division
* modulo operation
However, the library **must not use any [primitive data types](https://en.wikipedia.org/wiki/Primitive_d... |
[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/6692/edit).
Closed 7 years ago.
[Improve this question](/... |
[Question]
[
**This question already has answers here**:
[Shortest code that raises a SIGSEGV](/questions/4399/shortest-code-that-raises-a-sigsegv)
(84 answers)
Closed 7 years ago.
Write the shortest program which, when run with no arguments, stdin, or user input, triggers a core dump.
Your code must behav... |
[Question]
[
# The Challenge
Write a program that can calculate how many times and how long a ball will bounce based on a few input variables.
---
# Input
There are three variables that will be passed. You can accept these however you like (user input, function call, etc). The variables are as follows:
1. height
... |
[Question]
[
**This question already has answers here**:
[Build a random number generator that passes the Diehard tests](/questions/10553/build-a-random-number-generator-that-passes-the-diehard-tests)
(11 answers)
Closed 9 years ago.
**Task:**
Make a random number generator. The catch is that you can't use... |
[Question]
[
Write a program or function that takes two numbers - `x>3` and `n>0` - as input, and finds all possible bases `b` where the digit `3` appears at least `n` times in `(x in base b)`.
Input and output may be through command line or function arguments, stdin/stdout, graphical input/output, error messages... |
[Question]
[
**Input**: from STDIN number of vertices in Graph \$2 \leq N \leq 100\$.
**Rules**: [Code size] = max ([code length without spaces, tabs and newlines], [total code length divided by 4])
**Math formulation**: In the graph of N vertices, between each pair of vertices can be 3 road states:
* there is no... |
[Question]
[
## Background
Sometimes, people think you didn't work at your git project. But - you can prove yourself with `git shortlog -n`. Now, the problem is you are a programmer and programmers are lazy. So you want to write a program which shows the person who committed at most.
## Rules
You may not do the f... |
[Question]
[
Input: an array of length \$n\$ containing integers in the range \$0\$ to \$2n\$.
For each integer \$x\$ in the array, compute the number of integers that *occur before \$x\$* that are no larger than \$x\$.
As an example, if the array is
```
[3, 0, 1, 4, 3, 6]
```
the output should be equivalent to:
... |
[Question]
[
There is an `N x N` square of numbers.
* All columns increase strictly monotonically from top to down
* All rows increase strictly monotonically from left to right
* There is exactly one valid answer for each input.
You are given `2N-1` rows of `N` numbers representing rows or columns in this square.... |
[Question]
[
This falls under the Code puzzles the best. Fastest way to render the numbers 1-million in a web browser. Preferably using PHP, but use what you must. Numbers must be more than one on a line in the web browser and must line wrap (the horizontal scroll bar must not be triggered).
rules:
1. use any lo... |
[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]
[
Output this table:
| | | | | | | |
| --- | --- | --- | --- | --- | --- | --- |
| -2\* | -1\* | - | 0 | - | 1 | 2 |
| -1\* | 0 | 1 | - | 2 | 3 | 4 |
| 1 | 2 | 3 | - | 4 | 5 | 6 |
| 3 | 4 | - | 5 | - | 6 | 7 |
| 5 | 6 | - | 7 | - | 8 | 9 |
| 6 | 7 | 8 | - | 9 | 10 | 11 |
| 8 | 9 | 10 | - | 11 | ... |
[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/223300/edit).
Closed 2 years ago.
[Improve this question](/posts/223300/edi... |
[Question]
[
Convert a binary number (of any size) into a hexadecimal number.
**Input**
A *POSITIVE* binary number with just the `0`s and `1`s. A valid input will always match the following regex: `[0-1]+`. If the input is *not* a valid binary number, that is, anything not matching this regex, the output shoul... |
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.