text
stringlengths
180
608k
[Question] [ ~~*You know nothing*~~ ~~*The things I do for*~~ ["*Chaos is a ladder*"](https://www.youtube.com/watch?v=iRS8a8HjqFs) is a memorable line from the television series [*Game of Thrones*](https://en.wikipedia.org/wiki/Game_of_Thrones). The purpose of this challenge is to build a ladder from chaos, in ASCI...
[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/57143/edit). Closed 1 year ago. [Improve this question](/posts/57143/edit) E...
[Question] [ What, this post doesn't exist yet? Of course, [GolfScript](http://www.golfscript.com/golfscript/) is *made* for golfing, so you might think that no specific tips are really needed. But to make full use of GolfScript's features, you need to learn some non-obvious tricks. This post is for collecting such...
[Question] [ I'm hungry. Let's microwave something. Given a numerical input of between 1 and 4 digits, output the number of seconds that the microwave should run. ## Details The trick is figuring out if the user is inputting seconds or a combination of seconds and minutes. The ones and the tens places should be int...
[Question] [ I started one code golf challenge recently and it seems like the winner is GolfScript (surprise, surprise!). What's interesting is that there was another very strong competitor that had all chances to win over GolfScript. Its name is APL. I see a lot of answers written in APL here. It seems like this l...
[Question] [ Almost equivalent to Project Euler's first question: > > If we list all the natural numbers below 10 that are multiples of 3 or > 5, we get 3, 5, 6 and 9. The sum of these multiples is 23. > > > Find the sum of all the multiples of 3 or 5 below 1000. > > > ## Challenge: Given a positive integer ...
[Question] [ Given a rectangular haystack of size at least 2x2 composed of all the same printable ASCII characters, output the location (counting from the top-left) of the needle which is a different character. For example, if the following haystack is input: ``` ##### ###N# ##### ##### ``` The output should be `3,...
[Question] [ Write an algorithm or program that can encode and decode a chess board. The goal is to make the smallest representation of a chessboard that could be used (once decoded) to determine all movement possibilities for a player on that turn. The encoding must be able to show: * Whose turn it is. * Whether t...
[Question] [ Given a nonempty list of positive decimal integers, output the largest number from the set of numbers with the fewest digits. The input list will not be in any particular order and may contain repeated values. **Examples:** ``` [1] -> 1 [9] -> 9 [1729] -> 1729 [1, 1] -> 1 [34, 3] -> 3 [38, 39] -> 39 [4...
[Question] [ You should write a program which receives two strings as input and outputs a sequence of movements which rearrange the first string into the second. You should use as few moves as you can. Both strings will contain only lowercase letters and the second (goal) string is a permutation of the first (origi...
[Question] [ Your boss just emailed you a list of 12 programming tasks he needs done as soon as possible. The tasks are simple enough but your boss, being a young software tycoon suckled by social networking, insists that your solutions be able to fit within a single [Twitter](https://en.wikipedia.org/wiki/Twitter)...
[Question] [ ### Input: A positive integer **n** consisting of digits in the range **0-9**. ### Challenge: If **d** is the highest digit in the integer, assume the base of the number is **d+1**. E.g. if the integer is **1256** then you shall assume it's in **base-7**, if it's **10110** then you shall assume it's **...
[Question] [ You're given a true colour image. Your task is to generate a version of this image, which looks like it was painted using [paint-by-numbers](https://www.google.com/search?site=&tbm=isch&source=hp&biw=1920&bih=912&q=paint%20by%20numbers&oq=paint%20by%20&gs_l=img.3.0.0l10.2068.3265.0.4050.9.8.0.1.1.0.161...
[Question] [ *Alternesting*, is the act of taking a string and nesting it in alternating brackets. Here is how you *alternest* a string. * For a string of length **N**, take the center **N** characters, and surround them in parenthesis. So if our string was `Hello world!` (12 characters), we'll end up with ``` (Hel...
[Question] [ Consider this ASCII version of a mechanism similar to a [bean machine](http://en.wikipedia.org/wiki/Bean_machine) or [plinko](http://priceisright.wikia.com/wiki/Plinko)/[pachinko](http://en.wikipedia.org/wiki/Pachinko) game: ``` O ^ \ ^ ^ ^ \ \ ^ / ^ U U U U U 1 2 3 4 5 ``` The `O` is a b...
[Question] [ Write a program or function that takes in a nonempty list of positive integers. You may assume it is input in a reasonable convenient format such as `"1 2 3 4"` or `[1, 2, 3, 4]`. The numbers in the input list represent the slices of a full [pie chart](https://en.wikipedia.org/wiki/Pie_chart) where eac...
[Question] [ With the recent discussion about [the use of compression tools in code golf](https://codegolf.meta.stackexchange.com/q/447/3191), I thought it would be a nice challenge to write your own text compressor and decompressor. ### Challenge: Write **two programs**: one to compress ASCII text into a sequence ...
[Question] [ Congratulations to [Neil](https://codegolf.stackexchange.com/users/17602/neil) for hitting 100k rep! As a tribute, we are going to study 'Neil numbers'. Neil's user ID is **[17602](https://codegolf.stackexchange.com/users/17602/neil)** and there's something special about the binary representation of th...
[Question] [ # The Hourglass This hourglass has 60 "sands of time", and it completely fills each chamber. The clock is 19 characters wide and 13 characters in height. Each chamber has 5 rows of sand and there is a row in the centre that can hold 1 sand. The top row can hold 17 sands, the next one 15 and so on (see ...
[Question] [ *"The Nobel Prize in mathematics was awarded to a California professor who has discovered a new number! The number is bleen, which he claims belongs between 6 and 7."* --George Carlin In this challenge, you will print all Integers, inclusive, within the given input range. Print numbers ascending or des...
[Question] [ *This is the first in a series of Island Golf challenges. [Next challenge](https://codegolf.stackexchange.com/q/114053/16766)* Given an island in ASCII-art, output an optimal path to circumnavigate it. ## Input Your input will be a rectangular grid consisting of two characters, representing land and wa...
[Question] [ Consider the following process: 1. Take some non-negative integer N. e.g. N = `571` 2. Express it in binary with no leading zeroes. (Zero itself is the only exception, becoming `0`.) e.g. `571` = `1000111011` in binary 3. Break apart consecutive runs of ones and zeroes in this binary representation. e....
[Question] [ Inspired by [this video of *Infinite Series*](https://www.youtube.com/watch?v=ineO1tIyPfM). ### Introduction Pi is defined as the ratio of the circumference to the diameter of a circle. But how is a circle defined? Usually a circle is defined as the points with constant distance to the centerpoint (let...
[Question] [ [*The contest is over!*](http://goo.gl/hYcjpq) # Intro This is an interactive [king-of-the-hill](/questions/tagged/king-of-the-hill "show questions tagged 'king-of-the-hill'") contest where the controller is fully contained in a Stack Snippet at the bottom of the question. The controller automatically ...
[Question] [ The aim of this task is to identify, clean up, and mark out all the faces in any given 'image'. ## What's in a face? A face will be a ZxZ square where Z is an odd integer greater than 1. The top left and right corners and the centre will be 'O' characters, and the bottom line will be a '\' and a '/' su...
[Question] [ Here is a diagram of a prison using ASCII characters: ``` +------------------------------+ | | | X X | | | | D D | | | | ...
[Question] [ Some people insist on using spaces for tabulation and indentation. For tabulation, that's indisputably wrong. By definition, tabulators must be used for tabulation. Even for indentation, tabulators are objectively superior: * There's [clear consensus](https://softwareengineering.stackexchange.com/a/72)...
[Question] [ ### The challenge The goal of this challenge is to create a chatbot that can run in the chatrooms of Stack Exchange. Your bot needs to be able to detect when specific commands are posted by a user and respond to it. This is the list of commands, and what your bot should do: * `!!newest`: output the tit...
[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 currently ...
[Question] [ **Closed**. This question needs to be more [focused](/help/closed-questions). It is not currently accepting answers. Closed 7 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 currently ...
[Question] [ # Background: A sequence of infinite naturals is a sequence that contains every natural number infinitely many times. To clarify, **every number must be printed multiple times!** # The Challenge: Output a sequence of infinite naturals with the shortest code. # Rules: 1. Each number must be separated by...
[Question] [ The [printable ASCII characters](http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters) (hex codes 20 to 7E) in order are: ``` !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ ``` (Note that space is in there.) This string clearly contains all the ...
[Question] [ # The Task In this challenge, your task is to write a program or function which takes in a String and outputs a truthy or falsey value based on whether the first character and the last character of the input String are equal. ## Input You may take input in any way reasonable way. However, assuming that...
[Question] [ # Description Output the rhyme scheme for a very long Terza Rima. # Input None. # Output ``` ABA BCB CDC DED EFE FGF GHG HIH IJI JKJ KLK LML MNM NON OPO PQP QRQ RSR STS TUT UVU VWV WXW XYX YZY ``` # Rules You can pick between separating stanzas with whitespace or newlines, so either: ``` ABA BCB... ```...
[Question] [ This is a simple challenge: Given a sequence of integers, find the sum of all integers in it. But with a twist. Your score is the [Levenshtein distance](https://en.wikipedia.org/wiki/Levenshtein_distance) between your code and the following phrase (The challenge): > > Given a set of integers, find the...
[Question] [ > > **Notice:** [Following popular demand](https://codegolf.stackexchange.com/questions/41462/a-different-kind-of-meta-regex-golf#comment97227_41462) I have slightly relaxed the rules: > > > * The maximum regex size grows by 1 byte **every 5 answers**. Answer **N** may use up to **29 + ⌈N/5⌉** bytes...
[Question] [ Title ~~stolen~~ inspired by [Greg Hewgill's answer](//stackoverflow.com/a/245068) to [What's the difference between JavaScript and Java?](//stackoverflow.com/q/245062) # Introduction Java and JavaScript are commonly used languages among programmers, and are currently the [most popular](//stackoverflow...
[Question] [ Just like [code-golf](/questions/tagged/code-golf "show questions tagged 'code-golf'"), [restricted-source](/questions/tagged/restricted-source "show questions tagged 'restricted-source'") pushes one to exploit quirks and hidden features of the Python language. We already have [a place](https://codegol...
[Question] [ ## Background *[Milking the deck](http://www.dictionaryofgambling.com/gambling_terms/poker/m/#milk_the_deck)* is the name given to the following card shuffling method: 1. 'Pinch' the deck to remove the top and bottom cards simultaneously. (With lots of imagination, this action resembles milking a cow.)...
[Question] [ As of ECMAScript 2015, JavaScript has [33 reserved keywords](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Lexical_grammar#Keywords), such as `break`, `const` and `new`, as well as [10 future reserved keywords](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Lexica...
[Question] [ Your task is to output a representation of the legendary tree of life, [Yggdrasil](http://en.wikipedia.org/wiki/Yggdrasil). You must write a program whose output is exactly that : ``` /\ /**\ ...
[Question] [ ### Background Inspired by Octave's (and, by extension, MATL's) very convenient interpretation of truthy/falsy matrices, Jelly got the Ȧ (Octave-style *all*) atom. Ȧ takes an array as input and returns **1** if the array is non-empty and does not contain the number **0** (integer, float, or complex) **...
[Question] [ Given a non-empty list/array containing only non-negative integers like this: ``` [0, 0, 0, 8, 1, 4, 3, 5, 6, 4, 1, 2, 0, 0, 0, 0] ``` Output the list with trailing and leading zeroes removed. The output for this would be: ``` [8, 1, 4, 3, 5, 6, 4, 1, 2] ``` Some other test cases: ``` [0, 4, 1, 2, 0, ...
[Question] [ As programmers, we all know the saying: "You can have it fast and good, but it won't be cheap, you can have it cheap and good, but it won't be fast, or you can have it fast and cheap, but it won't be good." For this challenge, you are implementing an imaginary configuration tool for your custom program...
[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/20034/edit). Closed 6 years ago. [Improve this question](/p...
[Question] [ Your task is to print the text `Good morning, Green orb!`, with every character repeated in place as many times as the most frequent byte in your source (the mode). A trailing newline is permitted and need not be repeated. For example if your source was ``` print p ``` Since `p` appears twice and every...
[Question] [ **Find the difference between the square of the sums and sum of the squares.** This is the mathematical representation: \$\left(\sum n\right)^2-\sum n^2\$ Your program/method should take two inputs, these are your lower and upper limits of the range, and are inclusive. Limits will be whole integers ab...
[Question] [ ## Introduction: Inspired by [this comment of *@MagicOctopusUrn*](https://codegolf.stackexchange.com/questions/129523/it-was-just-a-bug#comment326309_129549) on [*@Emigna*'s 05AB1E answer](https://codegolf.stackexchange.com/a/129549/52210) for my ["*It was just a bug*" challenge](https://codegolf.stack...
[Question] [ ## Introduction: A few days ago I read [this post with the same title](https://skeptics.stackexchange.com/questions/44245/do-the-26-richest-billionaires-own-as-much-wealth-as-the-poorest-3-8-billion-peo) when I came across it in the HNQ. It asks if this claim of US presidential candidate Bernie Sanders...
[Question] [ **This question already has answers here**: [Find the smallest number that doesn't divide N](/questions/105412/find-the-smallest-number-that-doesnt-divide-n) (100 answers) Closed 6 months ago. We can define the Divisibility Streak `k` of a number `n` by finding the smallest non-negative integer ...
[Question] [ A "Giza number", also colloquially known as a [Timmy Number](http://chat.stackexchange.com/transcript/message/33544457#33544457) is any number where the digits represent a pyramid ([A134810](http://oeis.org/A134810)). For example, "12321" is a giza number because it can be visualized like this: ``` 3...
[Question] [ Given an integer, make an expression that produces it from `0` using unary negation `-` and bitwise complement `~` (`~n` = `-n-1`), with the operators applied right to left. ``` ... -3 = ~-~-~0 -2 = ~-~0 -1 = ~0 0 = 0 1 = -~0 2 = -~-~0 3 = -~-~-~0 ... ``` Your expression must be as short as ...
[Question] [ Print a continuous sinusoidal wave scrolling vertically on a terminal. The program should not terminate and should continuously scroll down the wave (except until it is somehow interrupted). You may assume overflow is not a problem (i.e. you may use infinite loops with incrementing counters, or infinit...
[Question] [ Your task today is to implement a time limit for getting input, a task I've found rather annoying to achieve in most languages. You will create a program function which prompts the user for input. Immediatly after the user supplies input, print the message `input received` and end execution/return. How...
[Question] [ There are [40 ways](https://oeis.org/A096969) a directed [Hamiltonian path](http://mathworld.wolfram.com/HamiltonianPath.html) can be arranged on a 3×3 grid: ![all 20 undirected Hamiltonian paths of a 3&times3; grid](https://i.stack.imgur.com/6g51G.png) This graphic ([thanks Sp3000!](https://chat.s...
[Question] [ **Challenge:** Take a vector / list of integers as input, and output the largest number that's adjacent to a zero. **Specifications:** * As always, optional input and output format * You may assume that there will be at least one zero, and at least one non-zero element. **Test cases:** ``` 1 4 3 6 0 3 ...
[Question] [ Given a *positive* integer as input, your task is to output a truthy value if the number is [divisible](https://en.wikipedia.org/wiki/Divisor) by the double of the sum of its digits, and a falsy value otherwise ([OEIS A134516](https://oeis.org/A134516)). In other words: ``` (sum_of_digits)*2 | number `...
[Question] [ In this challenge you are going to write an interpreter for a simple language I've made up. The language is based on a single accumulator A, which is exactly one byte in length. At the start of a program, A = 0. These are the languages instructions: ## `!`: Inversion This instruction simply inverts eve...
[Question] [ Given a list of non-negative integers in any reasonable format, iterate over it, skipping as many elements as every integer you step on says. --- Here is a worked example: ``` [0, 1, 0, 2, 5, 1, 3, 1, 6, 2] | [] ^ First element, always include it [0, 1, 0, 2, 5, 1, 3, 1, 6, 2] | [0] ^ Skip 0 eleme...
[Question] [ Given a string input, write a program that prints a [truthy value](http://meta.codegolf.stackexchange.com/q/2190/20634) to STDOUT or equivalent if the input is a valid UUID, without using regexes. A valid UUID is > > 32 hexadecimal digits, displayed in five groups separated by hyphens, in the form 8-...
[Question] [ This is my first challenge on ppcg! ### Input A string consisting of two different ascii characters. For example ``` ABAABBAAAAAABBAAABAABBAABA ``` ### Challenge The task is to decode this string following these rules: 1. Skip the first two characters 2. Split the rest of the string into groups of 8 ch...
[Question] [ A demonic number is a positive integer whose decimal representation consists of only 6. The list of demonic numbers starts with 6, 66, 666, 6666. Given a positive integer, output the nearest demonic number. If there are two, output the bigger one. Testcases: ``` n output 1 6 2 6 3 6 6 6 35 6...
[Question] [ Given a non-empty string s, with even length, and a positive integer n, representing its height, compose a pyramid using the following rules: The pyramid should contain n non-empty lines; trailing newlines are allowed. For each 1 <= i <= n, the i-th line should contain the string with each individual c...
[Question] [ As described in [this question](https://codegolf.stackexchange.com/questions/61808/lossy-sorting-implement-dropsort?rq=1): > > Dropsort, designed by David Morgan-Mar, is an example of a linear-time "sorting algorithm" that produces a list that is, in fact, sorted, but contains only some of the origina...
[Question] [ Print all the numbers from 0-100 in the right order using the Danish way of counting # How they count * Like English, they have dedicated words for 0-20, 30, 40 and 100 * Instead of saying `twenty-one` and `twenty-two`, they say `one and twenty` and `two and twenty` * Starting with fifty they say multi...
[Question] [ This is a Cops and Robbers challenge. This is the cop's thread. The [robber's thread is here](https://codegolf.stackexchange.com/q/188143/31716). As a cop, you must pick any sequence from the [OEIS](https://oeis.org/), and write a program **p** that prints the first integer from that sequence. You must...
[Question] [ [NATO phonetic alphabet](https://en.wikipedia.org/wiki/NATO_phonetic_alphabet) is a spelling alphabet that associate to each of the 26 letters of the English alphabet one word (table below) that is easy to understand over the radio or telephone. For example, if you want to communicate the word `CAT` ov...
[Question] [ # [Garland Words](http://blog.vivekhaldar.com/post/89763722591/garland-words) A *garland word* is a word which can be strung together like a garland, because it ends with the same letters it starts with. These groups of letters can even overlap! For example, `underground` is a garland word of order `3...
[Question] [ My homework is to write a ***Martian essay*** (see below) between 729 and 810 words, inclusive. Your task is to write a program that will generate the essay. ## History Around the turn of the 20th century, spiritualist Catherine-Elise Müller allegedly communicated with Martians. During somnambulatory t...
[Question] [ > > **NOTICE:** This challenge is now closed: I will no longer be updating the leaderboard and will not change the accepted answer. However, you are free to run the controller and update the leaderboard yourself, if you wish. > > > ## [Join the chat!](https://chat.stackexchange.com/rooms/81067/the-...
[Question] [ In [xkcd 1047](https://xkcd.com/1047/), Randall Munroe lists "slightly wrong" approximations of assorted quantities and numbers with varying precision and complexity, such as that the number of liters in a gallon is very close to 3 + π⁄4. In the middle of the comic, he gives an intermission: a way to e...
[Question] [ Numbers that are easy to remember yet theoretically not easily made Your challenge is to make a program/function in any language that generates uniformly random numbers that fit these criteria: 1. **Length** is **5 digits** 2. There are two separate repeated digit pairs 3. One set of repeated digits is...
[Question] [ Given an input of a string consisting of any message from [our site chatroom](http://chat.stackexchange.com/rooms/240/the-nineteenth-byte) taken from the list described and linked below, output either a truthy or a falsy value attempting to predict whether that message was starred or not in 50 bytes or...
[Question] [ As we all know, the Zelda series are one of the best game series ever made. In honor of that, let us play some songs on the ocarina. ## Challenge: Write a program which, given a song, outputs the score to stdout for that particular song. ## Input: The song which you will have to output the score of wil...
[Question] [ Your challenge is to print/output/return this text: ``` _____ _____ | 1 | | 2 | | H | ...
[Question] [ Given three distinct numbers from \$1\$ to \$7\$, output three other distinct numbers from \$1\$ to \$7\$, that is having no numbers in common with the original numbers. Your code must produce a different output set for each possible input set. That is, no two inputs can produce the same output, treati...
[Question] [ Starting with a positive integer **N**, find the smallest integer **N'** which can be computed by repeatedly dividing **N** by one of its digits (in base-10). Each selected digit must be a divisor of **N** greater than **1**. ## Example #1 The expected output for **N = 230** is **N' = 23**: [![230/2=11...
[Question] [ Fed up with the reliability of flash storage, you decided to store all your programs on one of those good old 1,440 KiB floppies. However, after copying not even 3,000 programs, the disk was full. How's that even possible? Skilled in the art of code golf as you are, most of your programs aren't even 10...
[Question] [ Well I think it is about time we have another [proof-golf](/questions/tagged/proof-golf "show questions tagged 'proof-golf'") question. This time we are going to prove the well known logical truth \$(A \rightarrow B) \rightarrow (\neg B \rightarrow \neg A)\$ To do this we will use Łukasiewicz's third [...
[Question] [ **This question already has answers here**: [DropSort it like it's hot](/questions/137549/dropsort-it-like-its-hot) (24 answers) Closed 2 years ago. There is a "sorting" algorithm often called Stalin Sort, where instead of sorting an array, you just remove any items that are out of order. In thi...
[Question] [ disclaimer: the Mean mean is made up by me Define the arithmetic mean of \$n\$ numbers as $$M\_1(x\_1,...,x\_n)=\frac{x\_1+x\_2+...+x\_n}{n}$$ Define the geometric mean of \$n\$ numbers as $$M\_0(x\_1,...,x\_n)=\root{n}\of{x\_1x\_2...x\_n}$$ Define the harmonic mean of \$n\$ numbers as $$M\_{-1}(x\_1,....
[Question] [ ![It's super effective!](https://i.stack.imgur.com/S0AsX.png) In Pokémon there are 18 types: ``` Normal Fighting Flying Poison Ground Rock Bug Ghost Steel Fire Water Grass Electric Psychic Ice Dragon Dark Fairy ``` A Pokémon can have single or dual typing. For example...
[Question] [ Given an input of a "hotel" in ASCII art with a single room marked, output the room number according to certain rules. Here's an example of an ASCII hotel: ``` ## ## ##### ## ##### ###### ## ##### ###### ## ##### ###### ## ``` Here are a few more things abou...
[Question] [ A brick wall is a rectangle made of horizontal 1-by-n bricks stacked into rows. Here's a wall of height 4 and width 8, with brick sizes shown on the right. ``` [______][______] 4 4 [__][____][__][] 2 3 2 1 [][______][____] 1 4 3 [____][______][] 3 4 1 ``` This wall is unsteady because it ha...
[Question] [ I want to try a new type of regex golf challenge, which asks you to solve nontrivial computational tasks with nothing but regex substitution. To make this more possible and less of a chore, you will be allowed to apply several substitutions, one after the other. ## The Challenge We'll start simple: giv...
[Question] [ RollerCoaster Tycoon 2's maze is the inspiration for this question. Credit to [Marcel Vos](https://www.youtube.com/watch?v=KVgoy_a_gWI) for thoroughly breaking the classic RCT2 AI. The pathfinding AI in this question is the AI in the latest version of OpenRCT2 at the time of writing, which was updated ...
[Question] [ Recently, I've found a [rant](http://scrappy-do.blogspot.com/2004/08/little-rant-about-microsoft-internet.html) from 2004 about Internet Explorer's color parsing. Turns out, MS made sure that just about *anything* will be parsed as a color somehow and I think it makes for a neat challenge. ## Well, how...
[Question] [ You are providing tech support to *the* Bruce Dickenson as he produces a Blue Öyster Cult recording session. When he asks for [more cowbell](https://vimeo.com/55624839), you can give it to him. ## Your task Write a program or function that takes a string (or equivalent in your language) as input, and o...
[Question] [ # Input The symbol of any triadic chord (see <http://en.wikipedia.org/wiki/Chord_(music)#Triads>). # Output The notes constituting the given chord. # Examples Input: `AM` Output: `A C# E` Input: `C#m` Output: `C# E G#` Input: `Db+` Output: `C# F A` Input: `C0` Output: `C D# F#` # Bonuses **-50** if you...
[Question] [ [The 2020-05-29 xkcd comic](https://xkcd.com/2313/) showed us the numbers that Randall Munroe feels would be most likely to result from multiplication, other than the correct answers. The table does seem to have some sort of twisted logic to it. For your convenience, the Wrong Times Table is reproduced...
[Question] [ Romanization of Japanese is converting Japanese text into Latin characters. In this challenge, you will be given a string of Japanese characters as input and expected to convert them to the correct ASCII string. # What You'll Need To Know The Japanese language has three writing systems: hiragana (the c...
[Question] [ You want to open a new zoo. It'll be amazing. But being the cheapskate that you are, you only want to afford three-letter animals (everyone knows that an animal's cost is proportional to the length of its name). There goes your dream of making people pay to see an `elephant`. But suddenly you have a br...
[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/6887/edit). Closed 8 years ago. [Improve this question](/po...
[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 currently ...
[Question] [ You will be given a string. It will contain 9 unique integers from 0-9. You must return the missing integer. The string will look like this: ``` 123456789 > 0 134567890 > 2 867953120 > 4 ``` [Answer] # [Python 2](https://docs.python.org/2/), ~~18~~ 16 bytes +beauty thanks to @Sarge Borsch ``` `...
[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 quest...
[Question] [ > > **Note:** The winning answer will be selected on **4/12/17** the current winner is [Jolf, 1 byte](https://codegolf.stackexchange.com/a/115323/58826). > > > I'm surprised that we haven't had a what's my middle name challenge on this site yet. I did alot of searching but found nothing. If this is...
[Question] [ *Inspired by [this](https://codegolf.stackexchange.com/q/210638/95792) challenge, which got closed. This is meant to be an easier, but no less interesting version of that.* This is the cops thread of a [cops-and-robbers](/questions/tagged/cops-and-robbers "show questions tagged 'cops-and-robbers'") cha...
[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/22921/edit). Closed 9 years ago. [Improve this question](/p...
[Question] [ The task is simple: consolidate an array of ints. Consolidating this array consists of the following: * All instances of 0 need to be moved to the end of the array. * There should be no 0s between the non-zero integers. * All non-zero indices should retain their order. # Challenge Consolidate an array ...