text
stringlengths
180
608k
[Question] [ Suppose you have existing regexes you wish to compile using one of the submissions to [Compile Regexes](https://codegolf.stackexchange.com/questions/7024/compile-regexes). In as few characters as possible, write a program that: * accepts an existing regex as input, as either (a) one line from standar...
[Question] [ The challenge is to create one program that will accept as arguments (arrays of arrays) or on standard input (line-by-line, separated by commas) a collection of families and names, like so: ``` John,Anna Mark,James Elizabeth,Daniel,Isabelle Ryan,Ruth ``` As well as two other arguments (two more array...
[Question] [ there is only one rule: get accept for this problem <http://acm.ut.ac.ir/sc/problemset/view/1032>! to submit your code, you need to create an account(if you don't want to do so, just post your code here and I'll submit it). so far shortest code is written with C and has 85 character length. winner...
[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] [ Write the shortest function you can that takes two [binary-coded decimal](http://en.wikipedia.org/wiki/Binary-coded_decimal) integers and a character indicating an arithmetic operation to perform and return the result. **Input Specification** You will be passed two 32-bit bit patterns representing ...
[Question] [ [This prompt](https://codegolf.stackexchange.com/q/11735 "Convert to and from the factorial number system") asked you to convert back and forth to factoradic, but is very limited in scope (only decimal integers from 0 to 10!-1). Your task in this challenge is to reach just a bit further and fully imp...
[Question] [ It is well-known that a [3D rotation](https://codegolf.stackexchange.com/questions/258001/3d-rotation-matrix-to-quaternion) can always be represented by a quaternion. It is less well-known that a *4D* rotation can always be represented by [*two* quaternions](https://en.wikipedia.org/wiki/Rotations_in...
[Question] [ ## Background With the success of [Simple Boolean Algebra Calculator](https://codegolf.stackexchange.com/questions/254514/simple-boolean-algebra-calculator), I present a more difficult problem. Boolean Algebra concerns representing values with letters and simplifying expressions. The following is a c...
[Question] [ ## Introduction Large meetings waste working time. Our aim is to split a large meeting into a number of smaller meetings, so the average number topics that a person discusses is minimized but every person has to be in every meeting they are interested in. ## Input Given is a function from a set of to...
[Question] [ Each March in the United States, the NCAA holds a 68-team tournament for both men's and women's college basketball. Here's what the bracket looks like: [![Bracket from 2016 - the basic format is the same each year](https://i.stack.imgur.com/lHyVA.jpg)](https://i.stack.imgur.com/lHyVA.jpg) There are f...
[Question] [ **This question already has answers here**: [Short Deadfish Numbers](/questions/40124/short-deadfish-numbers) (15 answers) Closed 7 years ago. # Goal: Given any natural number `k` such that `k<256`, produce an deadfish program that gives the smallest solution possible. # Background: Deadfish 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/103216/edit). Closed 7 years ago. [Improve this question](/posts/103216/edi...
[Question] [ > > [Jellyfish](https://github.com/iatorm/jellyfish) is a two-dimensional esoteric programming language inspired by J and written in Python 3. It was inspired by a challenge on PPCG. The name was suggested in PPCG chat as a combination of Jelly, a golfing language inspired by J, and Fish, a two-dime...
[Question] [ # King of the Torus! Your job is to conquer the torus, but wait, there are multiple other players banded together in teams facing you! You will need to use your wit's to conquer the torus. There are three teams: red, blue and green. Teams are self-assigned arbitrarily. If the teams are even you may j...
[Question] [ Taylor series are a very useful tool in calculating values of analytic functions that cannot be expressed in terms of elementary functions, using only information about that function at a single point. In this challenge, you won't be actually doing any math with them, but merely making string represe...
[Question] [ The goal of this challenge is to compute the set of equivalence classes over the transitive closure of a symmetric, reflexive relation. For those who don't know what that means, here is a brief introduction into the relevant terms: A relation ◊ is *symmetric* if *a* ◊ *b* ↔ *b* ◊ *a*. It is *reflexiv...
[Question] [ John Doe used to be one of the fastest QWERTY keyboard typists in the world, but a recent head injury caused by a stampeding herd of downgoats has critically hampered his ability to type accurately. In a desperate effort to retain his reputation as a typing prodigy, he has tasked us with the creation...
[Question] [ You have a phone plan that lets you talk 180 minutes a day. Every day that you go over your daily limit you have to pay a fine of **F = Men**, where *M* is the number of minutes you went over and *n* is the number of days you have gone over (e.g if I went 20 minutes over the daily limit and it's my 2...
[Question] [ **Input** Two dates, each comprising of a month (Dec or Jan) and a day (01-31). These will be given as 4 integers (`12 01 01 01`, for example), in any reasonable format you choose (leading zeroes, no leading zeroes, list, individual inputs, list of lists, etc.). The first date is supposed to represen...
[Question] [ Pick six cities or villages, one from each of the populated continents, Asia, Africa, North America, South America, Europe and Australia. The forecasts cover 8351174 places, more than 2 million in the US, 150000 in Pakistan, 10000 in Uganda, and [16 places](http://www.yr.no/place/Vanuatu/Shefa/) in t...
[Question] [ **Closed.** This question is [off-topic](/help/closed-questions). It is not currently accepting answers. --- This question does not appear to be about code golf or coding challenges within the scope defined in the [help center](https://codegolf.stackexchange.com/help/on-topic). Closed 9 years ag...
[Question] [ You are to make a program that given a number, such as `22009`, will go for example to [Pi Calculation Code Golf](https://codegolf.stackexchange.com/questions/22009). Then it will, for each answer, try to figure out what the code is, and count its characters. It will then output, for each answer, its...
[Question] [ Write a program that takes a sorted integer array, shuffles all the elements in such a way that for every `i` there must exist a `j` such that, one of the following is satisfied: ``` a[i] < a[j] < a[i+1] a[i] > a[j] > a[i+1] ``` `i` and `j` are within the bounds of array. If there are not many disti...
[Question] [ Based on [this](https://stackoverflow.com/questions/14720579/implement-simple-interpreter-which-tells-us-current-value-of-a-variable-using-ja/14720954#14720954) closed question on stack overflow, what is the shortest way to stimulate scope for variables in an input. For simplicity, `print` is replace...
[Question] [ Write the smallest program performs a time stretch operation on a PCM Wave (.wav) file. Rules: * Parameter input will by via whatever standard argument mechanism your language comes with, e.g. `argv` in C/C++, `$_GET` in PHP. Hard coded paths are not allowed. * First parameter will be a decimal value...
[Question] [ There's a lot of questions about *Conway's* Game of Life, but nothing about customization (Related: [2-Player Life](https://codegolf.stackexchange.com/questions/83988/its-life-jim-but-not-as-we-know-it)). Given an input, determine the result on a 100x100 grid after some iterations. The input is given...
[Question] [ [Part 1](https://codegolf.stackexchange.com/questions/246611/convert-to-shorthand-part-1) of the challenge revolved around converting the letters into specific unicode characters. ## Lore In this part we receive the output from the function made in Part 1, which now has to be arranged in an artistic ...
[Question] [ I am looking for tips to code in this golfing language [Seriously](https://github.com/Mego/Seriously), and was wondering what some of the ways for golfing this language is. "Remove comments" is not a tip. [Actually](https://github.com/Mego/Seriously/releases/tag/v2.0) is also included ]
[Question] [ Although on codingame.com, Objective C and C are two of the best golfing languages there, so I would like to know some of the best golfing methods (although I am a python person, I am currently trying to learn C++/C) I am looking for general ways/tips to golf one's code (so please don't post tips suc...
[Question] [ (Based on [this Math.SE problem](https://math.stackexchange.com/questions/472908/given-a-desired-coloring-scheme-for-a-stick-how-can-i-brush-it-with-the-fewest), which also provides some graphics) I have a stick which looks kinda like this: ![enter image description here](https://i.stack.imgur.com/Qb...
[Question] [ Given an unsorted list of unique, positive integers, output the shortest list of the longest possible ranges of sequential integers. # INPUT * An unsorted list of unique, positive integers + e.g. `9 13 3 11 8 4 10 15` * Input can be taken from any one of the following: + `stdin` + command-line arg...
[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 3 years ag...
[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/205007/edit). Closed 3 years ago. [Improve this question](/posts/205007/edi...
[Question] [ **Closed.** This question is [off-topic](/help/closed-questions). It is not currently accepting answers. --- Closed 3 years ago. * 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://s...
[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/186485/edit). Closed 4 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/171828/edit). Closed 5 years ago. [Improve this question](/posts/171828/edi...
[Question] [ # X Marks the spot Your goal is to add a cross-hair around the capital X: ## Example Input / Output Input: ``` mdhyyyyyyyhhhddmmm mdyyssoo oooosyyyhhhdmm hsso oossoooooyyhhdhhdmmm yoooooo oo ssysssyhhdyyyh...
[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/171309/edit). Closed 5 years ago. [Improve this question](/posts/171309/edi...
[Question] [ **This question already has answers here**: [Write an interactive Deadfish interpreter](/questions/16124/write-an-interactive-deadfish-interpreter) (36 answers) Closed 6 years ago. > > Please participate in the ***[meta discussion about reopening this challenge](https://codegolf.meta.stackexc...
[Question] [ This challenge is to score a Cribbage hand. If you don't play Cribbage, you've got some learning to do. We play with a standard poker deck, and a hand consists of four cards plus the "up card". There are two types of hand: normal, and a 'crib hand'. Cards come in the format `vs` where `v` is one of: ...
[Question] [ As part of its compression algorithm, the JPEG standard unrolls a matrix into a vector along antidiagonals of alternating direction: [![enter image description here](https://i.stack.imgur.com/KU5Iu.png)](https://i.stack.imgur.com/KU5Iu.png) Your task is to take the unrolled vector along with the matr...
[Question] [ # Background The nuclear industry has term, [SCRAM](https://www.nrc.gov/reading-rm/basic-ref/glossary/scram.html), used to describe a quick shutdown of the reactor. There's a fun myth that it stands for "Safety Control Rod Ax Man," the role which served to shut down the Chicago Pile if it got too hot...
[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/144533/edit). Closed 6 years ago. [Improve this question](/posts/144533/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 6 years ago. [Improve this que...
[Question] [ **Closed.** This question is [off-topic](/help/closed-questions). It is not currently accepting answers. --- This question does not appear to be about code golf or coding challenges within the scope defined in the [help center](https://codegolf.stackexchange.com/help/on-topic). Closed 6 years ag...
[Question] [ **This question already has answers here**: [Recognise Stack Exchange Sites by Their Icon](/questions/42242/recognise-stack-exchange-sites-by-their-icon) (5 answers) Closed 8 years ago. Currently, the Stack Exchange network has nearly 150 sites. These sites are as follows: ``` Computer Graphic...
[Question] [ Your challenge is simple: GIven an integer **N**, ouput every list of positive integers that sums to **N**. For example, if the input was 5, you should output ``` [1, 1, 1, 1, 1] [1, 1, 1, 2] [1, 1, 3] [1, 2, 2] [1, 4] [2, 3] [5] ``` These lists do not have to be output in any particular order, nor d...
[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/106168/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/96717/edit). Closed 7 years ago. [Improve this question](/posts/96717/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/68290/edit). Closed 8 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/66417/edit). Closed 8 years ago. [Improve this question](/posts/66417/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/55853/edit). Closed 8 years ago. [Improve this question](...
[Question] [ Enabling delayed expansion variables in Batch chews up a lot of bytes. The shortest I have managed to make it is: ``` @!! 2>nul||cmd/q/v/c%0&&exit/b ``` Saving 11 bytes over `@echo off&setLocal enableDelayedExpansion`. The method is explained here - [Tips for Golfing in Batch](https://codegolf.stacke...
[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] [ # Most Recent Leaderboard @ 2014-08-02 12:00 ``` | Pos # | Author | Name | Language | Score | Win | Draw | Loss | Avg. Dec. Time | +-------+----------------------+-------------------------+------------+-------+-------+-------+-------+----------------+ | 1st | ...
[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/45281/edit). Closed 9 years ago. [Improve this question](/posts/45281/edit)...
[Question] [ At the end of your interview, the Evil Interviewer tells you, "We make all of our applicants take a short coding test, to see if they really know what they are talking about. Don't worry; it's easy. And if you create a working program, I'll offer you the job immediately." He gestures for you to sit d...
[Question] [ ## Introduction You are the computer science teacher in a large high school and have been tasked to create a system to generate the student timetables. You must, given a JSON dictionary of student names and the subjects they are taking, you must generate a timetable for each of the students. ## Speci...
[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/32221/edit). Closed 7 years ago. [Improve this question](/posts/32221/edit)...
[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/23369/edit). Closed 9 years ago. [Improve this question](/posts/23369/edit)...
[Question] [ This is a very stripped down version of [A BlackJack KOTH contest](https://codegolf.stackexchange.com/questions/2698/a-blackjack-koth-contest)... This is the goal: Upon the execution: There are two inputs, "H" to hit (have the code deal a card), "S" to stand (Stop getting cards, and let dealer try to...
[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] [ **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/35727/edit). Closed 9 years ago. [Improve this question](/posts/35727/edit)...
[Question] [ # Write some code... Write a program that takes **no input** and outputs an integer `n` which is a multiple of `3`. So `n=3k`, where `k` is a positive integer. **Double** the **last character** of your code. Your code should then output `k`. # Examples Here is my program `hui#2(21+4)//lm`, which ...
[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/22756/edit). Closed 6 years ago. [Improve this question](/posts/22756/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/11215/edit). Closed 10 years ago. [Improve this question](/posts/11215/edit...
[Question] [ **Closed.** This question is [off-topic](/help/closed-questions). It is not currently accepting answers. --- This question does not appear to be about code golf or coding challenges within the scope defined in the [help center](https://codegolf.stackexchange.com/help/on-topic). Closed 9 years ag...
[Question] [ Consider this file path: ``` C:/Users/Martin/Desktop/BackupFiles/PC1/images/cars/new.png ``` Your goal is to write a program that will return the file path starting from the folder after the last folder that contains a number till the filename. So, for the above file path, the program should return `...
[Question] [ Your program must accept as input six numbers, which describe a triangle - for example, the inputs 80, 23, 45, 1, 76, -2 describe a triangle with vertices (80, 23), (45, 1), and (76, -2). The input must be given as six plain real numbers or as a list of six real numbers, in the order given in the exa...
[Question] [ Write a program that counts and prints the number of characters in it's own source code to standard output. The number must be generated from counting the characters. This Ruby solution would not be allowed: ``` puts 6 ``` because it is not calculated. Spaces, tabs, new lines, etc **should be counte...
[Question] [ **This question already has answers here**: [Cartesian product of a list with itself n times](/questions/165664/cartesian-product-of-a-list-with-itself-n-times) (25 answers) Closed 5 years ago. Question: Print out all the coordinates of a NxN grid. Preferably in C, however other languages also...
[Question] [ # Task Take the (integer) number of human years that the dog has lived, \$n\$, as input and return its age in dog years, \$d\$, to two decimal places. The number of human years, \$n\$, will be between \$1\$ and \$122\$ inclusive: \$n \in [1,122], n \in \Bbb{N}\$. According to [BBC's Science Focus M...
[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/6576/edit). Closed 3 years ago. [Improve this question](/posts/6576/edit) ...
[Question] [ # Through the bases In this challenge, you will be taking a number through all the bases of the rainbow Given an input, `n`, you will output `n` in every base from 9 to 2, and back up to 9. That's `9 8 7 6 5 4 3 2 3 4 5 6 7 8 9`. **Example:** ``` >>> 16 17 20 22 24 31 100 121 10000 121 100 31 24 22 2...
[Question] [ Implement an integer parser in the shortest code possible, with the following restrictions: 1. The function or program can only take one argument: a string (or equivalent). Assume it to be signed and always valid (don't worry about decimals, etc.). The input may optionally omit the sign, in which it ...
[Question] [ **Closed.** This question is [off-topic](/help/closed-questions). It is not currently accepting answers. --- Questions without an **objective primary winning criterion** are off-topic, as they make it impossible to indisputably decide which entry should win. Closed 3 years ago. [Improve this que...
[Question] [ **This question already has answers here**: [Obfuscated Hello World](/questions/307/obfuscated-hello-world) (145 answers) Closed 9 years ago. The Oscars are coming up soon and we all know who's going to win Best Actor in a Leading Role this year right? The great Leonardo DiCaprio of course! De...
[Question] [ Per the fundamental theorem of arithmetic, for a given number \$n\$, it is possible to find it's prime factors, and they are unique. Let's imagine we talk only of \$n\$ that is non-prime (composite). We can also find the factors of all the composite numbers smaller than \$n\$. For example if \$n\$ i...
[Question] [ Create a program that outputs "Hi, Hello!" in `k` bytes. By altering `n` bytes, the code should output all odd numbers in the range 5 <= x <= 25. Changing another `m` bytes should result in a code that prints the following frame in ASCII-art: ``` +-+ | | +-+ ``` Change another `o` bytes, and print `H...
[Question] [ # Aim If you are given a sequence such as `(A, G, M, _, _, C, D, _, G)` your aim is to push all non empty elements to one side to get `(A, G, M, C, D, G, _, _, _)`. You must preserve the order of the non-empty elements. # Rules 1. You are free to choose the sequence type. (strings, numbers, container...
[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 7 years ago. Your program must print out the [Gettysburg Address](https://en.wikiped...
[Question] [ To dynamically include a JavaScript file in a web page, you'd normally insert a `<script>` tag pointing to your script. For example: ``` var js_file= document.createElement("script"); js_file.src='http://example.com/js.js'; document.body.appendChild(js_file); ``` Write JavaScript code will load an ex...
[Question] [ Mary has given John two sticks of lengths `a` and `b` respectively, where `a` and `b` are positive integers. John is very curious. He would like to know how many triangles with integer perimeter can be formed, by having one additional side. Please help him find it out. (This is my first time composin...
[Question] [ In this challenge you will take a non-empty (finite) list of (possibly infinite) lists of positive integers, and your task is to output the longest one. An infinite list is longer than a finite list of any length, and any two infinite lists are equally long. You're guaranteed that there won't be any ...
[Question] [ 1. Given a word, get the indexes of each letter in the alphabet. For example: `uncopyrightable` becomes: `[21, 14, 3, 15, 16, 25, 18, 9, 7, 8, 20, 1, 2, 12, 5]` 2. Convert these indexes to the given numeral system. For example, if the radix is `36`, then the array above would become: `['l', 'e', '3...
[Question] [ Find the shortest function/algorithm to translate these numbers to the ones after the dash: ``` 0 - 0 1 - 10 2 - 20 3 - 30 4 - 40 5 - 50 6 - 60 7 - 70 8 - 80 9 - 90 10 - 100 11 - 115 12 - 130 13 - 150 14 - 175 15 - 200 16 - 230 17 - 260 18 - 300 19 - 350 20 - 400 ``` Every integer higher than 20 is c...
[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/237546/edit). Closed 2 years ago. [Improve this question](/posts/237546/edi...
[Question] [ # Introduction You started to write a "Hello, World!" program, but after you wrote the part to print the hello, you forgot what your program should actually print. So now, you somehow managed it to write a program which can check if the entered word is what you search. # The task Your task is to writ...
[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] [ During work on some project I needed to draw pixels on screen. I found some put-pixel function in JS, but code was quite big and clumsy - so I wonder, how small put-pixel function can be... # Challenge Create the smallest put-pixel function. We count size of whole program: **initialization code (if n...
[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 4 years ag...
[Question] [ In the 196-algorithm one starts from an integer and then adds its reverse to it until a palindrome is reached, like this: ``` start -> 5280 5280 + 0825 = 6105 6105 + 5016 = 11121 11121 + 12111 = 23232 -end- ``` Write a *function* that counts **how many even numbers are visited** before the algorithm ...
[Question] [ [Thunno 2](https://github.com/Thunno/Thunno2) is a stack-based golfing language with around 400 commands (achieved through overloads) created by me, The Thonnu. It seems like a good idea to share some tips for golfing in Thunno 2. Please, one tip per answer, and no tips like “remove comments and whit...
[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] [ **This question already has answers here**: [Calculate the prime factors](/questions/104590/calculate-the-prime-factors) (45 answers) Closed 6 years ago. ### Task: Given two positive integers, generate a random integer between them (inclusive) and then output all its prime factors. ### Exampl...
[Question] [ The Australian Apparent Temperature (aka, wind chill) in °C `AT` is given by this algorithm from the Australian Bureau of Meterology ([wp](https://en.wikipedia.org/wiki/Wind_chill#Australian_Apparent_Temperature), [source](http://www.bom.gov.au/info/thermal_stress/#atapproximation)): [![enter image d...
[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/21741/edit). Closed 5 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/6380/edit). Closed 5 years ago. [Improve this question](/posts/6380/edit) ...
[Question] [ Given \$a\$ and \$b\$, both odd \$n+1\$-bit integers, compute \$a/b\$ to a precision of \$n+1\$ bits in the 2-adic integers. That is, compute \$c\$ such that \$a = bc\, (\mathop{\rm mod} 2^{n+1})\$. \$n\$ should be your language's native integer size, or if native integers are bigints, take it as a p...