text stringlengths 180 608k |
|---|
[Question]
[
**This question already has answers here**:
[Largest Number Printable](/questions/18028/largest-number-printable)
(93 answers)
Closed 7 years ago.
## Introduction
I found a really interesting puzzle it was called [Busy Brain Beaver](https://codegolf.stackexchange.com/questions/4813/busy-brain-... |
[Question]
[
**Input:** A single word as a string (matches `[a-zA-Z]+`). If the input doesn't follow these guidelines, print "Error" (but no error should be thrown)
**Output:** The NATO pronunciation of the word. Print out a space separated list of the NATO word that matches each letter of the input word. Traili... |
[Question]
[
I'm looking for some solution in returning values in main function, I need to shorten my program more, `return 0` takes too much characters of my code, I need to return 0, or my code fails. I know that in C there can be no `return` statement, and then program will use result of last operation - but o... |
[Question]
[
We have a group of stealthy computer-savvy geeks who are also musicians with a very subversive element to their songs that the authorities in their totalitarian country just can't stand, and are itching to show up at one of the concerts, fire off rubber bullets and tear gas at the audience, and arres... |
[Question]
[
As you may know, the Unicode standard has room for 1,114,111 code points, and each assigned code point represents a glyph (character, emoji, etc.).
Most code points are not yet assigned.
Current Unicode implementations take a lot of space to encode all possible code points (UTF-32 takes 4 bytes per c... |
[Question]
[
The [edit (or Levenshtein) distance](https://en.wikipedia.org/wiki/Edit_distance) between two strings is the minimal number of single character insertions, deletions and substitutions needed to transform one string into the other.
The challenge is to write code to output all strings with edit distanc... |
[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/35532/edit).
Closed 7 years ago.
[Improve this question](... |
[Question]
[
**This question already has an answer here**:
[Regex validating regex [closed]](/questions/3596/regex-validating-regex)
(1 answer)
Closed 9 years ago.
Your task is to write a regular expression that matches *any valid regular expression* and no invalid expression.
You may pick any regex flavou... |
[Question]
[
Most of you have probably heard of the famous Turtle Graphics program, initially made popular by Logo. This challenge is to implement a Turtle Graphics program in your language of choice.
Rules:
1. Rule one is that when the pen is in the down state, it must draw in both the square the turtle leaves a... |
[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/15872/edit).
Closed 7 years ago.
[Improve this question](/posts/15872/edit)... |
[Question]
[
Implement Stopwatch for typing Alphabets
**Alphabets** = "a b c d e f g h i j k l m n o p q r s t u v w x y z".
**Note**
* The program should run infinitely and should stop only when **Esc** button is pressed.
* The stopwatch starts with keystroke "a" and ends with keystroke "z"
* Output is the time ... |
[Question]
[
Given two binary numbers (strings containing 0s and 1s), perform operations on them, with one problem: **You must keep them in binary.** That means no going `binary(integer(n1)+integer(n2))` or anything like that.
**Input:** Two binary numbers, `n1` and `n2`, and a number between 0 and 3, `o`, defini... |
[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 1 year ago... |
[Question]
[
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, [visit the help center](/help/reopen-questions).
Closed... |
[Question]
[
Write a program/script that decompresses and passes any compressed data appended at the end of the binary/file as standard input to a program specified as arguments.
```
$ gzip --to-stdout input >> your_solution
$ your_solution program args...
```
should have the same effects as:
```
$ program args..... |
[Question]
[
Unsurprisingly, [fibonacci primes](https://en.wikipedia.org/wiki/Fibonacci_prime) are primes that are also Fibonacci numbers. There are currently 34 known Fibonacci primes and an additional 15 probable Fibonacci primes. For the purpose of this challenge, the Fibonacci numbers are the sequence \$F\_n\... |
[Question]
[
Design a function or program that, when run normally, outputs the triangular numbers. However, when any single character is deleted, the program/function should not function in the original programming language, but instead produce the triangular numbers in one other programming language.
## Scoring
... |
[Question]
[
Your task is, given a array of numbers, that is strictly increasing, output the crate stack. The input is an array of positive integers which represents which layer has how many crates there are. So the first number is the top layer and so on. The sum of the array is the size of the crate.
Since the ... |
[Question]
[
# Introduction
In a standard\* (e.g. not 2020) tax year, estimated payments are due quarterly according to the schedule outlined in [Publication 505](https://www.irs.gov/pub/irs-pdf/p505.pdf).
| Payment Period | Due Date |
| --- | --- |
| January 1 – March 31 | April 15 |
| April 1 – May 31 | June 15... |
[Question]
[
Two dimensional chiral objects are not chiral in three dimensional space. This is because you can flip them over which is equivalent to taking the mirror image unlike in two dimensions where only rotations in the plane of the object are allowed which cannot reproduce the effect of a mirror operation.... |
[Question]
[
If you cannot see this post, you can use [this image](https://i.stack.imgur.com/ZBOMa.png)
Your task is to create a markdown parser that outputs Unicode. It should support 𝗯𝗼𝗹𝗱, 𝘪𝘵𝘢𝘭𝘪𝘤, 𝙼𝚘𝚗𝚘𝚜𝚙𝚊𝚌𝚎, and 𝗎̲𝗇̲𝖽̲𝖾̲𝗋̲𝗅̲𝗂̲𝗇̲𝖾̲.
Every alphabetical character should be converted int... |
[Question]
[
Inspired by a restriction on [What do you get when you multiply 6 by 9? (42)](https://codegolf.stackexchange.com/questions/124242/)
By order of the President, we are no longer permitted to use confusing fake numbers (i.e. numbers other than integers from 0 to 99 inclusive), and are instead to use onl... |
[Question]
[
**Closed**. This question needs [details or clarity](/help/closed-questions). It is not currently accepting answers.
---
**Want to improve this question?** Add details and clarify the problem by [editing this post](/posts/124071/edit).
Closed 6 years ago.
[Improve this question](/posts/124071/edi... |
[Question]
[
## Challenge
Given a number, `x` where `-1 ≤ x ≤ 1`, and the integers `a` and `b`, where `b > a`, solve the equation `sin(θ) = x` for `θ`, giving *all* solutions in the range `a° ≤ θ ≤ b°`.
## Rules
`x` will have a maximum of three decimal places of precision. The output, `θ`, must also be to three d... |
[Question]
[
Just curious if someone can provide a short example of code that causes a compiler's optimizer to behave incorrectly:
* without optimization (or at lower optimization), code takes X seconds to run
* with optimization (or at higher optimization), code takes Y seconds to run where Y > X
In other 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 2 years ag... |
[Question]
[
Let \$\mathbb{B} = \mathbb{Z}\_2 = \{0, 1\}\$ be the set of booleans. A *symmetric boolean function* in \$n\$ arguments is a function \$f\_S : \mathbb{B}^n \to \mathbb{B}\$ that checks if the number of its true arguments is in \$S\$, i. e. a function \$f\_S\$ such that
$$f\_S(\alpha\_1, \alpha\_2, \l... |
[Question]
[
This question is inspired by [retrograde music](http://en.wikipedia.org/wiki/Retrograde_(music)). Retrograde music is a piece of music that can both be played normally (from the beginning to the end) as reversed (from the end the beginning). A similar thing exists in literature, this is called a [sem... |
[Question]
[
The goal is to take CSS rules from a regular CSS file and apply them to their respective targets in an HTML file, but by placing the rules in the `style=""` attribute (using the [`<style>` tag](http://www.w3schools.com/tags/tag_style.asp) would be too simple) and removing the `class=""` and `id=""` a... |
[Question]
[
Inspired by [ecofont](http://www.ecofont.com/).

Given a string containing `#` and , output it more eco-friendly by cutting out circles, while keeping it "... |
[Question]
[
**This question already has answers here**:
[Transform number into 7-segment display pattern [closed]](/questions/19196/transform-number-into-7-segment-display-pattern)
(17 answers)
Closed 10 years ago.
Write a program that prints the current time in a digital watch.
Rules:
* The program must ... |
[Question]
[
## Intro
I guess most people are familiar with the game [Lights Off](http://en.wikipedia.org/wiki/Lights_Out_%28game%29), but in case someone isn't, here is a short description:
>
> You start with an NxN grid where each cell in the grid is a light. For this example N=5. There are 2 ways the game ca... |
[Question]
[
In this [king-of-the-hill](/questions/tagged/king-of-the-hill "show questions tagged 'king-of-the-hill'") challenge, you will be making a [python](/questions/tagged/python "show questions tagged 'python'") 3 bot to play the card game judgement!
[Sandbox](https://codegolf.meta.stackexchange.com/a/2230... |
[Question]
[
# Introduction
In [this challenge](https://codegolf.meta.stackexchange.com/questions/2140/sandbox-for-proposed-challenges/22202#22202), I asked you to implement swap encoding.
Swap encoding is an encoding method where you iterate through the string, reversing substrings between identical characters. ... |
[Question]
[
[Codidact post](https://codegolf.codidact.com/posts/280092), [CGCC Sandbox](https://codegolf.meta.stackexchange.com/a/20491/80214), [Codidact Sandbox](https://codegolf.codidact.com/posts/279245)
Given three positive integers as input, animate an ascii-art polygonal loading symbol on the screen.
## In... |
[Question]
[
The periodic table gets its shape from the arrangement of elements into blocks:
[](https://i.stack.imgur.com/0NQAx.png)
An element is assigned its block based on what type of orbital holds its valence electron(s). For instance, the sole valence elec... |
[Question]
[
A program ordinal is a (possibly transfinite) ordinal which can be assigned to programs in some language depending on their output.
To be more specific:
* Strings that give no output have ordinal 0
* Programs that output a program of ordinal n have ordinal n+1
* Programs P0 outputting multiple progra... |
[Question]
[
*Inspired by [There, I fixed it (with rope)](https://codegolf.stackexchange.com/questions/157600/there-i-fixed-it-with-rope), [There, I fixed it (with Tape)](https://codegolf.stackexchange.com/questions/157240/there-i-fixed-it-with-tape), [There, I broke it (with scissors)](https://codegolf.stackexch... |
[Question]
[
## Your Task:
You all know what a magic square is! But what about a magic cube? A magic cube is the 3D version of a magic square, and is a set of numbers in a cube, where the sums of every straight (not diagonal) line are equal. You must write a program or function that receives an integer, and retur... |
[Question]
[
Your task is to write a program that, given a number *n*, returns a list of all valid, halting [Smallfuck](https://esolangs.org/wiki/Smallfuck) programs of length *n*, in any order.
Actually, we're using a variation of Smallfuck called [F2](https://esolangs.org/wiki/Fm), which is just Smallfuck with ... |
[Question]
[
Your task is to write a function which outputs a ukulele chord chart in the following format for a given chord symbol. For instance, for input "`G7`", it must output:
```
G C E A
---------
| | |#| |
---------
| |#| |#|
---------
| | | | |
---------
| | | | |
---------
| | | | |
---------
```
>
> It... |
[Question]
[
Your task is to create a program/function to replicate [this word generator](http://www.zompist.com/gen.html).
# Details
Your program/function take two input. One input is the `categories`. The other input is the `syllable types`.
### Categories
`categories` will consist of classes of letters.
For ex... |
[Question]
[
## The Scenario
You are given a matrix of size m x n (width x height) with m\*n spots where there are a few obstacles. Spots with obstacles are marked as 1, and those without are marked as 0. You can move vertically or horizontally, but can visit each spot only once. The goal is to cover as much area... |
[Question]
[
Your task here is to write an AI for a simple robot battle. The class to be implemented is provided at the bottom of this post, and source of the controller can be found [here.](http://pastebin.com/raw.php?i=JZ7cfGZJ)
# Requirements
1. Write a class which implements the abstract Bot class, provided a... |
[Question]
[
# Background
In this challenge, a *partition* of a set `S` means a collection of nonempty subsets of `S`, which are mutually disjoint and whose union is `S`. We say that a partition `p` is *finer* than another partition `q` (and `q` is *coarser* than `p`), if it can be obtained from `q` by splitting ... |
[Question]
[
***Challenge***
You are given the following function:-  which is the same as:-

with the base cases q(r, b, L) = 1 whenever r ≤ L, q(r, 0, L) = 0, if r > L and q(r, ... |
[Question]
[
The [Riemann series theorem](http://en.wikipedia.org/wiki/Riemann_series_theorem) states that the terms of a conditionally convergent series can be permutated such that the resulting series converges to an arbitrary value.
# The Challenge
Write a program or function that takes in three parameters via... |
[Question]
[
For those of you who have seen the popular daytime TV show [Countdown](http://en.wikipedia.org/wiki/Countdown_(game_show)), you will know that the contestants are given 9 randomly selected letters and must then find the longest word they can in 30 seconds.
Your challenge is, given a string of 9 lette... |
[Question]
[
In the color spelling game, you are shown a list of color names, but rather than reading the words that are written, you have to say the name of the color of the letters. The game is over as soon as you say the wrong color, and the player who spelled the most words correctly wins. To make the game mo... |
[Question]
[
Given a number, starting with 1, create new numbers (children) by taking the last digit, n, and concatenating 1 through n+1.
This seems to be a much better explanation of the sequence [A071159](http://oeis.org/A071159).
>
> Integers whose decimal expansion start with 1, do not contain zeros and eac... |
[Question]
[
You are locked in a massive fortress, slowly starving to death. Your guards inform you that there is food in the fortress, and even tell you where it is and provide a map of the building.
However, you are not sure that you can actually reach the food, given that the every door is locked, and every ro... |
[Question]
[
# Introduction
From [Esolangs.org](http://esolangs.org/wiki/Pi) :
>
> **Pi** is based on the brainfuck language and uses the same instructions as it. Pi works by calculating pi digits and introducing errors in some random digits of them, encoding obfuscated brainfuck instructions.
> Instructions a... |
[Question]
[
This is a pure code-golf question.
**Input:** A non-negative integer n
**Output:** Sum of the indices of the second least significant set bit in the binary representation of the integers 0...n. If the number doesn't have two set bits then the contribution to the sum should be zero.
Your code should ... |
[Question]
[
One of the annoying bits about PowerShell, which helps amplify its disadvantage against other languages in [code-golf](/questions/tagged/code-golf "show questions tagged 'code-golf'"), is that there are no symbolic comparison or logical operators.
A comparison that could be as short as this:
```
$x<1... |
[Question]
[
This Perl code is supposed to calculate the Leibniz formula. [The original problem is here.](https://www.hackerrank.com/codesprint4/challenges/leibniz)
The input format is:
```
T
<T test cases, each on their own line>
```
Each test case is a number < 10^7. The output format should be the same, minus ... |
[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/6304/edit).
Closed 8 years ago.
[Improve this question](/posts/6304/edit)
... |
[Question]
[
Write the shortest program, in the language of your choice, that takes as input a year on the [Hebrew calendar](http://www.jewfaq.org/calendr2.htm), and outputs the corresponding Gregorian date for [Rosh Hashana](http://en.wikipedia.org/wiki/Rosh_Hashanah), in YYYY-MM-DD format.
```
~$ rh 5771
2010-0... |
[Question]
[
What general tips do you have for golfing in Uiua?
I'm looking for ideas that can be applied to code golf problems in general that are specific to Uiua. (e.g. "remove comments" would not be an answer.)
Please post one tip per answer.
[Answer]
# Use complex numbers
The length of a vector given ... |
[Question]
[
My doubles pickleball group often has five people. Four are playing and one is awaiting the next game. We can represent the state of the game with a string of five characters like abCde. This indicates that a and b are playing against c and d with c serving. We want to write a routine that gives the ... |
[Question]
[
[Qat](https://www.quinapalus.com/qat.html) is a tool that lets you search for words matching a given pattern, often used by crossword and other word puzzle writers and solvers.
In this challenge, you will have to implement a specific part of Qat, namely a subset of the "equation solver".
## Equations... |
[Question]
[
**Description**
Inspired by [this question](https://cs.stackexchange.com/questions/155836/storing-n-bits-on-the-smallest-possible-space-in-a-real-computer/155842), write a program/function to encode a number and a program (possibly the same as the first) to decode a bitstream in variable-length encod... |
[Question]
[
This is the second version of the task. The original task had a defect that the given range of integers was too small. This was pointed out by @harold that other methods couldn't defeat the way of hard-coding all the possible prime divisors. Now you have a larger range of integers to test from `0` to... |
[Question]
[
A triplet of real tensors \$(A,B,C)\$ of size \$\gamma \times \gamma \times \sigma\$ represents a [matrix multiplication algorithm](https://en.wikipedia.org/wiki/Strassen_algorithm) with \$\sigma\$ elementary multiplications iff the following function evaluates to zero:
$$ \text{error}(A,B,C) \equiv ... |
[Question]
[
# Introduction
Dr. Leslie Lamport, of the eponymous [Lamport one-time signature scheme](https://www.microsoft.com/en-us/research/uploads/prod/2016/12/Constructing-Digital-Signatures-from-a-One-Way-Function.pdf), is getting rather old. But he can't die until his most famous algorithm gets all the kink... |
[Question]
[
Back in 2018, there has been introduced new law in Poland to ban trading on sundays,
but certain exceptions have been made (listed below). The task today is to determine,
can one trade on the sunday provided by the user (according to these rules).
# Rules
You can trade only if one of the following is... |
[Question]
[
**This question already has answers here**:
[Calculate A190810](/questions/85411/calculate-a190810)
(27 answers)
Closed 4 years ago.
One of the Klarner-Rado sequences is defined as follows:
* the first term is \$1\$
* for all subsequent terms, the following rule applies: if \$x\$ is present, s... |
[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/180822/edit).
Closed 4 years ago.
[Improve this question](/posts/180822/edi... |
[Question]
[
**This is inspired by the excellent [Visualize Visual Eyes](https://codegolf.stackexchange.com/q/153366/56555) challenge. It is posted with permission from and credit to @Jordan**
We are going to create an ASCII art approximation of the Xeyes challenge but without worrying about the actual mouse move... |
[Question]
[
# Task
Write a program/function that, given three integers **n**,**a**,**b** prints a regular expression which matches all of the base-`n` integers from `a` to `b` (and no integers outside of that range).
Your algorithm should, in theory, work for arbitrarily large integers. In practice, you may assu... |
[Question]
[
## Definition:
>
> A number **m** is called a primitive root of a prime **p** the condition that the smallest integer **k** for which **p** dividies **m****k****-1** is **p-1**
>
>
>
## Your task
Given a tuple **(a,b)** of positive integers, return the fraction:
(number of primes **p** equal to o... |
[Question]
[
Inspired from a real problem; we were looking at this table and said "Hey, now that's a good codegolf problem."
The [KOOS Jr. scores](https://www.hss.edu/files/KOOS-JR-Scoring-Instructions-2017.pdf) converts from a raw number to a percentile score given this table:
```
Raw summed score Interval scor... |
[Question]
[
It's really frustrating when I'm working and I have a ton of windows open that are completely or partially hidden behind other windows. To make things worse, I'm still using two 1024x768 monitors.
Your task is to take a list of coordinates that designate the area, in pixels, on a screen, that a list ... |
[Question]
[
Given a string or list, calculate the effects of gravity on that string/list.
The string will be made of 5 characters:
* `N` has a weight of 2
* `L` has a weight of 1
* `S` has a weight of -2
* `D` has a weight of -1
(the 5th character is whatever you want, it means empty space. I use (space) in my... |
[Question]
[
We shall soon have a new logo & site design, let us use this last breath of the simple times and golf this ASCII version of the speech bubble beta logo:
```
+-------------------------------------------+
| .---------------------------------. |
| .EPEpEpBPEpEGCXCgCgCGJgCgP&PWP&P&P&Y` |
| .RS... |
[Question]
[
**See Also: [Recognition](https://codegolf.stackexchange.com/questions/90123/number-plate-golf-recognition)**
## Introduction
You've now been taken off the speed camera development team (let's face it, your code is nowhere near production code standards) and are now working on a program to extract in... |
[Question]
[
# Introduction
[BitShift](https://esolangs.org/wiki/BitShift) is an esolang, created by me, to output strings. Sounds boring, is boring. However, the only instructions available to BitShift are `0` and `1`. Therefore it can be challenging to golf in it. To make matters even more interesting, the lang... |
[Question]
[
After the last Ludum Dare (LD) game programming contest [a friend of mine](http://williamedwardscoder.tumblr.com/post/95981602928/all-the-ld30-games-in-one-mosaic) made a nice mosaic of all the LD game thumbnails:
[](http://www.royvanr... |
[Question]
[
# The challenge
Make a JavaScript program that can use a HTML table as a canvas, having each cell a pixel.
You can either input the position and color values in a form or by using the console.
# Score calculation
* +10 points for not using JQuery
* +15 points for the cells scaling equally to keep the... |
[Question]
[
It's asked to write a script to generate a source data to feed a JavaScript renderer.
## JS Renderer documentation
The JS renderer is this script:
```
function o(x){
r=x.split(' ');
(d=document).write('<style>i{position:absolute;width:10;height:10;background:#000}</style>');
for(i=0;i<r.length;... |
[Question]
[
# Challenge
Write a program that generates the song "There Was A Stream", detailed below.
## Description
The song "There Was a Stream" is a camping song. It takes N parameters and generates a song of length O(N2) lines. A sample song (first 3 verses) is given [here](http://pastebin.com/QpzkKCwi).
#... |
[Question]
[
[Whispers](https://github.com/cairdcoinheringaahing/Whispers) is February 2021's Language of the Month, so what tips do you have for golfing in it? Tips do not have to be specific to [code-golf](/questions/tagged/code-golf "show questions tagged 'code-golf'"), so long as they apply to other types of ... |
[Question]
[
As the trip through the solar system on your way to [rescue Santa](https://adventofcode.com/2019) gets a little droll, so perhaps some optimizations to your Intcode Computer are in order. Namely, making it as small as possible because you've got nothing better to do with your time.
*Check out Advent ... |
[Question]
[
[Make a Number Expression](https://codegolf.stackexchange.com/questions/34500/make-a-number-expression) is related : actually, it is also about Aheui. But it just made number expression, but this made real Aheui code.
---
[Aheui](https://aheui.readthedocs.io/en/latest/specs.en.html) is esolang writte... |
[Question]
[
The set of [necklaces](https://en.wikipedia.org/wiki/Necklace_(combinatorics)) is the set of strings, where two strings are considered to be the same necklace if you can rotate one into the other. Your program will take nonnegative integers `k` and `n`, and generate a list of the `k`-ary (fixed) neck... |
[Question]
[
>
> **Build a function in python that can win a [Sevens](https://en.wikipedia.org/wiki/Sevens_(card_game)) game provided that there are only 2 players**
>
>
>
---
Here are the instructions from [Wikipedia](https://en.wikipedia.org/wiki/Sevens_(card_game)#Rules_and_Laws):
>
> All cards are dealt ... |
[Question]
[
Your challenge is to translate a [Cubically](//git.io/Cubically) cube-dump to the format specified in [this challenge](https://codegolf.stackexchange.com/q/10768/61563).
## Input
The input will represent a Rubik's Cube, formatted how Cubically prints its memory cube at the end of every program.
This ... |
[Question]
[
Your task is to write a program or function which, given two nonzero integers `x` and `y`, returns a truthy value if the image at coordinates `x` east and `y` north of xkcd's [click and drag comic](https://xkcd.com/1110/) is mostly white and a falsey value otherwise.
# Specifications
* The image shou... |
[Question]
[
Not entirely sure if this one or a similar challenge has already been posted, but here it goes anyway.
Write a program that takes a `string` as input and writes its trucated/summarized `output` form such that a specific `sep` (separator) is placed in the middle, removing the necessary characters of t... |
[Question]
[
Are you feeling jealousy towards Mathematica, Matlab et al. for their intricate plotting capabilities? If you answered yes, this challenge is for you!
# Challenge
Given, via parameters or standard input, a list of numbers `list` and a positive integer `h` for the height of the plot, write a program/f... |
[Question]
[
Donald Knuth was born in 1938, on the 20th day of Capricorn.
The first day of Capricorn is the 22nd December.
Donald Knuth was born on the 10th of January (1938).
---
**The challenge**
Write a program or function which takes three **inputs** about a person (any other specified order is fine):
* T... |
[Question]
[
Since this SE community is about golfing, I thought a golf-related challenge would be appropriate.
## Explanation
Normally, the objective of golf is to finish a hole (and consequently, the entire round) with the least amount of strokes. This is a simple version of golf: Play until you hole the ball a... |
[Question]
[
The Post's Correspondence Problem (PCP) gives you a list of pairs of strings, P\_1 ... P\_n. Your task is to find a k, and some sequence of k indices such that fst(P\_i1) ... fst(P\_ik) = snd(P\_i1) ... snd(P\_ik)
We're trying to find some sequence of the pairs where the word we build from the first ... |
[Question]
[
# Validating a CPR number
A Danish CPR number (*Person Identification Number*) is date of birth followed by 4 digits (the last one being a control digit): DDMMYY-XXXX
The final digit validates the CPR number using Modulo 11 by satisfying the following equation:
[. It is not currently accepting answers.
---
**Want to improve this question?** Add details and clarify the problem by [editing this post](/posts/19354/edit).
Closed 7 years ago.
[Improve this question](/posts/19354/edit)... |
[Question]
[
This question is inspired by a similar question [first asked on StackOverflow by Florian Margaine](https://stackoverflow.com/questions/17807531), then asked in variant forms on [CS by Gilles](https://cs.stackexchange.com/questions/13420) and on [Programmers by GlenH7](https://softwareengineering.stac... |
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.