text
stringlengths
180
608k
[Question] [ **This question already has answers here**: Closed 11 years ago. > > **Possible Duplicate:** > > [Emulate an Intel 8086 CPU](https://codegolf.stackexchange.com/questions/4732/emulate-an-intel-8086-cpu) > > > I know that there already is a code golf for this, but that one didn't require mu...
[Question] [ The task is simple, given an integer `n` of how many lines the next `n` lines is and, a multi-line input, output the resulting 90 degree tilted grid in a clockwise formation. E.g. Input: ``` 2 c d o e ``` Output: ``` o c e d ``` I/O format: 1. Input will have spaces in between them 2. Input always co...
[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/237241/edit). Closed 2 years ago. [Improve this question](/posts/237241/edi...
[Question] [ **This question already has answers here**: [Convert phrases to reverse style [duplicate]](/questions/77609/convert-phrases-to-reverse-style) (29 answers) Closed 6 years ago. ## Input Two words separated by a space. It is assumed that the first is a verb. ## Output The "Soviet counterpoint" to...
[Question] [ **Closed**. This question needs [details or clarity](/help/closed-questions). It is not currently accepting answers. --- **Want to improve this question?** Add details and clarify the problem by [editing this post](/posts/71806/edit). Closed 8 years ago. [Improve this question](/posts/71806/edit)...
[Question] [ Consider following recurrence relation: ``` p[n + 1] = (p[n]^2 + 1) / 2 ``` If `p[1]`, `p[2]`, ..., `p[k]` are primes and `p[k+1]` is not, then `k` is length of sequence starting with `p[1]`. For example, if `p[1] = 3`, then `p[2] = 5, p[3] = 13, p[4] = 85 = 5 * 17`, thus length of sequence is 3. #...
[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/33099/edit). Closed 9 years ago. [Improve this question](...
[Question] [ **Closed.** This question is [off-topic](/help/closed-questions). It is not currently accepting answers. --- Questions without an **objective primary winning criterion** are off-topic, as they make it impossible to indisputably decide which entry should win. Closed 9 years ago. [Improve this que...
[Question] [ **This question already has answers here**: [Build a random number generator that passes the Diehard tests](/questions/10553/build-a-random-number-generator-that-passes-the-diehard-tests) (11 answers) [Random number generation, without built-in random number generation libraries [duplicate]](/...
[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 10 years ago. [Improve this qu...
[Question] [ **This question already has an answer here**: [Solitaire Dreams - Creating a winnable solitaire starting hand](/questions/10465/solitaire-dreams-creating-a-winnable-solitaire-starting-hand) (1 answer) Closed 10 years ago. NOTE: SIMILIAR TO [Solitaire Dreams - Creating a winnable solitaire star...
[Question] [ Write a function to find the solution of [e^x](http://www.wolframalpha.com/input/?i=exp%28x%29) given x, and a precision in the form 0.000001. sample input and output: `e(4,0.00001)` will return `54.5981494762146`, and the precision is +/- `.00001`. The output would be acceptable in the range `54.598...
[Question] [ **This question already has answers here**: [Full Width Text](/questions/75979/full-width-text) (146 answers) Closed 2 years ago. ## Challenge Given a positive integer, find the fastest way to iterate over its digits. Bytecode size doesn't matter as much as speed of execution. ## Examples For ...
[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/195647/edit). Closed 4 years ago. [Improve this question](/posts/195647/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/181601/edit). Closed 4 years ago. [Improve this question](/posts/181601/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/168466/edit). Closed 5 years ago. [Improve this question](/posts/168466/edi...
[Question] [ **This question already has answers here**: [Sing Happy Birthday to your favourite programming language](/questions/39752/sing-happy-birthday-to-your-favourite-programming-language) (207 answers) [We're no strangers to code golf, you know the rules, and so do I](/questions/6043/were-no-strange...
[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/92322/edit). Closed 7 years ago. [Improve this question](/posts/92322/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/80224/edit). Closed 7 years ago. [Improve this question](/posts/80224/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/80108/edit). Closed 7 years ago. [Improve this question](/posts/80108/edit)...
[Question] [ **This question already has answers here**: [Code-Golf: Permutations](/questions/5056/code-golf-permutations) (30 answers) Closed 9 years ago. Given a string of English alphabet characters, write the shortest code to print all possible permuations in lexicographical order without using any lan...
[Question] [ **Input**: a word (2-100 characters) Convert this word to a palindrome: * delete character - 13 points * add character - 12 points * increase character - 5 points ('d' > 'e') * decrease character - 4 points ('n' > 'm') * switch 2 characters - 7 points What is the minimal points needed to make the wor...
[Question] [ **This question already has answers here**: [Greatest Common Divisor](/questions/77270/greatest-common-divisor) (85 answers) [Least Common Multiple](/questions/94999/least-common-multiple) (49 answers) Closed 7 months ago. Note: most of the questions that are already in existence about this...
[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/214568/edit). Closed 3 years ago. [Improve this question](/posts/214568/edi...
[Question] [ **This question already has answers here**: [Count up folks!](/questions/78448/count-up-folks) (144 answers) Closed 4 years ago. # Introduction So the Challenge is to give out all combinations with two Inputs. The length of the string is also optional and you should be able to edit this. I've ...
[Question] [ **This question already has answers here**: [??? Question Marks? [closed]](/questions/163445/question-marks) (2 answers) Closed 5 years ago. # Challenge : Check : * if there are exactly `n` exclamation marks `!` between every `pair` * and whether the sum of **each** pair equals to 10. --- # In...
[Question] [ See similar question for 2D case: [Find the longest uninterrupted arc](https://codegolf.stackexchange.com/questions/164690) The challenge here is to find the longest uninterruped [great circle](https://en.wikipedia.org/wiki/Great_circle) arc around a unit hypersphere in N dimensions, with a random am...
[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/144876/edit). Closed 6 years ago. [Improve this question](/posts/144876/edi...
[Question] [ **This question already has answers here**: [Draw an ASCII Rectangle](/questions/93707/draw-an-ascii-rectangle) (41 answers) Closed 6 years ago. NOTE: This question is different than [Draw an ASCII Rectangle](https://codegolf.stackexchange.com/questions/93707/draw-an-ascii-rectangle) because t...
[Question] [ # The task Your program will be given the following inputs: a number *n*, and an array of *n* positive integers. Your program only has to work when *n*=1000. The program must do the following: * If the input array is a permutation of the range [1, 2, …, *n*], output `Huh!?` * Otherwise, return a thre...
[Question] [ **This question already has answers here**: [What code compiles in the most number of languages? [closed]](/questions/4481/what-code-compiles-in-the-most-number-of-languages) (2 answers) Closed 8 years ago. ## Introduction A known fact is that Jon Skeet [can code Perl and make it look like Jav...
[Question] [ **This question already has answers here**: [Paint by Numbers](/questions/42217/paint-by-numbers) (4 answers) Closed 8 years ago. This is a successor to my previous Code Golf challenge, which may be found [here.](https://codegolf.stackexchange.com/questions/50314/approximate-a-given-image-usin...
[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/48453/edit). Closed 8 years ago. [Improve this question](/posts/48453/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/44451/edit). Closed 9 years ago. [Improve this question](/posts/44451/edit)...
[Question] [ A little context: > > * Book has 411 Pages > * Read a random number of pages on the first day which is unknown > * Number of pages to read next day is the square of the sum of the digits of the page currently on > > > I.e. on Page 36: read 81 pages next day > * On day 6 The square answer directly ...
[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/34448/edit). Closed 9 years ago. [Improve this question](/posts/34448/edit)...
[Question] [ Anyone who has spent any time around a deck of playing cards will recognize the riffle shuffle. The deck is cut in half and the two stacks are riffled simultaneously into the same pile before being tidied up in a sometimes visually appealing way. This code-golf challenge is to write a function/method...
[Question] [ Write the shortest POSIX-form regular expression that matches only non-negative integers divisible by 9. The non-negative integer should be given in base 10. [Answer] # 202,071 bytes Obviously, [the solution](https://gist.github.com/nhahtdh/9405617#file-divisibleby9-re) is too large to be incl...
[Question] [ Your mission is to write 2 functions that accept a list of N integers (positive or negative). N can be higher than 2. The first one returns the greater common divisor of the N numbers **Example**: [10, 15, 20] -> 5 the second one returns the smallest common multiple of the N numbers **Example**: [10,...
[Question] [ **Closed.** This question is [off-topic](/help/closed-questions). It is not currently accepting answers. --- Questions without an **objective primary winning criterion** are off-topic, as they make it impossible to indisputably decide which entry should win. Closed 6 years ago. [Improve this que...
[Question] [ I am exploring a unique approach to the classic problem of [Reverse Polish Notation](https://en.wikipedia.org/wiki/Reverse_Polish_notation) on [code.golf](https://code.golf/). Unlike the conventional solutions, my focus lies on leveraging the `eval` function in GolfScript. This twist was inspired by ...
[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/238370/edit). Closed 2 years ago. [Improve this question](/posts/238370/edi...
[Question] [ **This question already has answers here**: [Is this even or odd?](/questions/113448/is-this-even-or-odd) (261 answers) Closed 4 years ago. ### Task Your task is to write as short as possible program preferably in Brainf\*\*k which determines the last digit of given number after it's conversio...
[Question] [ **This question already has answers here**: [Yo boy, must it sum](/questions/146084/yo-boy-must-it-sum) (26 answers) Closed 5 years ago. Let `n` be a positive integer then n = a + b + c for some a, b, and c that are palindrome integers. What is the largest possible integer `a` for `k` = 1 to 1...
[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. Just take an input in any way and then print it backward (trailing newlines allowed). For example: ``` Hello World -> dlroW olleH ...
[Question] [ **This question already has answers here**: [Approximation of e](/questions/82604/approximation-of-e) (55 answers) Closed 7 years ago. From Wikipedia: > > The number e is an important mathematical constant that is the base of the natural logarithm. It is approximately equal to 2.71828, and 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/79138/edit). Closed 7 years ago. [Improve this question](/posts/79138/edit)...
[Question] [ **This question already has answers here**: [Mathematical Combination](/questions/1744/mathematical-combination) (36 answers) Closed 10 years ago. The problem is to compute nCr = n!/(r!) \* (n-r)! in the fewest characters possible. The input will be in the form: 1st line will have number of te...
[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/127/edit). Closed 6 years ago. [Improve this question](/posts/127/edit) Wh...
[Question] [ You need to print A-Z like this: ``` 1. A 2. B 3. C 4. D 5. E 6. F 7. G 8. H 9. I 10. J 11. K 12. L 13. M 14. N 15. O 16. P 17. Q 18. R 19. S 20. T 21. U 22. V 23. W 24. X 25. Y 26. Z ``` But your source code cannot use `1,2,4,6`. Trailing newlines in output allowed,, but leading ones not allowed. St...
[Question] [ **This question already has answers here**: [Sing Happy Birthday to your favourite programming language](/questions/39752/sing-happy-birthday-to-your-favourite-programming-language) (207 answers) Closed 4 years ago. Your task is to write a program or function that takes a string as input, and ...
[Question] [ Print the following output of a happy coincidence addition pattern: ``` 8 8 8 88 +888 ---- 1000 ``` Rules: * No leading spaces except the ones already present * There can be a trailing newline * `+` sign needs to be displayed * Order of parcels needs to be the same No winner. It is [code-g...
[Question] [ The title is pretty self-explanatory, isn't it? Your task is to output the alphabet (the string `"abcdefghijklmnopqrstuvwxyz"`) to STDOUT, using each and every letter of the alphabet in your program once and only once. Oh, and for a bit of extra fun? The letters "g", "o", "l" and "f" must be in order...
[Question] [ Write a program to find the sum of all odd numbers between a given range [a,b]. Input consists of a single line containing two integers a and b separated by a space. 0 ≤ a,b ≤ 1,000,000,000,000. Your program should not take more than 10 secs. ``` Sample Inputs 1 5 4 8 1 8 0 5 Sample Outputs 9 12 16 9...
[Question] [ The challenge today is to write a program that outputs a known proverb, `Where there is a will, there is a way.`, that means if someone is determined to do something, he will find a way to accomplish it regardless of obstacles. ## Output It has to be exactly the same, including the space bar and punc...
[Question] [ ### Challenge You are supposed to output the series I recently designed which goes as follows which are pen stroke counts of ascending prime numbers: ``` 2, 3, 2, 4, 3, 5, 6, 5, 7, 7, 7, 10, 4, 6, 7, 4, 4, 4, 7, 6, 8... ``` ### Example This is an illustration of how this series is formed, first, it t...
[Question] [ Your challenge is to make a program(less number of bytes than what the below program takes) that should print the map of India with any special character of choice. [TIO Link](https://tio.run/##hVJhT8IwEP3Or7hBjBsTRWNMDEIydMtcFjbYEFTEbGXK4iiwdSpB/Ouz3ZQ4wNjkeu29Xu/1XVGFIJQkJR@jIB55cBGRkT89HDcKPiYwcX...
[Question] [ This challenge is to produce the shortest code for the constant \$\pi^{1/\pi}\$. Your code must output the first \$n\$ consecutive digits of \$\pi^{1/\pi}\$, where \$n\$ is given in the input. **Alternatively**, your program may accept no input, and output digits indefinitely This is code golf, so th...
[Question] [ # Challenge You must output the Chinese character for [biáng](http://en.m.wikipedia.org/wiki/Biangbiang_noodles). Your program must not access any external sources and must exactly reproduce [this SVG](http://commons.wikimedia.org/wiki/File%3ABi%C3%A1ng.svg) in every way. Note that the image below is...
[Question] [ I haven't been on PP&CG for a while, so I thought I would post something! Your task is to find how "smooth" a *natural* number is. Your method is to: 1: Convert the number to binary 2: Find the number of changes / switches 3: Find the length of the string (in binary) 4: Divide length by change...
[Question] [ # Connecting Dots ## We define a type of question on the test, connecting the dots ### Question parameters There are two parameters. Suppose they are `5` and `4`. The second one **must be less than or equal to the first one**. Thus, the question will look like this: ``` * * * * * ...
[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] [ Jack is a little businessman. He found out a way to earn money by buying electricity on days when it's cheap and selling it when it's much more expensive. He stores the electricity in a battery he made by himself. ### Challenge You are given `N` (if required), the number of days Jack knows the cost o...
[Question] [ ### Challenge: To take two points on the plane and figure out the position of the point that's a) on the line that connects them, and b) equally distant from each of the original points. ### Example: ``` (0,0), (3,3) -> (1.5,1.5) (-1,-1), (1,1) -> (0,0) (-7,3), (2,-2) -> (-2.5,0.5) (3, 1), (-5,9) -> ...
[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] [ ## Challenge Given an input `x`, create a directory (AKA folder) in the file system with the name `x`. Languages that are not able to create file system directories are excluded from this challenge. The directory may be created anywhere, as long as the location is writable to the user running the pro...
[Question] [ **This question already has answers here**: [Find the Factorial!](/questions/607/find-the-factorial) (216 answers) Closed 9 years ago. # Challenge The objective is simple, in the shortest amount of bytes, write a function or program that takes a number and prints its [double factorial](http://...
[Question] [ **This question already has answers here**: [We're no strangers to code golf, you know the rules, and so do I](/questions/6043/were-no-strangers-to-code-golf-you-know-the-rules-and-so-do-i) (73 answers) Closed 5 years ago. Write a function or program that outputs the following lines `<input>` ...
[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/201120/edit). Closed 3 years ago. [Improve this question](/posts/201120/edi...
[Question] [ *Create a program that calculates my reading speed!* # The challenge Write a program which takes some text as input and waits for a *start* signal from the user to display the input. When to user gives a second *end* signal, the program should output the *reading speed* of the user, which is defined ...
[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/31520/edit). Closed 9 years ago. [Improve this question](/posts/31520/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/175908/edit). Closed 5 years ago. [Improve this question](/posts/175908/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/52428/edit). Closed 8 years ago. [Improve this question](/posts/52428/edit)...
[Question] [ You need to find the sum of minimum values of two list (same size) of small numbers. In a C like language, that could be expressed as: `v = min(a[0],b[0]) + min(a[1],b[1])+ min(a[2],b[2]) ...` The range of values is 0..7 and the 2 list can have up to 7 values. If you like, all the values in each list...
[Question] [ **This question already has answers here**: [Converting a string to lower-case (without built-in to-lower functions!)](/questions/12760/converting-a-string-to-lower-case-without-built-in-to-lower-functions) (63 answers) Closed 6 years ago. Given a string that consists entirely of printable ASC...
[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 8 years ago. [Improve this que...
[Question] [ **This question already has answers here**: [Filter an array so that duplicate items are removed](/questions/201449/filter-an-array-so-that-duplicate-items-are-removed) (26 answers) Closed 2 years ago. ## Task: Remove all duplicates from one list of integers. A list is simply a sequence of con...
[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/247341/edit). Closed 1 year ago. [Improve this question](/posts/247341/edit...
[Question] [ Notice: This question originally had people write comments with a shorter program, rather than new answers. This has been changed so that people with shorter programs can get reputation too. Hopefully this doesn't become unmanageable... There have been a couple of [OEIS-related](https://codegolf.stac...
[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/183600/edit). Closed 4 years ago. [Improve this question](/posts/183600/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/174488/edit). Closed 5 years ago. [Improve this question](/posts/174488/edi...
[Question] [ Your challenge: Connect to the Online Encyclopedia of Integer Sequences [OEIS.org](http://oeis.org), access any random valid sequence, output it's ID, and ouput all of the members of the sequence provided by the OEIS entry. The *only* website you're allowed to connect to is OEIS.org. Hints: Sequences...
[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/17270/edit). Closed 9 years ago. [Improve this question](/posts/17270/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/15317/edit). Closed 8 years ago. [Improve this question](/posts/15317/edit)...
[Question] [ The task is simple: Create an if-statement from scratch in x86 assembly that runs in as few clock-cycles as possible. * Must be x86 assembly. * Can't use any of the *conditional* jump/branch instructions (e.g. `je`, `jne`, `jz`, `jg`, `jge`, `jl`, `jle`). * **Can** use `jmp` to jump to existing block...
[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/161669/edit). Closed 5 years ago. [Improve this question](/posts/161669/edi...
[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/69408/edit). Closed 8 years ago. [Improve this question](...
[Question] [ **This question already has answers here**: [Build a numerical library without using any primitive data type](/questions/19955/build-a-numerical-library-without-using-any-primitive-data-type) (8 answers) Closed 9 years ago. You must write functions for addition, subtraction, multiplication, an...
[Question] [ **Closed**. This question needs [details or clarity](/help/closed-questions). It is not currently accepting answers. --- **Want to improve this question?** Add details and clarify the problem by [editing this post](/posts/186018/edit). Closed 4 years ago. [Improve this question](/posts/186018/edi...
[Question] [ **This question already has answers here**: [Find the nth decimal of pi](/questions/84444/find-the-nth-decimal-of-pi) (17 answers) Closed 5 years ago. # Introduction In the not so distant future with the AI revolution, we will need a way to solve their captchas to prove we're not humans. This ...
[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/67729/edit). Closed 8 years ago. [Improve this question](...
[Question] [ **This question already has answers here**: [Code-Golf: Permutations](/questions/5056/code-golf-permutations) (30 answers) Closed 8 years ago. This is code golf. Fewest bytes wins, only standard libraries, etc. Write code, in any language, to output all possible same-length permutations of all...
[Question] [ **Introduction** Hello! This is my second post, and I decided to do one which is more language specific, since my [last](https://codegolf.stackexchange.com/questions/36621/shortest-code-to-randomly-place-points-and-connect-them/) one was very much orientated towards mathematical languages, and thus d...
[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/33245/edit). Closed 9 years ago. [Improve this question](/posts/33245/edit)...
[Question] [ **This question already has answers here**: [Write a mathematical function whose result is "hello world" [closed]](/questions/17511/write-a-mathematical-function-whose-result-is-hello-world) (16 answers) Closed 10 years ago. The challenge is to come up with a mathematical way to generate each ...
[Question] [ Write the shortest iterative function to find gcd of two numbers (assume 32 bit numbers). **Rules:** * Arithmetic, Comparison and Logical Operators are not allowed **(except equality comparison (`a==b`) operator)**. * Function should work for both positive and negative numbers * No inbuilt functions ...
[Question] [ So I got kinda bored and was wondering if it was possible to make this code shorter without modifying anything except a file named coin.py... ``` from random import*;c=['heads','tails'];print('u win'if choice(c)==input(' / '.join(c)+': ')else'u lose') ``` The program asks the user for either "heads" ...
[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/187608/edit). Closed 4 years ago. [Improve this question]...
[Question] [ # Challenge Return the full contents of your program, but inverted. How do your invert something? Well, **Letters**: Take the position of the letter in the alphabet, subtract from 26, and use the letter at that position and flip the case of the letter. E.g `A` becomes `z`, and `p` becomes `J`. **Digi...
[Question] [ **This question already has answers here**: [Build a polyglot for Hello World](/questions/10695/build-a-polyglot-for-hello-world) (9 answers) Closed 7 years ago. Often I need a simple Hello World! program to show some basic concepts of a programming language on my travels. As I usually travel ...