text stringlengths 180 608k |
|---|
[Question]
[
Write a program, in a language of your choice, that will compose a quine program of a requested size. The generated program may be in the same or a different language, if desired.
Programs are scored based on the following formula:
>
> generating\_program\_length + smallest\_supported\_size + 512 \*... |
[Question]
[
Two numbers are said to be 'amicable' or 'friends' if the sum of the proper divisors of the first is equal to the second, and viceversa. For example, the proper divisors of 220 are: 1, 2, 4, 5, 10, 11, 20, 22, 44, 55, 110 which sum up to 284. 284's proper divisors are 1, 2, 4, 71 and 142, which sum t... |
[Question]
[
# Input
An integer `k` composed of `1` and `2`, with at least 3 digits and at most 200 digits.
# Output
Another integer `k'` obtained by removing **at most** one (**could be none**) digit from `k`, such that `k'` is composite, and then another integer `p` for a non-trivial (that is, not 1 or `k'`) fa... |
[Question]
[
I have a follow-up question here from my previous [question](https://math.stackexchange.com/questions/4646752/bumping-series-and-its-formula) on Math SE. I am lazy enough to explain the content again, so I have used a paraphraser to explain it below:
I was considering arbitrary series, springing up a... |
[Question]
[
[Cops thread](https://codegolf.stackexchange.com/questions/242616/slice-the-source-code-cops)
# Robbers
Robbers, your job is to find the slices of the corresponding cop's code.
## Scoring
The robber with the most cracks wins.
## Example
Take this code:
`iimmppoorrtt ssyymmppyy;;pprriinntt((ssyymmppyy... |
[Question]
[
The name of the challenge was prompted by [this GIF](https://i.stack.imgur.com/8k6sq.jpg) and the GIF also gave me the idea.
Your challenge today is to take a input guaranteed to be \$2<=n<=100\$ and output a sequence of `x` and `-` characters.
The output for a number N represents a sequence of opera... |
[Question]
[
You will be given an ASCII text. This text may have zero, one or many appearances of a split a character (let's assume it will be the space character )
You will also be given an offset integer value (zero based) anywhere between zero and the length of the text.
You should calculate the relative off... |
[Question]
[
**This question already has answers here**:
[Josephus problem (counting out)](/questions/5891/josephus-problem-counting-out)
(31 answers)
Closed 7 years ago.
## Ninja Assassins - which ninja stays alive
**some basic information**
* given an int N as the number of ninjas, return the number of t... |
[Question]
[
In this challenge, your task is to write a program that takes in an image and returns the most dominant color in it. Dominant color here means the color with which most of the image is covered (see the test cases for a better understanding).
---
**Input**
An image's path. You'll have to load that ima... |
[Question]
[
While the **binomial coefficient** are the coefficients of \$(1+x)^n\$, **m-nomial** coefficients are the coefficients of \$(1+x+x^2+...+x^{m-1})^n\$.
For example, \$m(3,5,6)\$ is the coefficient of \$x^6\$ in the expansion of \$(1+x+x^2)^5\$.
Write a program/function that takes 3 numbers as input an... |
[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/36127/edit).
Closed 1 year ago.
[Improve this question](/posts/36127/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]
[
Objective:
>
> This code-golf is about creating 2 different sourcecodes that both outputs exactly: `Hello, new world! again.` without linefeed, and when combining the two sourcecodes into one sourcecode it should still output exactly: `Hello, new world! again.`
>
>
>
Rules:
1. Your programs shoul... |
[Question]
[
Let n be any integer between 1 and 999,999 inclusive. Your challenge is to write a complete program which using stdin or command-line arguments takes in n and outputs the number of times the letter "o" is needed to write all cardinal numbers in standard American English between 1 and n. You can assum... |
[Question]
[
Given two integers, *s* and *e*, print the title of *[Black Mirror](https://en.wikipedia.org/wiki/Black_Mirror)* series #*s* episode #*e*.
Expected output is as below, case sensitive. Output for blank cells and invalid inputs is unspecified.
```
e↓s→ 1 2 ... |
[Question]
[
**This question already has answers here**:
[Russian Roulette](/questions/9062/russian-roulette)
(59 answers)
Closed 3 years ago.
# Russian roulette
It's [Russian roulette](https://en.wikipedia.org/wiki/Russian_roulette)! The rules are simple. Shoot a revolver with `n` slots for bullets and on... |
[Question]
[
Brainf\*\*k is the most famous [esoteric programming language](https://esolangs.org/wiki/Brainfuck) and is the inspiration for hundreds of other esoteric languages. In fact, there are quite a few languages that are so heavily based off of Brainf\*\*k that the only difference is the characters used. Y... |
[Question]
[
# Because we haven't had enough of these, let's do another weird language!
* `+` increments the accumulator
* `-` decrements the accumulator
* `#` outputs the character with the codepoint of the accumulator modulo 127, and then resets the accumulator
* `$` is like `#` but it doesn't reset the accumul... |
[Question]
[
In the video game Minecraft, you can obtain beacons and put them on pyramid-like structures to give you special effects, such as speed or jump boost.
Your task is to, given an effect, construct the beacon pyramid required for it.
There are multiple sizes of beacon pyramids, required for different eff... |
[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/60042/edit).
Closed 8 years ago.
[Improve this question](... |
[Question]
[
Today your goal is to invent URL compression. You must write two programs: a compressor and a decompressor.
* The compressor will be called with **one** URL on stdin and its output will be read on stdout.
* The decompressor will be called with the output of the compressor on stdin, and must produce t... |
[Question]
[
**Closed.** This question is [off-topic](/help/closed-questions). It is not currently accepting answers.
---
This question does not appear to be about code golf or coding challenges within the scope defined in the [help center](https://codegolf.stackexchange.com/help/on-topic).
Closed 7 years ag... |
[Question]
[
Smallest code to return sum of all characters of an array of C-strings, including null-byte-terminattor of each string in the array.
example in C:
```
const char *a[] = { "abc", "bdef", "cee", "deee" };
size_t n = sumOfAllBytes(a);
printf("n = %d\n", n); // n = 18
```
e.g.,
```
strlen(... |
[Question]
[
The set of ten numbers below:
```
223092870
17237308840522
1075474925835771
12574206406402195
79458974087499419
265057843710517649
466012798920390527
926434345611831877
1390237791335182649
2336970054109245767
```
has the property that no two pairs of numbers have the same greatest common factor. (In ... |
[Question]
[
Program the sequence \$R\_k\$: all numbers that are sum of square roots of some(maybe one) natural numbers \$\left\{\sum\_{i\in A}\sqrt i\middle|A\subset \mathbb{N}\right\}\$, in ascending order without duplication. Outputting zero is optional.
You should do one of:
* Take an index k and output \$R\_... |
[Question]
[
You'll get a human-readable question *matching one of the following syntaxes*, and are expected to print/return the corresponding result. Finding similarities between the human-readable inputs and matching them with minimum size code is explicitly part of the task, so I won't give a formal definition... |
[Question]
[
A Latin Square is a square of size **n × n** containing numbers **1** to **n** inclusive. Each number occurs once in each row and column.
An example of a 3 × 3 Latin Square is:
```
[[1, 2, 3],
[3, 1, 2],
[2, 3, 1]]
```
Another is:
```
[[3, 1, 2],
[2, 3, 1],
[1, 2, 3]]
```
Given an integer input *... |
[Question]
[
A slightly more challenging one compared to my previous challenge. Given a list of positive integers (>0) and the positive integer `m`, output a list of positive integers that are capped values of the input values so that the sum of the capped values equals `m`. Cap the highest values first. And keep... |
[Question]
[
# CAPTCHA Modified by Evil Mathematician
I accidentally incurred the wrath of an eccentric passive-aggressive mathematician. As part of his demented idea of payback, he modified the CAPTCHA system on my favorite website. Up until now, it would just ask a moderately challenging math question, like `3+... |
[Question]
[
My cell phone carrier charges a cent per character in a text! I need a program to shorten the words for me, while still being understandable. I will be texting this program to my friends, so it needs to be as short as possible.
Your program will take a String (a word is separated by a non-alphanumeri... |
[Question]
[
## Task
Your mission is to create a program that reviews Python code. The solution can be written in any language!
It must take input that contains python code. The program must add `# This is not pythonic!` before each block of non-whitespace lines.
## Input
* The data can be entered via stdin.
* Th... |
[Question]
[
Almost all operating systems allow you to run multiple programs at the same time. If your system does not have enough processors to run all the programs you want to run, it starts to give each program just a tiny slice of time on the processor it runs on. This is normally not noticeable but can lead ... |
[Question]
[
**Closed.** This question is [off-topic](/help/closed-questions). It is not currently accepting answers.
---
This question does not appear to be about code golf or coding challenges within the scope defined in the [help center](https://codegolf.stackexchange.com/help/on-topic).
Closed 7 years ag... |
[Question]
[
Write the shortest code in any language of your choice to find the \$N\$th \$K\$-ugly number.
A \$K\$-ugly number is a number whose only prime factors are the prime numbers \$\le K\$.
\$K\$-ugly number's are popularly known as \$K\$-smooth numbers.
Constraints:
* \$0 < N < 1000\$
* \$0 < K < 25\$
Inp... |
[Question]
[
The task is to group adjacent values from collection and output it as a new aggregated collection.
Consider we have following input:
```
Sequence
Number Value
======== =====
1 9
2 9
3 15
4 15
5 15
6 30
7 9
```
The aim is to... |
[Question]
[
If you're not familiar, [Dance Dance Revolution](http://en.wikipedia.org/wiki/Dance_Dance_Revolution) is a rhythm game where you hit four receptors (left, down, up, right) with your feet as arrows scroll up the screen. One of the file formats used to lay out the arrow patterns looks something like th... |
[Question]
[
Write a program that either accepts input via stdin or from the command line. It will then unscramble the words, printing out the unscrambled version of each word.You get a text file containing every word (most of them) in the English dictionary to use. (Here is the file: [Word List](http://web.mit.e... |
[Question]
[
### Introduction:
I [collect twisty puzzles](http://twistypuzzles.com/forum/viewtopic.php?f=14&t=26889), so I'm quite the fan of [rubiks-cube](/questions/tagged/rubiks-cube "show questions tagged 'rubiks-cube'")-challenges (even though most are fairly difficult). So, let's try a fairly easy [rubiks-c... |
[Question]
[
# Specifications
For this challenge, you will be given a matrix of some sort in any reasonable format for a 2-D array. For each row except the last, in order from top (first) to bottom (last), rotate the row below it by `x` to either direction (you choose a consistent direction to use) where `x` is t... |
[Question]
[
# Backstory
Not really real, *sshh!*
It all started one day when a coworker brought in a *homemade* loaf of bread for my boss's birthday.
My boss *really* liked this loaf of bread, and he wanted another. Unfortunately, my coworker has quit, so my boss needs *me* to give him another loaf.
The problem ... |
[Question]
[
This challenge is inspired by [this other challenge](https://codegolf.stackexchange.com/questions/38250/comment-free-polyglot), which you may want to read first for some context. However, a competitive answer is likely to look very different, so after [reading some posts on Meta](http://meta.codegolf... |
[Question]
[
Note: reference to [Nothing up my sleeve number](https://en.wikipedia.org/wiki/Nothing_up_my_sleeve_number).
Your task is to take no input and generate this exact output:
```
d76aa478 e8c7b756 242070db c1bdceee f57c0faf 4787c62a a8304613 fd469501
698098d8 8b44f7af ffff5bb1 895cd7be 6b901122 fd987193 ... |
[Question]
[
You are given the positions of the minute and hour hands of an analog clock as an angle of clockwise rotation from the top (12). So a hand pointing at 9 is at an angle if 270, and a hand pointing exactly in between 12 and 1 is at an angle of 15.
Input will be two integer angles (in any order of your ... |
[Question]
[
**Goal**:
Write a function or program that, given an integer `n`, will output a program in the same language that is a quine with a period of `n`.
**Description of Output Program**:
The output program needs to be a program that, when run, ... will output a program... that will output a program... etc... |
[Question]
[
Seeing as its St. Patrick's day, I thought I would have a little challenge
Your task is to write a program draws a clover in any way possible. Each leaf has to be symmetrical, and the user has to input the number of leaves that they want on the clover. It then must be drawn. This has to be generated.... |
[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/21941/edit).
Closed 6 years ago.
[Improve this question](/posts/21941/edit)... |
[Question]
[
Your challenge is to golf a program that mimics a data transmission stream. Your program should read input from stdin and output it directly to stdout. To make the problem more interesting, the output stream is 'faulty', and must meet several requirements:
1. There should be a 10% chance that each ch... |
[Question]
[
Given two arbitrary integers \$a\$ and \$b\$, count how many numbers are divisible by [perfect numbers](http://oeis.org/A000396) in that given range (\$a\$ and \$b\$ both are inclusive).
>
> In mathematics, a perfect number is a positive integer that is the sum
> of its proper positive divisors, tha... |
[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/10656/edit).
Closed 6 years ago.
[Improve this question](/posts/10656/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/2618/edit).
Closed 2 years ago.
[Improve this question](/posts/2618/edit)
... |
[Question]
[
**This is the robbers' challenge. To post a cop, go [here](https://codegolf.stackexchange.com/questions/241947/inject-arbitrary-code-into-a-compiler-cops).**
In this challenge, cops will invent a (likely simple) programming language, and write an interpreter, transpiler, or compiler that allows you t... |
[Question]
[
# Background
Consider an \$n\times n\$ grid, where each cell is either empty (denoted by `.`) or a wall (denoted by `#`). We say that two cells are *adjacent* if they share an edge (a corner is not enough). A *path* is a sequence of distinct empty cells \$s\_0,s\_1,\ldots,s\_k\$ such that cells \$s\_... |
[Question]
[
I came across this challenge from codewars. I wish to know how to solve this problem. The problem description is given below.
Its elements are in range[1..n^2]. The matrix is filled by rings, from the outwards the innermost. Each ring is filled with numbers in the following way:
1. The first number i... |
[Question]
[
Given a list (array) of names, your challenge is to join the items using some glue and abbreviate the longest items first until the joined string fits a maximum length. And output that string. Since the glue is part of the final string, the length of the glue is included too
Abbreviation is done usi... |
[Question]
[
***Note:*** When I refer to a bridge, I mean it in the non-mathematical sense
## Introduction
You are on a network of islands which are connected by wooden bridges and you want to see if you can burn every bridge in the island network. However, you can only burn a bridge once you've walked over it.
O... |
[Question]
[
In my [last challenge](https://codegolf.stackexchange.com/q/87189/52405), you were asked to find *all* rectangles given a `m x n` grid of them. However, it turned out to be very trivial as there actually was a mathematical formula I did not even know about to solve the problem! So now, for a little b... |
[Question]
[
**The Challenge**
Everybody loves genetics, right? In this challenge, you will be given the genotypes of two parents. You must find each possible genotype of a child produced by the parents. You must account for dominant and recessive alleles as well as incomplete dominance and codominance.
An exampl... |
[Question]
[
This is an extension of [Fibonacci Domino Tiling](https://codegolf.stackexchange.com/questions/37886/fibonacci-domino-tiling). Your goal is to print all 281 ways to tile a 4x6 rectangle with 1x2 and 2x1 dominoes. Fewest bytes wins.
Use the vertical bar `|` to indicate a space covered by the vertical ... |
[Question]
[
Write a program which enumerates points on a regular grid in the form of a spiral. The output should be the indices of the points (row-major) and the spiral should start at 0 and proceed anti-clockwise.
Here is an illustration of the problem:
 a program in a different language. That program will produce a 3rd program in another language and so on.
You should aim to create many programs; you aren't limited to 3. You can re-use a language, but it won't be counted... |
[Question]
[
Homologous series, any of numerous groups of chemical compounds in each of which the difference between successive members is a simple structural unit.
As an example, Alkane is a homologous group where the chemical compounds are in \$C\_nH\_{2n+2}\$ format. \$CH\_4\$ (Methane) is part of the Alkane g... |
[Question]
[
## Introduction
I began studying the [Collatz Conjecture](https://en.wikipedia.org/wiki/Collatz_conjecture)
And noticed these patterns;
[0,1,2,2,3,3...A055086](https://oeis.org/A055086), and [0,1,2,0,3,1...A082375](https://oeis.org/A082375),
in the numbers that go to 1 in one odd step,
[5,10,2... |
[Question]
[
# Input
An integer n in the range 100 to 10^18 and an integer k in the range 1 to 18, inclusive.
# The swap operation
A swap chooses two digits at different positions and exchanges their positions, as long as the swap does not result in a leading zero. For example if we start with the integer `12345`... |
[Question]
[
Your goal is to output all the "sides" (corners, edges, faces, etc.) of an N-dimensional unit hypercube, where N is non-negative. A "side" is defined as any (N-M)-dimension surface embedded in N-dimensional space, where `1 <= M <= N`.
The hypercube spans the space [0, 1] in each dimension. For exampl... |
[Question]
[
**Background**
[Benford's Law](https://en.wikipedia.org/wiki/Benford%27s_law) is freaky!
Of all the numbers in the world, roughly 30% of them start with a 1! 17.6% start with a 2, 12.5% start with a 3, and so on, and so on.
For example, take a look at the following graph. Take the largest 120000 town... |
[Question]
[
*We already have a challenge about multiplying [multiply single-variable polynomials](https://codegolf.stackexchange.com/questions/198779/computing-a-specific-coefficient-in-a-product-of-polynomials). This challenge is about multiply two polynomials with multiple variables*
Your task is given two mul... |
[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/230885/edit).
Closed 2 years ago.
[Improve this question](/posts/230885/edi... |
[Question]
[
Given 4096 16-bit integers, only four of which are unique and others appeared twice (so 2050 different integers exist). Find the four uniques.
To time precisely and limit RAM usage, your program will be run on a 12MHz 8051(with 128B RAM). I'll test with [a random case](https://paste.ubuntu.com/p/RbhC... |
[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/193071/edit).
Closed 4 years ago.
[Improve this question](/posts/193071/edi... |
[Question]
[
Based on a comment by Jo King on my previous question (called '[Inverse-quotes-quine](https://codegolf.stackexchange.com/questions/187163/inverse-quotes-quine)'), I present this new question. The rules are similar, but just, the opposite:
* If your program is run normally, all of the code **not** in ... |
[Question]
[
## Challenge:
Take a rectangular figure consisting of the two characters `#` and (whitespace, ASCII-32), and identify which direction the lines are. The options are: 'Vertical', 'Horizontal', 'Left Diagonal' and 'Right Diagonal'.
### Input:
The input will be a figure of size **n-by-m** where **5 <= ... |
[Question]
[
## The task
In this challenge, your task is to determine whether some string occurs as a substring of a given string both surrounded by another string and reversed.
Your input is a non-empty string **S** of lowercase ASCII letters.
If there exist non-empty strings **A** and **B** such that the concat... |
[Question]
[
## Introduction
Emoji use a particular alphabet for their national flags, which allows one to put two symbols together to create the appropriate flag.
`üá¶üáßüá®üá©üá™üá´üá¨üá≠üáÆüáØüá∞üá±üá≤üá≥üá¥üáµüá∂üá∑üá∏üáπüá∫üáªüáºüáΩüáæüáø`
Your challenge, is to transform any upperca... |
[Question]
[
*Inspired by a chat conversation I lurked.*
I am an adventurer on the far away land of Zendikar. I truly enjoy traveling the land. Bushwhacking, weathering the [roil](http://mtgsalvation.gamepedia.com/Roil) and encountering strange and exotic flora and fauna are the highlights of any good adventure. ... |
[Question]
[
I'm starting with golf code. But im only do C# so I know wont be a breaking record, but I want give it a try. [Leibniz](http://en.wikipedia.org/wiki/Leibniz_formula_for_%CF%80)
Challenge is [here](https://www.hackerrank.com/codesprint4/challenges/leibniz)
The first line contains the number of test ca... |
[Question]
[
In this challenge, your input is a string of lower-case letters like this:
```
insertspacesbetweenwords
```
and [a dictionary](http://fuz.su/~fuz/files/voc.xz) like the that from [my other challenge](https://codegolf.stackexchange.com/q/45168/134). You may assume that the dictionary file contains onl... |
[Question]
[
A [centered polygonal number](http://mathworld.wolfram.com/CenteredPolygonalNumber.html) is able to be put into an arrangement of multiple concentric polygons, each with a side length of one more than the inner one. For example (image from linked page),

>
> `=` chain (one or more in a ... |
[Question]
[
Make program that takes the list from the files from STDIN, and aligns it nicely, just like `ls` command from coreutils. For example, assuming the following list (taken [from The ASCII Collab](https://github.com/OddLlama/ascii-gallows-club/blob/master/wordlists/animals.txt), which takes place in the ... |
[Question]
[
Similar to [this](https://codegolf.stackexchange.com/q/769/3121) but in this one you need to write spiral starting from the center where:
* space means composite number
* `.`(dot) means prime number.
Size of the spiral can be given as parameter or on `stdin`. By size I mean side of square NxN and als... |
[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]
[
**This question already has answers here**:
[Perfect powers in more than one way?](/questions/564/perfect-powers-in-more-than-one-way)
(5 answers)
Closed 7 years ago.
A positive number is said to be super power when it is the power of at least two different positive integers. Write a program t... |
[Question]
[
Generate \$T=\{T\_1,...,T\_x\}\$, the minimum number of \$k\$-length subsets of \$\{1,...,n\}\$ such that every \$v\$-length subset of \$\{1,...,n\}\$ is a subset of some set in \$T\$
1. Here, \$n > k > v\$ and \$v \ge 2\$
2. Any number can appear only once in 1 set
3. Order of numbers is not importa... |
[Question]
[
Pickleball doubles is a game where only the serving side can score. The server calls the score as a triple of numbers, the serving side's score, the receiving side's score, and \$1\$ or \$2\$ to indicate whether the server is the first or second of their side to serve. If the server's side wins a poi... |
[Question]
[
**This question already has answers here**:
[Is this number evil?](/questions/169724/is-this-number-evil)
(135 answers)
Closed 4 years ago.
The computational parity of an integer is defined as 1 if the integer has an odd number of set bits, and 0 otherwise. ([src](https://en.wikipedia.org/wiki... |
[Question]
[
There are radiation hardened quines, palindromic quines, but has anyone tried both?!
I think not!
## Rules
So the challenge here is to make a quine that if any symbol is deleted it prints its *original* source code, *and* the quine needs to be the same read forward and backwards(before radiation dama... |
[Question]
[
I came across this [picture](https://imgur.com/gallery/j7NXx), which I initially questioned and thought about posting to Skeptics. Then I thought they'll only tell me if this one case is true, but wouldn't it be great to know how true any "rule" really is? Today you're going program a skeptic-bot
**C... |
[Question]
[
## Introduction:
The best options for the glass of your house will:
1. Let through as little heat as possible in both directions (insulation-value `Ug`).
(2. Let through as much sunbeams as possible from the outside to the inside.)
(3. Let through as much light as possible from the outside to t... |
[Question]
[
A special case of [Ramsey's theorem](https://en.wikipedia.org/wiki/Ramsey%27s_theorem) says the following: whenever we color the edges of the complete graph on 18 vertices red and blue, there is a monochromatic clique of size 4.
In language that avoids graph theory: suppose we place 18 points around... |
[Question]
[
# The Challenge
Generate 1 sec of an 8 bit tone sampled at 256 samples per second. The tone will be made up of a number of sine waves. The frequency of each sine wave will be determined from the input data.
These are deep tones, too low for a human to perceive, but I've chosen 8 bit numbers here sinc... |
[Question]
[
## Definitions
* An algebraic number is a number that is a zero of a non-zero polynomial with integer coefficients. For example, the square root of `2` is algebraic, because it is a zero of `x^2 - 2`.
* The corresponding polynomial is called the minimal polynomial of the algebraic number, provided th... |
[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/109658/edit).
Closed 7 years ago.
[Improve this question](/posts/109658/edi... |
[Question]
[
# What are Fibonacci networks?
>
> In 1202, an Italian mathematician known as Fibonacci posed the following problem:
>
>
> "A male and a female rabbit are born at the beginning of the year. We assume the following conditions:
>
>
> 1.After reaching the age of two months, each pair produces a mix... |
[Question]
[
**The task:**
Build a calculator that takes a simple math equation in Chinese and outputs the correct answer(To the equation from the users input) in Chinese.
---
**Scope:**
* Any programming language can be used.
* Input must be in Chinese otherwise an error message will be displayed .
* Output mu... |
[Question]
[
It's time to make a more advanced program (rather than something simple, like printing some shape). You need a package manager for something, I guess.
First of all, if something wasn't defined, you are allowed to do anything, including destroying the computer (but please, don't, unless this will save... |
[Question]
[
## Multi palindromic numbers
Finding all number for which at least two\*\* representation are palindromic, with more than one\*\* characters, if in decimal, octal, hexadecimal, binary or in base64.
\*\* have to be editable, see *Variables* below.
**Edited:** After lot of reflexion about [comment from... |
[Question]
[
The world's changing to a new time system! We need to update our computer programs. Given an input of epoch time (number of seconds since January 1st, 1970 00:00), print out a time in the new Noxu date-time format.
864 seconds make one Fluffster. 100 Fluffsters make a Skizzle. There are 4 Skizzles in... |
[Question]
[
How many ways are there to place a black and a white knight on an N \* M chessboard such that they do not attack each other?
A knight can move two squares horizontally and one square vertically, or two squares vertically and one square horizontally.
The knights have to be placed on different squares... |
[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]
[
The Seven-Eleven problem is find 4 positive numbers (with two decimal digits, A.BC) such that their sum is equal to their product and is equal to 7.11.
```
a + b + c + d = a * b * c * d = 7.11
0 < a <= b <= c <= d
```
Write the shortest program to compute all non-decreasing quadruples. Precomputing t... |
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.