text
stringlengths
180
608k
[Question] [ Make a code that gets list of [badges](https://codegolf.stackexchange.com/help/badges) that nobody received yet (for example, by using this [website API for badges](https://api.stackexchange.com/docs/badges)), and output the sorted list of such badges, with new line after each. Example output (may be...
[Question] [ I'm a young wizard, and I try very hard to not waste mana during my magical encounters. I have X spells available at any given time and each one of them have its own mana cost Y. *X,Y being positive integers strictly lower than 11.* As a beginner, my mana pool fluctuates a lot (it is always low...
[Question] [ The look and say sequence is an example of a run length encoding sequence. To get the next term of the sequence one groups the sequence into runs of the same number, each group in the next term then becomes two digits, first the number of terms in the group, followed by the value in the group. The fi...
[Question] [ For those who are not familiarized with the [Pea Pattern](http://en.wikipedia.org/wiki/Pea_pattern), it is a simple mathematical pattern. **There are multiple variations of this pattern, but we will focus in one:** > > Ascending Pea Pattern > > > It looks like this: ``` 1 11 21 1112 3112 211213 ....
[Question] [ What is the shortest regular expression equivilant to the following? ``` ENERO|GENER|GENNAIO|IANUARI|IANUARII|IONAWR|JAANUARIL|JANAIRU|JANAR|JANNEWARIS|JANUAR|JANUARI|JANUARIE|JANUARO|JANUARY|JANUWALE|JANVIER|JANVYE|JENUWARI ``` The shortest regex, in bytes, wins. If you are worried about what flavor...
[Question] [ An intriguing [MathsSE question](https://math.stackexchange.com/q/4642059/357390) asked if there were large [N-queens](https://codegolf.stackexchange.com/q/133736/110698) solutions where [no three queens lie on a line](https://codegolf.stackexchange.com/q/203607/110698). That question's body included...
[Question] [ This challenge is one of the two challenges which were planned for [Advent of Code Golf 2021](https://codegolf.meta.stackexchange.com/q/24068/78410), but didn't fit into the 25-day schedule. Related to [AoC2020 Day 24](https://adventofcode.com/2020/day/24), Part 2. --- Given a binary configuration on...
[Question] [ ## Backstory I was fiddling around with the [Evolution of Trust](https://ncase.me/trust "*trust* me, this is a tooltip (pun intended)") and thought of this. **Warning**: I recommend you go [check it out first](https://ncase.me/trust "*trust* me, this is a tooltip (pun intended)") before attempting ...
[Question] [ This challenge is a relatively simple concept that I'm surprised has not been done yet. You will be given only an integer as an input. Your task is to find the date that is this number of days from January 1st, 1984. This challenge is uniquely for the Gregorian calendar (which is standard almost ever...
[Question] [ This is a Cops and Robbers challenge. For the Cops' thread, go [here](https://codegolf.stackexchange.com/q/166338/42963). The Cops have three tasks. 1) Pick a sequence from the [OEIS](https://oeis.org). 2) Pick a language (this is suggested to be a golflang, but doesn't have to be) that, when give...
[Question] [ **This question already has answers here**: [All your base palindromic belong to us](/questions/69707/all-your-base-palindromic-belong-to-us) (17 answers) Closed 6 years ago. Given a number `n`, calculate the amount of bases in the range of `[2, n)` in which `b(n)` is a Palindrome. ## Example ...
[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/109085/edit). Closed 7 years ago. [Improve this question](/posts/109085/edi...
[Question] [ related and inspired by -- [Finding sum-free partitions](https://codegolf.stackexchange.com/q/63455/42963) A set `A` is defined here as being *distinctly [sum-free](https://en.wikipedia.org/wiki/Sum-free_set)* if * 1) it consists of at least three elements, `|A| ≥ 3`, and * 2) its distinct self-sum `...
[Question] [ It is well-known that there are one-to-one correspondences between pairs of integers and the positive integers. Your task is to write code defining such a correspondence (by defining a pair of functions/programs that are inverses of each other) in your programming language of choice, plus a correctne...
[Question] [ # Your challenge: You are on the 0th floor of a infinitely tall building. At any floor, you can walk to the window and drop an egg. Your goal is to figure out the highest floor that the egg can withstand without breaking. However, you have a maximum of 3 eggs to use to figure this out, but you need t...
[Question] [ Inspired by <http://xkcd.com/1331/> In this xkcd comic, there are several gifs that all blink with different frequency. I want to know what the period would be if was all a single GIF. Given a list of numbers representing the individual frequencies, output the period of the overall GIF. **Formal Defi...
[Question] [ Write an expression evaluator for boolean expressions encoded as JSON. Read on for explanation and rules. **Motivation:** Consider a scenario where two agents ([Alice and Bob](http://imgs.xkcd.com/comics/protocol.png)) are communicating with each other under the following constraints: * All communica...
[Question] [ For reference to the game of Mastermind: [Solving Mastermind in 6 or less moves](https://codegolf.stackexchange.com/questions/5226/solving-mastermind-in-6-or-less-moves) In the version of Mastermind used in this problem, the operating string is a 4-digit number, from 0000 to 9999, represented as eith...
[Question] [ The type of regular expression is PCRE. Write a program that output a valid PCRE such that it matches all natural numbers between `m` and `n` and does not match anything else. No leading zeros are allowed. For example, let `m` and `n` be `123` and `4321`, then the program might output `1(2[3-9]|[3-9...
[Question] [ This challenge is based on one proposed on the usenet group **rec.games.roguelike.development** a few years ago. I can't find the original newsgroup post, but you can have a look a the [Github repo of solutions](https://github.com/nrkn/SimpleRLGolf). It was only golfed in a couple of languages and I'...
[Question] [ ## Introduction A common puzzle involves a triangular board with 15 holes for tees/pegs as shown in the image below: ![Sample peg board image](https://i.stack.imgur.com/xiTFW.jpg) Starting with all the pegs in the board except for a hole at the top, the point of the puzzle is to jump pegs over one an...
[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] [ Let's continue the [fibonacci](/questions/tagged/fibonacci "show questions tagged 'fibonacci'") based challenges stream, here's the next one: ## Task Draw a Fibonacci spiral [ascii-art](/questions/tagged/ascii-art "show questions tagged 'ascii-art'") of n segments where starting from the first term: ...
[Question] [ Summer Klerance, a senior in college, is what her teachers refer to as GBL\*. Students in her probability class have been assigned individual problems to work on and turn in as part of their final grade. Summer, as usual, procrastinated much too long, and, having finally looked at her problem, realiz...
[Question] [ A screen consisted of some LED segments like such: ``` _ _ _ _ _ |_|_|..._|_|_| |_|_| _|_|_| ``` However, some of the LEDs are broken, and it's possible that only these are left: ``` _ _ _|_| |_|_| ``` Now, you're required to output all integers possibly expressed on this screen. An integer, ...
[Question] [ There's only one question for machine-language golfing, and it's for the ia32 and amd64 architectures. Here's one for a predecessor of them: the Zilog Z80! The ISA is available [here](http://z80-heaven.wikidot.com/opcode-reference-chart). As usual, if your tip is only applicable to a certain environm...
[Question] [ # Introduction You are listening to a car radio. You are pressing seek up/down, moving you to the next frequency some radio station broadcasts on, to avoid all this pointless music and listen to all the ads, or vice versa. If you try to go below the lowest frequency radio can handle, it jumps to the ...
[Question] [ Imagine four people stand in a line. The first looks at a thermometer, and tells the temperature to the person on their right. This continues down the line, until the last person writes the temperature on a sheet of paper. Unfortunately, due to a miscommunication, every person in the line converts th...
[Question] [ JavaScript has no direct support for keyword arguments, but it supports argument object [destructuring](https://en.wikipedia.org/wiki/Assignment_(computer_science)#Parallel_assignment). It is standard to use a destructed final argument for keyword arguments. Here is an example: ``` function f(x, { a ...
[Question] [ # Introduction So John finally has his holidays! And what better could he do than watching some movies. He indeed has a lot of movies to watch, but he is unable to decide which one to watch first. He has a list of movies, each in the format: `<Movie name> (<Year>)`. So he makes a simple set of rules ...
[Question] [ For cops' post, [Cheapo Enigma machine (Cops)](https://codegolf.stackexchange.com/questions/117318/cheapo-enigma-machine-cops) A robber's submission consists of a program/function that accepts the output of a cop's code and returns the input for all the outputs provided by that cop's code. (In other ...
[Question] [ **The Challenge** > > Given two strings containing only lowercase letters and no spaces, the result should be the shorter string, followed by an underscore, followed by the longer string with the first instance of a character removed for each character it contains that is in the shorter string. > >...
[Question] [ *Credit goes where [credit is due](http://chat.stackexchange.com/transcript/message/29818745#29818745)* --- Given two digits, x, and y, calculate the shortest number of horizontal or vertical jumps to get from x to y on a standard numpad, e.g. ``` 789 456 123 00 ``` You can safely assume that all inp...
[Question] [ What tricks do you know to make CoffeeScript code shorter? CoffeeScript is language that compiles into JavaScript ("transpiles" into ES3, to be exact). The golden rule is "It's just JavaScript", meaning there's no runtime overhead. Most of JavaScript Tips & Tricks apply as well. As a side-effect that...
[Question] [ ![enter image description here](https://i.stack.imgur.com/3CDb5.jpg) Draw a series of connected polygons like the one shown above. However, what the above picture does not show is the spiral formed by consecutive vertexes: ![enter image description here](https://i.stack.imgur.com/2ukct.gif) The limit...
[Question] [ Your task is to find the total destination of objects that are falling to a planet, you will get inputs like this: ``` 7 ...#... ....... #..O..# ....... ...#... ....... ....... ``` where O is the planet and # are the objects, note that the planet will attract objects from the for basic direc...
[Question] [ The problem is defined as follows: Create a function that takes an integer and returns a list of integers, with the following properties: * Given a positive integer input, *n*, it produces a list containing *n* **integers ≥ 1.** * Any *sublist* of the output must contain at least one unique element, ...
[Question] [ I have been participating in a number of PHP code golf challenges recently and some of the techniques that are used to read data from a file such as `fopen()` and `fread()` or `file_get_contents()` really give my code a beating on the char count. Especially the methods provided for reading in command...
[Question] [ **Closed.** This question is [off-topic](/help/closed-questions). It is not currently accepting answers. --- This question does not appear to be about code golf or coding challenges within the scope defined in the [help center](https://codegolf.stackexchange.com/help/on-topic). Closed 1 year ago...
[Question] [ Write the shortest program that will attempt to connect to open ports on a remote computer and check if they are open. (It's called a [Port Scanner](http://en.wikipedia.org/wiki/Port_scanner)) Take input from command line arguments. ``` your-port-scanner host_ip startPort endPort ``` Assume, startPor...
[Question] [ Implement the [binary search algorithm](http://en.wikipedia.org/wiki/Binary_search_algorithm) as used to identify the source code revision that breaks a computer software program. Your tool should take two arguments specifying the earliest and latest numbered revision to search (both positive integer...
[Question] [ # Introduction In the binary representation of a \$k-\$bit \$(k>1)\$ square number \$n^2, \$ not all bits can be \$1\$. The maximum number of \$1\$-bits (Hamming weight, \$B\$ for short) is given in [A357658](https://oeis.org/A357658), but only up to \$k=95\$ bits. An example of a \$99\$-bit square i...
[Question] [ You have to decompose a positive integer/fraction as a product of powers of factorials of prime numbers. For example > > `22 = (11!)^1 × (7!)^(−1) × (5!)^(−1) × (3!)^(−1) × (2!)^1` > > > > > `10/9 = (5!)^1 × (3!)^(−3) × (2!)^1` > > > Use this special notation: `prime number#power` to denote e...
[Question] [ I'm trying to plug this really old phone into my computer but the phone seems to use a very obscure plug. Luckily I have some adapters. Unfortunately, I can't figure out which of them to use to connect my phone to my computer. Can you find the smallest number of adapters that can link my phone and co...
[Question] [ ## Challenge The cops created code challenges which result in certain wildly incorrect answers despite correct math. Choose an uncracked, not safe formula from the [cop thread](https://codegolf.stackexchange.com/q/217597/45613). Your task is to find an incorrect answer and describe its underlying cau...
[Question] [ ## Background [**Conway criterion**](https://en.wikipedia.org/wiki/Conway_criterion) is a method to test if a given polygon can tile (i.e. cover without overlapping) an infinite plane. It states that a polygon can tile the plane if the following conditions are met: * The given polygon does not have a...
[Question] [ Given [this list of all the words in english](https://raw.githubusercontent.com/dwyl/english-words/master/words.txt) and a string with s\_me missi\_g lett\_\_s, find one way to fill in the letters. Do note that some words on the list contain special characters (`! & ' , - . /`) and numbers # Input: [...
[Question] [ ## – of crisis and martyrdom (that's the subtitle because subtitles are cool) In this [king-of-the-hill](/questions/tagged/king-of-the-hill "show questions tagged 'king-of-the-hill'") challenge in [python](/questions/tagged/python "show questions tagged 'python'") (yup; you need go no farther to know...
[Question] [ Here's the phonetic alphabet: ``` Alfa Bravo Charlie Delta Echo Foxtrot Golf Hotel India Juliett Kilo Lima Mike November Oscar Papa Quebec Romeo Sierra Tango Uniform Victor Whiskey X-ray Yankee Zulu ``` In the fewest bytes possible: 1. Input will be these words in a random order, with the first lette...
[Question] [ ## Introduction and Credit Imagine you're [Amazon](https://en.wikipedia.org/wiki/Amazon.com). Imagine you have a large number of products for which a lot of people have written reviews scoring 1-5 stars. Now you need to give your customers a summary for each product based on the simple product-scorin...
[Question] [ Your task is to determine the palindromic degree of a given non-empty string. To do this, loop until one of the following conditions are met: * The string is not a palindrome. * You encounter a string that has already been encountered. And do the following: * If it is a palindrome, add one to the deg...
[Question] [ # The Challenge GIFs are the most common image format for animation, and are used pretty heavily in today's social media. For the purpose of this challenge, I'm going to redefine what a GIF can be. This challenge will require you to take in a 3D array containing some sort of representation of a 2D 'i...
[Question] [ ## Introduction The International System of Units is a system of measuring all around the world, except for a few countries *including the US*. The SI system (or metric system) is based on powers of ten, listed below (note that this is an incomplete table): ``` femto(f) pico(p) nano(n) micro(μ) milli...
[Question] [ Your challenge, should you be coded to accept it, runs as follows: You may choose one of the following two challenges to implement: **Challenge #1** * Read from a file `a.txt` * Write only printable ASCII characters (values 32-126) to a file `b.txt` **Challenge #2** * With a file `a.txt`, delete all ...
[Question] [ ## Challenge Being someone who plays far too much chess in his spare time, I thought I'd set a code golf challenge inspired by the game of chess (with a software flavour), for those interested. > > The challenge is to determine the winner of a game of standard chess given a [*PGN* (Portable Game Not...
[Question] [ The GolfScript language has one serious lack, no float or fixed point handling. Remedy this by creating a function F for converting an integer number, given as a string, to a string representing 1 / 10 000 000 000 of it's value. The function must handle both positive and negative values as well as le...
[Question] [ # Input An integer n and a pair of distinct integer valued (x, y) coordinates on the boundary of the grid. The coordinates are indexed from 1. For example, n=10 and (1,2), (10, 7). The points will always be on different sides of the grid and neither of them will be \$(1, 1)\$. # Output The number of ...
[Question] [ Goal: create a self-referencing tuple satisfying `x == (x,)` in any version of Python. Standard libraries, matplotlib, numpy, pandas only. Answers meeting this extra condition are prioritised (which may be impossible): this tuple should also be insertable into a dict or set. If the extra condition is...
[Question] [ [Related](https://codegolf.stackexchange.com/questions/12919/n-doors-k-monkeys) but noticeably different You are the leader of the guard in the dungeon of an ancient castle. There are `N` doors in the dungeon and `N` guards with keys. Guard with index `i` may operates with doors that have multipl...
[Question] [ *This is an alternate version of [this](https://codegolf.stackexchange.com/questions/241117/split-along-groups) earlier challenge with a twist that adds a significant bit of difficulty.* Like last time, you are going to be given a string containing some alphabetic characters along with `[` and `]`. Y...
[Question] [ Part of [**Advent of Code Golf 2021**](https://codegolf.meta.stackexchange.com/q/24068/78410) event. See the linked meta post for details. Related to [AoC2020 Day 11](https://adventofcode.com/2020/day/11), Part 2. --- You enter the waiting area for a ferry, and you see a bunch of people sitting at a ...
[Question] [ All variables in this question are integer valued. # Input 4 integers w, x, y, z. They can be positive or negative and will be less than 1048576 in absolute value. # Output The general solution to the equation. \$ aw+bx+cy+dz = 0 \$. The variables \$a, b, c, d\$ must all be integer values. # Output f...
[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/210301/edit). Closed 3 years ago. [Improve this question](/posts/210301/edi...
[Question] [ **This question already has answers here**: [Stack Exchange Vote Counter](/questions/82609/stack-exchange-vote-counter) (15 answers) Closed 3 years ago. Inspired by [this](https://www.youtube.com/watch?v=BxV14h0kFs0) Youtube Video from Tom Scott. Write a program or function that prints the cur...
[Question] [ This challenge will give you an input of a [degree sequence](http://mathworld.wolfram.com/DegreeSequence.html) in the form of a partition of an even number. Your goal will be to write a program that will output the number of loop-free labeled multigraphs that have this degree sequence. ## Example For...
[Question] [ This challenge is based on a video in which Andrew Huang discusses unusual time signatures... <https://www.youtube.com/watch?v=JQk-1IXRfew> In it, he advises that you can understand time signatures by dividing them into 3's and 2's. So you count to a small number a few times, instead of counting to a...
[Question] [ > > This is the Cops' thread. [Robbers' thread is here](https://codegolf.stackexchange.com/q/173385/78410). > > > ## Background [Boggle](https://en.wikipedia.org/wiki/Boggle) is a board game where the players have to find English words on a 4-by-4 board of random alphabets. Words can be construct...
[Question] [ # ASCII reflections in a box You probably all know the [*Law of Reflection*](https://en.wikipedia.org/wiki/Specular_reflection), in this challenge you'll visualize the trajectory of a ball in a box. Related: [ASCII Ball in Box Animation](https://codegolf.stackexchange.com/questions/5651/ascii-ball-in...
[Question] [ ### Task Write a program or function that, given a string and a list of strings, replaces each occurrence of an element of the string list contained in the string with the next element of the string list. ### Example The string is `The cat wore a hat on my doormat so I gave it a pat` and the list is ...
[Question] [ You are to accept, on standard input, one number. You will then output the negation of that number. Your code will do nothing else. You may accept various formats if you wish (like "one" or ("uno+2.4e10i"). You may also output it how ever you wish. Note that these formats mush have existed somewhere ...
[Question] [ ## Task You must write a program or function in the language of your choice which accurately counts the number of terminal cycles of a simple directed graph. This particular kind of directed graph is represented as an array of n integers, each with an independently-chosen random value between 1 and n...
[Question] [ Write a complete program (not just a function) which using stdin takes in a string of arbitrary length (assume string-length at least one) composed only of digits 0-9 and outputs using stdout the substring which appears most often in the input string. The input string can be any length and the substr...
[Question] [ In the game 15, two players take turns selecting numbers from 1 to 9 (without choosing any number that either player has already selected). A player wins if he or she has three numbers that add up to 15. If all the numbers have been selected and no combination of either player's adds up to 15, then t...
[Question] [ ## Challenge > > In this task you would be given an integer N > (less than 10^6), output the number of terms in the [Farey > sequence](http://en.wikipedia.org/wiki/Farey_sequence) of order N. > > > The input N < 106 is given in a single line, the inputs are terminated by EOF. The challenge is t...
[Question] [ It can be easily proven using Hall's marriage theorem that given fixed \$n\$ and \$k<n/2\$, [there is an injective (one-to-one) function](https://math.stackexchange.com/questions/3562859/extending-k-element-subsets-of-an-n-element-set-to-k1-element-subsets) from all \$n\$-bit strings with \$k\$ ones ...
[Question] [ **Warning**: Wouldn't you rather answer a challenge about ponies?1 --- If you have read *The Hostile Hospital*, you would know that the Baudelaire orphans, from one of the scraps of paper recovered from the Quagmire's notebooks, they discover a name, "Ana Gram". Later on, they realize that means the ...
[Question] [ Produce [Graham's Number](https://en.wikipedia.org/wiki/Graham%27s_number) in [Magic the Gathering](https://magic.wizards.com/en) using the fewest number of cards and without using any infinite combos. **Rules:** 1. Producing Graham's number means do anything that requires Graham's number to represen...
[Question] [ [makina](https://github.com/GingerIndustries/makina) is a cell-based esolang composed of automata which move around a grid. These automata follow paths of instructions that direct their movement. Your task is to, given a makina program *using only the below instructions* (so a subset of normal makina...
[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/236971/edit). Closed 2 years ago. [Improve this question](/posts/236971/edi...
[Question] [ *Part of the [lean](/questions/tagged/lean "show questions tagged 'lean'") Language of the Month* A pong\* is a set \$P\$ with an operation \$+\$, that satisfies the following properties: \$ \forall a, b \in P : (b + b) + a = a\\ \forall a, b \in P : a + (b + b) = a\\ \forall a, b, c \in P: a + (b + ...
[Question] [ Daylight saving time (DST), is the practice of advancing clocks (typically by one hour) during warmer months so that darkness falls at a later clock time. The typical implementation of DST is to set clocks forward by one hour in the spring ("spring forward") and set clocks back by one hour in autumn ...
[Question] [ This [fastest-code](/questions/tagged/fastest-code "show questions tagged 'fastest-code'") challenge is based partly on [this MSE question](https://math.stackexchange.com/q/4069929/121988) and exists to extend some OEIS sequences, and create others. If I extend or create sequences based on this chall...
[Question] [ *This will turn into a series involving other aspects of calculus, including using the "derivative" of a string to find "stationary points" etc, as well as "integration" of sentences* ## Introduction If y'all have ever studied calculus, you'll most likely know that differentiation is limited to diffe...
[Question] [ \$T(n, k)\$ gives the number of permutations of length \$n\$ with up to \$k\$ [inversions](https://en.wikipedia.org/wiki/Inversion_(discrete_mathematics)). This values grows very quickly, for example for \$T(20, 100) = 1551417550117463564\$. The maximum number of inversions possible is \$n\frac{n-1}...
[Question] [ In the [original Shantae game](https://en.wikipedia.org/wiki/Shantae_(video_game)), there are transformation dances that you have to input in time using the D-Pad, A, and B. If you complete a predefined sequence while dancing, you will transform into the corresponding form (or teleport or heal). Your...
[Question] [ ## Background Inspired by [a now deleted question](https://codegolf.stackexchange.com/q/178464/43319) by [John Burger](https://codegolf.stackexchange.com/users/84859/john-burger) from which I quote: > > [![Good book! IF you can wait 7,143 years...](https://i.stack.imgur.com/QpCOt.png)](https://i.sta...
[Question] [ Write a function or program that accepts a date (as a string in `YYYY-MM-DD` format) as input and returns a truthy value if that date is "alphabetical," and a falsey value if it isn't. An alphabetical date is a date whose month, day and year are in alphabetical order when expressed as a string (and ...
[Question] [ Suppose you have a set of sets of integers. It's possible that some of the sets will overlap (i.e. sharing elements). You could get rid of the overlaps by deleting elements from the sets, but then some of them might end up empty; that would be a shame. Can we make all the sets disjoint without emptyi...
[Question] [ You and your friend want to send each other secret messages. However, because you are conspiracy theorists and think that the government has a quantum computer that can crack any standard encryption. Therefore, you are inventing one of your own. The first step of this is as follows: taking an input s...
[Question] [ # Before I begin, this challenge was not mine originally Credits to The University of Waterloo. This came from the Canadian Computing Competition 2016, Senior Problem 5. Here is a clickable link to the contest PDF: [`http://cemc.uwaterloo.ca/contests/computing/2016/stage%201/seniorEn.pdf`](http://cem...
[Question] [ I love `/usr/share/dict/words`; it's so handy! I use it for all my programs, whenever I can! You're going to take advantage of this ever so useful file to use, by testing a word's individuality. --- **Input** * A word; defined in this challenge as any string of characters * `/usr/share/dict/words` in...
[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/95340/edit). Closed 7 years ago. [Improve this question](/posts/95340/edit)...
[Question] [ # Introduction **Eisenstein integers** are complex numbers of the form `a+bω` Where `a,b` are integers, and `ω = e^(2πi/3)` The Eisenstein integers form a triangular lattice in the complex plane: [![Eisenstein Integers in the Complex Plane](https://i.stack.imgur.com/e6hi0.png)](https://i.stack.imgur...
[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/78690/edit). Closed 7 years ago. [Improve this question](/posts/78690/edit)...
[Question] [ You're going to replicate the 90's cup holder joke software. Here's what's it did, and you have to do: * Display the message `Do you need a cup holder?` * If the user confirms, enter an infinite loop that keeps opening the CDROM drive. * If the user doesn't confirm, silently exit. You may display the...
[Question] [ Write a program that will produce differing behaviors on as many different platforms as you can. Each differing platform awards one point (including an initial platform, meaning you can't score less than 1\*). Mechanisms intended for determining the target/executing platform (e.g. through platform co...
[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/52663/edit). Closed 8 years ago. [Improve this question](...
[Question] [ In this task, we consider arrays of positive integers such as this: ``` 3 18 321 17 4 4 51 1 293 17 ``` The input comprises a pair of such arrays both of arbitrary, possibly distinct, positive length. Determine if a total ordering ≤X ⊂ **N** × **N**, where **N** is the set of positive integers, exist...
[Question] [ A short while, ago, [@daniel\_ernston](https://twitter.com/daniel_ernston/) sent [the following challenge](https://twitter.com/daniel_ernston/status/574021732266172416) to [@StackCodeGolf](https://twitter.com/StackCodeGolf) on Twitter: > > [@StackCodeGolf](https://twitter.com/StackCodeGolf) Your tas...
[Question] [ You are given integers `N` and `M`, `1 <= N,M <= 10^6` and indexes `i` and `j`. Your job is to find the integer at position `[i][j]`. The sequence looks like this (for `N=M=5, i=1, j=3` the result is `23`): ``` 1 2 3 4 5 16 17 18 19 6 15 24 25 20 7 14 23 22 21 8 13 12 11 10 9 ``` Shortest co...