text
stringlengths
180
608k
[Question] [ Your goal is to create a function or a program to reverse the bits in a range of integers given an integer \$n\$. In other words, you want to find the [bit-reversal permutation](https://en.wikipedia.org/wiki/Bit-reversal_permutation) of a range of \$2^n\$ items, zero-indexed. This is also the OEIS se...
[Question] [ **Closed.** This question is [off-topic](/help/closed-questions). It is not currently accepting answers. --- This site is for programming contests and challenges. **General programming questions** are off-topic here. You may be able to get help on [Stack Overflow](http://stackoverflow.com/about)...
[Question] [ Given an input string, output that string with all vowels `a`, `e`, `i`, `o` and `u` swapped at random between each other. For example, in the string `this is a test`, there are 4 vowels: `[i, i, a, e]`. A valid shuffling of those vowels could be `[a, i, e, i]` therefore yielding the output `thas is ...
[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/162302/edit). Closed 5 years ago. [Improve this question](/posts/162302/edi...
[Question] [ **Closed.** This question is [off-topic](/help/closed-questions). It is not currently accepting answers. --- Questions without an **objective primary winning criterion** are off-topic, as they make it impossible to indisputably decide which entry should win. Closed 5 years ago. [Improve this que...
[Question] [ # Definition The infinite spiral used in this question has `0` on the position `(0,0)`, and continues like this: ``` 16-15-14-13-12 | | 17 4--3--2 11 | | | | 18 5 0--1 10 | | | 19 6--7--8--9 | 20--21... ``` It is to be interpreted as a Cartesian plane. For example, `1`...
[Question] [ This should be a simple challenge. Given a number \$n \ge 0\$, output the [super-logarithm](https://en.wikipedia.org/wiki/Super-logarithm) (or the \$\log^\*\$, log-star, or [iterated logarithm](https://en.wikipedia.org/wiki/Iterated_logarithm), which are equivalent since \$n\$ is never negative for t...
[Question] [ **This question already has answers here**: [Case Permutation](/questions/80995/case-permutation) (24 answers) Closed 6 years ago. For any String that is composed of lower cased alphabetical characters, make a function that returns a list of all of it's variations, empty strings returns empty ...
[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/148766/edit). Closed 6 years ago. [Improve this question](/posts/148766/edi...
[Question] [ **This question already has answers here**: [Reverse stdin and place on stdout](/questions/242/reverse-stdin-and-place-on-stdout) (140 answers) Closed 6 years ago. This is a pretty simple one. if the user enters "Hello World" your code should output "dlroW olleH" I was inspired by the multipl...
[Question] [ **Challenge:** Write the smallest program (in characters) that resolves quadratic equations i.e. `ax² + bx + c = 0` **Rules:** Given 3 numbers in **R** comma-delimited on STDIN: a,b,c (a != 0), print on STDOUT the 2 roots in **C**, one per line. **R** stands for real numbers, **C** for complex numbe...
[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/138144/edit). Closed 6 years ago. [Improve this question](/posts/138144/edi...
[Question] [ **Closed.** This question is [off-topic](/help/closed-questions). It is not currently accepting answers. --- This site is for programming contests and challenges. **General programming questions** are off-topic here. You may be able to get help on [Stack Overflow](http://stackoverflow.com/about)...
[Question] [ **Closed**. This question needs [details or clarity](/help/closed-questions). It is not currently accepting answers. --- **Want to improve this question?** Add details and clarify the problem by [editing this post](/posts/135284/edit). Closed 6 years ago. [Improve this question](/posts/135284/edi...
[Question] [ **Closed**. This question needs [details or clarity](/help/closed-questions). It is not currently accepting answers. --- **Want to improve this question?** Add details and clarify the problem by [editing this post](/posts/133709/edit). Closed 6 years ago. [Improve this question](/posts/133709/edi...
[Question] [ **Closed**. This question needs [details or clarity](/help/closed-questions). It is not currently accepting answers. --- **Want to improve this question?** Add details and clarify the problem by [editing this post](/posts/125546/edit). Closed 6 years ago. [Improve this question](/posts/125546/edi...
[Question] [ **Closed**. This question needs [details or clarity](/help/closed-questions). It is not currently accepting answers. --- **Want to improve this question?** Add details and clarify the problem by [editing this post](/posts/122179/edit). Closed 6 years ago. [Improve this question](/posts/122179/edi...
[Question] [ **Closed**. This question needs [details or clarity](/help/closed-questions). It is not currently accepting answers. --- **Want to improve this question?** Add details and clarify the problem by [editing this post](/posts/117548/edit). Closed 6 years ago. [Improve this question](/posts/117548/edi...
[Question] [ **Closed**. This question needs [details or clarity](/help/closed-questions). It is not currently accepting answers. --- **Want to improve this question?** Add details and clarify the problem by [editing this post](/posts/117320/edit). Closed 6 years ago. [Improve this question](/posts/117320/edi...
[Question] [ **Closed**. This question needs [details or clarity](/help/closed-questions). It is not currently accepting answers. --- **Want to improve this question?** Add details and clarify the problem by [editing this post](/posts/117015/edit). Closed 6 years ago. [Improve this question](/posts/117015/edi...
[Question] [ Write a program (or function) that takes in a non-empty string of any [printable ASCII](https://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters) characters. Print (or return) a zigzagging chain of the characters in the string with every neighboring pair of characters linked by: * `/` if the fi...
[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] [ Let's play some code golf! Given a tic-tac-toe board state (Example:) ``` |x|x|o| |x|o|x| |o|o|x| ``` Determine whether a game is a `win` a `lose` or `cat`. Your code should output any of these options given a state. The above game should output `lose` Just to be clear: a win is defined as any 3 `x`s...
[Question] [ Given strings X and Y, determine whether X is a [subsequence](http://en.wikipedia.org/w/index.php?title=Subsequence&oldid=594253998) of Y. The empty string is regarded as a subsequence of every string. (E.g., `''` and `'anna'` are subsequences of `'banana'`.) ### Input * X, a possibly-empty case-sens...
[Question] [ **This question already has answers here**: [Character counts in source code](/questions/50980/character-counts-in-source-code) (9 answers) Closed 6 years ago. *Oh, `<PROGRAM NAME HERE>`, tell me how many character '`<CHARACTER HERE>`'/s are there in your body.* --- I do not think it a dupe to...
[Question] [ # Introduction Time is confusing. Sixty seconds to a minute, sixty minutes to an hour, twenty-four hours to a day (and not to mention that pesky am/pm!). There's no room for such silliness nowadays, so we've decided to adopt the only sensible alternative: decimal days! That is to say, each day is con...
[Question] [ Given a list of strings, find the **smallest square** matrix that contains each of the initial strings. The strings may appear horizontally, vertically or diagonally and forwards or backwards like in this question [Word Search Puzzle](https://codegolf.stackexchange.com/questions/37940/word-search-puz...
[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/109947/edit). Closed 7 years ago. [Improve this question](/posts/109947/edi...
[Question] [ ### Introduction For the ones who don't know, a palindrome is when a string is equal to the string backwards (with exception to interpunction, spaces, etc.). An example of a palindrome is: ``` abcdcba ``` If you reverse this, you will end up with: ``` abcdcba ``` Which is the same. Therefore, we call...
[Question] [ Write a program that counts up forever, starting from one. Rules: * Your program must log to `STDOUT` or an acceptable alternative, if `STDOUT` is not available. * Your program must be a full, runnable program, and not a function or snippet. * Your program must output each number with a separating ch...
[Question] [ Your bird has been itching for some exercise and is sick of being stuck in static positions all the time. Write a program that will show a randomly dancing ascii bird, updating every 100ms\*n or 200ms\*n depending on the dance move. The bird always begins with the dance move `<(")>`. The program shou...
[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/103422/edit). Closed 7 years ago. [Improve this question](/posts/103422/edi...
[Question] [ Inspired by [this](http://www.smbc-comics.com/index.php?db=comics&id=2874). There is a number, given as either integer, string or array of digits (your choice). Find the base in which the representation of the number will have most "4"s and return that base. ``` Number Result 624 5 444 ...
[Question] [ ![](https://i.stack.imgur.com/7vszH.png "What's the complexity class of the best linear programming cutting-plane techniques? I couldn't find it anywhere. Man, the Garfield guy doesn't have these problems ...") You are given, as a list or vector or whatever, a bunch of 3-tuples or whatever, where t...
[Question] [ **Closed.** This question is [off-topic](/help/closed-questions). It is not currently accepting answers. --- Questions without an **objective primary winning criterion** are off-topic, as they make it impossible to indisputably decide which entry should win. Closed 7 years ago. [Improve this que...
[Question] [ [The Sierpinsky Triangle](http://en.wikipedia.org/wiki/Sierpinski_triangle) is a fractal created by taking a triangle, decreasing the height and width by 1/2, creating 3 copies of the resulting triangle, and place them such each triangle touches the other two on a corner. This process is repeated ove...
[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/99500/edit). Closed 7 years ago. [Improve this question](...
[Question] [ A [Flow Snake, also known as a Gosper curve](https://en.wikipedia.org/wiki/Gosper_curve), is a fractal curve, growing exponentially in size with each order/iteration of a simple process. Below are the details about the construction and a few examples for various orders: *Order 1 Flow Snake*: ``` ____...
[Question] [ **Closed.** This question is [off-topic](/help/closed-questions). It is not currently accepting answers. --- This site is for programming contests and challenges. **General programming questions** are off-topic here. You may be able to get help on [Stack Overflow](http://stackoverflow.com/about)...
[Question] [ ## Challenge Given an input `n`, print an ASCII art cake `n` layers tall, viewed from the side, with two candles on top. Refer to the examples below for details. ## Output ``` >> cake(1) _|_|_ | | +-----+ >> cake(3) _|_|_ | | +---------+ | | +-------------+ | ...
[Question] [ The goal of this code golf is to convert integers to English words. The program prompts for input. If this input isn't an integer, print `NaN`. If it is an integer, convert it to English words and print these words. Minimum input: 0 (zero). Maximum input: 9000 (nine thousand). So, `5` returns `fiv...
[Question] [ The goal of this challenge is to receive an input and output that input but with sentence order reversed. Example Input: ``` Hello friend. What are you doing? I bet it is something I want to do too! ``` Example Output: ``` I bet it is something I want to do too! What are you doing? Hello friend. ``` ...
[Question] [ **This question already has answers here**: [Discrete Convolution or Polynomial Multiplication](/questions/80030/discrete-convolution-or-polynomial-multiplication) (16 answers) [Factor a polynomial over a finite field or the integers](/questions/38513/factor-a-polynomial-over-a-finite-field-or...
[Question] [ A happy number is defined by the following process. Starting with any positive integer, replace the number by the sum of the squares of its digits, and repeat the process until the number equals 1 (where it will stay), or it loops endlessly in a cycle which does not include 1. Those numbers for which...
[Question] [ **Closed.** This question is [off-topic](/help/closed-questions). It is not currently accepting answers. --- Questions without an **objective primary winning criterion** are off-topic, as they make it impossible to indisputably decide which entry should win. Closed 7 years ago. [Improve this que...
[Question] [ You must evaluate a string written in [Reverse Polish notation](http://en.wikipedia.org/wiki/Reverse_Polish_notation) and output the result. The program must accept an input and return the output. For programming languages that do not have functions to receive input/output, you can assume functions l...
[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/81069/edit). Closed 7 years ago. [Improve this question](/posts/81069/edit)...
[Question] [ The [PBM (Portable BitMap) format](http://en.wikipedia.org/wiki/Netpbm_format#PBM_example) is a very simple ASCII black and white bitmap format. Here's an example for the letter 'J' (copy-pasted from the wikipedia link): ``` P1 # This is an example bitmap of the letter "J" 6 10 0 0 0 0 1 0 0 0 0 0 1 ...
[Question] [ Write a program or function that takes in a non-negative integer N from stdin or as a function argument. It must print or return a string of a hollow ASCII-art square whose sides are each made with N copies of the number N. ### Specifically: If N is `0`, no copies of N are used, so there should be no...
[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/77249/edit). Closed 7 years ago. [Improve this question](/posts/77249/edit)...
[Question] [ # Introduction We've have a few base conversion challenges here in the past, but not many designed to tackle arbitrary length numbers (that is to say, numbers that are long enough that they overflow the integer datatype), and of those, most felt a little complicated. I'm curious how golfed down a cha...
[Question] [ # It was a warm summer evening... when my stupid car decided to break down in the middle of the road on my way back from the supermarket. I pushed it to the sideline and decided to walk home. I opened the trunk to take out the grocery and remaining stuff. It was then that I noticed the items were not...
[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/71143/edit). Closed 8 years ago. [Improve this question](/posts/71143/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/15872/edit). Closed 7 years ago. [Improve this question](/posts/15872/edit)...
[Question] [ In the spirit of the holidays, and as someone already started the winter theme([Build a snowman!](https://codegolf.stackexchange.com/questions/15648/build-a-snowman)) I propose a new challenge. Print the number of days, hours, minutes, and seconds until Christmas(midnight(00:00:00) December 25th) on ...
[Question] [ **This question already has answers here**: [Line numbering - implement nl](/questions/38320/line-numbering-implement-nl) (8 answers) Closed 8 years ago. You must do a program that reads a file given in first argument and print it's content to STDOUT and number the lines on the file, the numbe...
[Question] [ Write a program or function that takes in a nonempty list of [mathematical inequalities](https://en.wikipedia.org/wiki/Inequality_(mathematics)) that use the less than operator (`<`). Each line in the list will have the form ``` [variable] < [variable] ``` where a `[variable]` may be any nonempty str...
[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/63350/edit). Closed 8 years ago. [Improve this question](/posts/63350/edit)...
[Question] [ A positive integer N is *K*-sparse if there are at least *K* 0s between any two consecutive 1s in its binary representation. So, the number 1010101 is 1-sparse whereas 101101 is not. Your task is to find the next 1-sparse number for the given input number. For example, if the input is 12 (`0b1100`) o...
[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/60362/edit). Closed 7 years ago. [Improve this question](/posts/60362/edit)...
[Question] [ INPUT: Any string consisting exclusively of lowercase letters via function argument, command line argument, STDIN, or similar. OUTPUT: Print or return a number that will represent the sum of the distances of the letters according to the following metric: You take the first and second letter and count...
[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/57956/edit). Closed 8 years ago. [Improve this question](/posts/57956/edit)...
[Question] [ **Closed.** This question is [off-topic](/help/closed-questions). It is not currently accepting answers. --- This site is for programming contests and challenges. **General programming questions** are off-topic here. You may be able to get help on [Stack Overflow](http://stackoverflow.com/about)...
[Question] [ You must evaluate a string written in [Reverse Polish notation](http://en.wikipedia.org/wiki/Reverse_Polish_notation) and output the result. The program must accept an input and return the output. For programming languages that do not have functions to receive input/output, you can assume functions l...
[Question] [ **Closed**. This question needs to be more [focused](/help/closed-questions). It is not currently accepting answers. --- **Want to improve this question?** Update the question so it focuses on one problem only by [editing this post](/posts/53452/edit). Closed 8 years ago. [Improve this question](...
[Question] [ Your function or program should take a year as input and return (or print) the date (in the Gregorian calendar) of that years Easter (not the Eastern Orthodox Easter). The date returned should be formatted according to ISO 8601, but with support for years greater than 9999 (such as *312013-04-05* or ...
[Question] [ Okay, I recently wrote a Javascript Rubik's Cube scrambler that outputs a 25-move scramble. It's 135 bytes. The Gist is [here](https://gist.github.com/molarmanful/2f299ae96f6120cf5283), but for reference, I have the formatted code: ``` function(){ for(a=s=y=r=[],m='RLUDFB',x=Math.random;++a<26;y=r,...
[Question] [ **This question already has answers here**: [Just Another Polyglot Hacker! [duplicate]](/questions/16853/just-another-polyglot-hacker) (5 answers) [Write a polyglot that prints the language's name](/questions/7261/write-a-polyglot-that-prints-the-languages-name) (17 answers) Closed 8 years ...
[Question] [ # Task Given a list of space-delimited integers as input, output all unique non-empty subsets of these numbers that each subset sums to 0. --- ## Test Case Input: `8 −7 5 −3 −2` Output: `-3 -2 5` --- ## Winning Criterion This is [code-golf](/questions/tagged/code-golf "show questions tagged 'code-g...
[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/19196/edit). Closed 3 years ago. The community reviewed whether to reopen t...
[Question] [ **Closed**. This question needs [details or clarity](/help/closed-questions). It is not currently accepting answers. --- **Want to improve this question?** Add details and clarify the problem by [editing this post](/posts/16209/edit). Closed 1 year ago. [Improve this question](/posts/16209/edit) ...
[Question] [ **This question already has answers here**: [Golfing the Core [closed]](/questions/38691/golfing-the-core) (9 answers) Closed 9 years ago. You have to create a function `range`, such that it takes two (integer) arguments `a` and `b` (`a < b`) and returns all the numbers in between them. So: ``...
[Question] [ You are given a list of numbers `L = [17, 5, 9, 17, 59, 14]`, a bag of operators `O = {+:7, -:3, *:5, /:1}` and a number `N = 569`. ## Task Output an equation that uses all numbers in `L` on the left-hand side and only the number `N` on the right-hand side. If this is not possible, output False. Exam...
[Question] [ **Closed.** This question is [off-topic](/help/closed-questions). It is not currently accepting answers. --- Questions without an **objective primary winning criterion** are off-topic, as they make it impossible to indisputably decide which entry should win. Closed 9 years ago. [Improve this que...
[Question] [ **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/38227/edit). Closed 9 years ago. [Improve this question](/posts/38227/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/32814/edit). Closed 9 years ago. [Improve this question](/posts/32814/edit)...
[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/25746/edit). Closed 9 years ago. [Improve this question](...
[Question] [ **Closed**. This question needs [details or clarity](/help/closed-questions). It is not currently accepting answers. --- **Want to improve this question?** Add details and clarify the problem by [editing this post](/posts/20112/edit). Closed 10 years ago. [Improve this question](/posts/20112/edit...
[Question] [ **This question already has answers here**: [Finding "sub-palindromes" 2: subsequences.](/questions/862/finding-sub-palindromes-2-subsequences) (3 answers) Closed 10 years ago. **Problem:** Remove characters from strings to make the longest (character length) palindrome possible. The first lin...
[Question] [ If you like, write a program which sorts cities according to the rules of city name game. * Each name of the city should start from the last letter in the previous city name. E.g. `Lviv -> v -> Viden -> n -> Neapolis -> s -> Sidney -> y -> Yokogama -> a -> Amsterdam -> m -> Madrid -> d -> Denwer` * I...
[Question] [ **This question already has answers here**: [Build a solver for the cow and chicken problem](/questions/12360/build-a-solver-for-the-cow-and-chicken-problem) (5 answers) Closed 10 years ago. An old Chinese poem goes: > > 一百饅頭一百僧, > > 大僧三個更無爭, > > 小僧三人分一個, > > 大小和尚得幾丁? > > > Whe...
[Question] [ Using your language of choice, golf a [quine](http://en.wikipedia.org/wiki/Quine_%28computing%29). > > A **quine** is a non-empty computer program which takes no input and produces a copy of its own source code as its only output. > > > No cheating -- that means that you can't just read the sourc...
[Question] [ **Closed.** This question is [off-topic](/help/closed-questions). It is not currently accepting answers. --- **Want to improve this question?** [Update the question](/posts/2982/edit) so it's [on-topic](/help/on-topic) for Code Golf Stack Exchange. Closed 12 years ago. [Improve this question](/po...
[Question] [ # Task Take in **3** inputs. The **length** of the wall, the **height** of the wall and the **coverage** of the paint. Output how many tins of paint are required. # Output Since there's no way to purchase `1/3` tin of paint, you'll need to round the amount of paint tins up to the nearest integer. # A...
[Question] [ Write code that outputs the smallest integer \$n > 5\$ such that \$\frac{\sqrt{\log\_2{n}}}{(\log\_2 {\log\_2 n})^2} > 1\$. Your code may have at most one digit in its source code. You can use your chosen digit more than once however. By digits we are only counting the ASCII characters between 0x30 a...
[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/80696/edit). Closed 7 years ago. [Improve this question](...
[Question] [ **Closed**. This question needs [details or clarity](/help/closed-questions). It is not currently accepting answers. --- **Want to improve this question?** Add details and clarify the problem by [editing this post](/posts/2041/edit). Closed 3 years ago. [Improve this question](/posts/2041/edit) ...
[Question] [ **Closed.** This question is [off-topic](/help/closed-questions). It is not currently accepting answers. --- **General programming questions** are off-topic here, but can be asked on [Stack Overflow](http://stackoverflow.com/about). Closed 9 years ago. [Improve this question](/posts/28113/edit) ...
[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/75200/edit). Closed 7 years ago. [Improve this question](...
[Question] [ **Closed.** This question is [off-topic](/help/closed-questions). It is not currently accepting answers. --- This question does not appear to be about code golf or coding challenges within the scope defined in the [help center](https://codegolf.stackexchange.com/help/on-topic). Closed 8 years ag...
[Question] [ **This question already has answers here**: [Build a polyglot for Hello World](/questions/10695/build-a-polyglot-for-hello-world) (9 answers) Closed 9 years ago. **The Setup** Jim the student who attempts to use Stack Overflow to do his homework has asked how to get his program to say "Hello...
[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/19430/edit). Closed 5 years ago. [Improve this question](/posts/19430/edit)...
[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/61390/edit). Closed 8 years ago. [Improve this question](...
[Question] [ It's simple, simply write the shortest code to raise a `TypeError`. In Python you can do: ``` raise TypeError ``` However it should be shorter with a code that gives a `TypeError` without raising it. [Answer] ``` for chr1 in range(32, 128): for chr2 in range(32, 128): for chr3 in range(3...
[Question] [ You're writing your favorite language and you want to display the following string: `abcdefghijklmnopqrstuvwxyz` to your happy customer. Unfortunately, your keyboard is broken and you can now only type symbols `!+-*/[]()`. You must submit a code that evaluates to be the string `abcdefghijklmnopqrstuv...
[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] [ I just created a language on the spot, and it's called "interpreter". Called as such because the only valid word is "interpreter"! A sample program in "interpreter" looks like this: ``` interpreter interpreterinterpreter interpreterinterpreterinterpreter interpreterinterpreterinterpreterinterpreter i...
[Question] [ **Closed**. This question needs [details or clarity](/help/closed-questions). It is not currently accepting answers. --- **Want to improve this question?** Add details and clarify the problem by [editing this post](/posts/17785/edit). Closed 10 years ago. [Improve this question](/posts/17785/edit...
[Question] [ Your function must accept three numbers in any order: * A signed real number (or `±Infinity`) - The number (`N`) for which you have to generate a number from the range * A signed integer - Minimum of the range * A signed integer - Maximum of the range **Input**: * The minimum of the range will always...
[Question] [ I'm posting my code for a LeetCode problem copied here. If you have time and would like to golf for a short solution, please do so. ### Requirement * It has to only pass the LeetCode's Online Judge, if the language would be available. * If the language is not available, simply we should possibly keep...