text
stringlengths
180
608k
[Question] [ *This challenge is related to some of the MATL language's features, as part of the [May 2018 Language of the Month](https://codegolf.meta.stackexchange.com/questions/16337/language-of-the-month-for-may-2018-matl) event.* *Associated challenge*: [Function clipboard: paste](https://codegolf.stackexchange...
[Question] [ Some of you may be familiar with the [BigNum Bakeoff](http://djm.cc/bignum-results.txt), which ended up quite interestingly. The goal can more or less be summarized as writing a C program who's output would be the largest, under some constraints and theoretical conditions e.g. a computer that could run...
[Question] [ A [graphic sequence](http://mathworld.wolfram.com/GraphicSequence.html) is a sequence of positive integers each denoting the number of edges for a node in a [simple graph](http://mathworld.wolfram.com/SimpleGraph.html). For example the sequence `2 1 1` denotes a graph with 3 nodes one with 2 edges and ...
[Question] [ In case there's any doubt: `Nan = Non-numeric datatype` for the purposes of this challenge. --- Write a program or function that takes a matrix / array as input, as well as a list of column indices. The challenge is to remove the rows where all elements in the specified columns are `Nan`. It doesn't m...
[Question] [ This time around your goal is to find the maximum of 3 integers (from -(2^31) to 2^31 - 1 in binary 2's complement) without using branching or loops. You are **only** allowed to use * Inequality/Equality (`==`, `>`, `>=`, `<`, `<=`, `!=`) These count as **2** tokens. * Arithmetic (`+`, `-`, `*`, `/`) ...
[Question] [ Given a list of lists of positive integers, output a subset of them so their union forms a continuous non-empty range with no numbers missing. For example, consider this input: ``` [ [1, 2, 3, 5], [2, 4, 6], [7, 9, 11] ] ``` The union of the first 2 forms a continuous sequence: `[1, 2, 3, 4, 5...
[Question] [ Consider an array `A` of length `n`. The array contains only positive integers. For example `A = (1,1,2,2)`. Let us define `f(A)` as the set of sums of all the non-empty contiguous subarrays of `A`. In this case `f(A) = {1,2,3,4,5,6}`. The steps to produce `f(A)` are as follows: The subarrays of `A` ar...
[Question] [ ### Description We consider an integer with at least 3 digits triple-balanced if, when split into three parts, the digits in every part sum up to the same number. We split numbers as follows: ``` abcdefghi - Standard case: the number of digits is divisable through 3: abc def ghi abcdefgh - Number % 3 =...
[Question] [ [Charcoal](https://github.com/somebody1234/Charcoal/) is a language created by ASCII-only and DLosc that specialises in ASCII art challenges. What tips do you have for golfing in Charcoal? Obviously I am looking for tips related specifically to Charcoal, not those which can be applied to most - if not ...
[Question] [ Write a function to convert CamelCased text to snake\_case: `FunctionForHTMLManipulation` becomes `function_for_html_manipulation` The input text will be a single suitable identifier in many languages. It must start with an English letter, then be followed by any number of English letters or digits. No...
[Question] [ This challenged is highly inspired by what @Mego created with his [Holy](https://codegolf.stackexchange.com/q/73426/41019) and [Holier](https://codegolf.stackexchange.com/q/74033/41019) numbers, lots of thanks to him and his puns. Holy numbers are numbers composed of only the digits with *holes*, which...
[Question] [ In the Bitcoin protocol, **2016** is a very special number. The "difficulty" of finding a hash to create a new block is adjusted every 2,016 blocks to approximate changing once every two weeks. This number was chosen is because the difficulty adjusts itself so that every block takes about 10 minutes to...
[Question] [ **This question already has answers here**: [Exploit "free whitespace"](/questions/3615/exploit-free-whitespace) (10 answers) Closed 4 years ago. ## Introduction Consider the following example: ``` CODE + GOLF —————— GREAT ``` This is an equation where each letter represents a decimal digit a...
[Question] [ ## Background The [special linear group](https://en.wikipedia.org/wiki/Special_linear_group) \$ SL\_2(\mathbb{Z}) \$ is a multiplicative group of \$ 2 \times 2 \$ matrices whose elements are integers and determinant is 1. It is known that every member of \$ SL\_2(\mathbb{Z}) \$ is a product of some seq...
[Question] [ Balanced binary search trees are essential to guarantee *O(log n)* lookups (or similar operations). In a dynamic environment where a lot of keys are randomly inserted and/or deleted, trees might degenerate to linked lists which are horrible for lookups. Thus there are various kinds of [self-balancing b...
[Question] [ # Task Given an array of non-negative integers `a`, determine the minimum number of rightward jumps required to jump "outside" the array, starting at position 0, or return zero/null if it is not possible to do so. A *jump* from index `i` is defined to be an increase in array index by at most `a[i]`. A ...
[Question] [ Craps is a fairly simple dice game often played in casinos. Even if you aren't a gambler (which I'm not), it's still a fairly interesting game. Here's the rules: At the start of a game of Craps there's what is called the *come-out* round. The player rolls two d6s (six-sided die) and the two die rolls a...
[Question] [ This is not a challenge. I'm wondering if it's at all possible to get user input into two separate variables in python (2 or 3) with less than 19 bytes. These are all the shortest I can get: ``` a,b=input(),input() a=input();b=input() (newline replaced with semicolon for readability) i=input;a,b=i(),i(...
[Question] [ The challenge is really simple: given a number, you split its digits into an array of smaller numbers such that the resulting numbers are non-decreasing. The catch is that you have to split it such that the array length is maximal. **Confused?** * You are given a positive integer via STDIN (or closest ...
[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 quest...
[Question] [ This is the reverse of [this challenge](https://codegolf.stackexchange.com/questions/246968/who-needs-8-bits-for-one-character). Given an encoded list of codepoints and the characters used to encode it, you need to decompress it to its original string. For example, given the encoded list `[170, 76, 19,...
[Question] [ Rubik's Clock is a round(ish) puzzle with two flat sides. On each side, front and back, there are 9 clock faces, arranged on a 3x3 grid. In addition, there are 4 pegs (switches) in between the clock faces, and they can be set to protrude either from the front or the back. Lastly, there are 4 dials on t...
[Question] [ This challenge will have give you a positive integer \$n\$ and ask you to output \$t(n)\$, the number of triangles (up to congruence) satisfying the three conditions: * The triangles have perimeter of 1, * the triangles have side lengths \$\displaystyle\frac{a\_1}{b\_1}, \frac{a\_2}{b\_2}\$, and \$\dis...
[Question] [ [Recamán's Sequence](http://mathworld.wolfram.com/RecamansSequence.html) is defined as follows: \$a\_n=\begin{cases}0\quad\quad\quad\quad\text{if n = 0}\\a\_{n-1}-n\quad\text{if }a\_{n-1}-n>0\text{ and is not already in the sequence,}\\a\_{n-1}+n\quad\text{otherwise}\end{cases}\$ or in pseudo-code: ```...
[Question] [ The first magic card trick I ever learned as a child was the following: * Have 1 deck of cards where the pattern on the back is not vertically symmetric. * Organize all cards to be facing one direction. * Ask an individual to, "pick a card, any card, memorize it and give it back to you". * Proceed to p...
[Question] [ **This question already has answers here**: [Generate programs that print n times their length](/questions/139995/generate-programs-that-print-n-times-their-length) (19 answers) Closed 6 years ago. On PPCG, we have had lots of challenges where the length of your output is dependent on the length...
[Question] [ **Input:** A Date (containing `dd`, `MM` and `yyyy`). A date-object, or three separate integers are also valid as input. **Output:** Each part (`dd`, `MM` and `yyyy`) individually reverted and than rounded to the nearest valid date. For example (in the format `dd-MM-yyyy`): `21-10-2016` becomes `12-0...
[Question] [ You wake up and find out that your computer has been stolen! You have a few sensors and scanners, but unfortunately, the footage is incomplete, so you want to find and rank your suspects for further investigation. Your computer is a rectangle, and your camera caught a bunch of people walking around wit...
[Question] [ Given positive integers \$w\$ and \$h\$ output \$w\$ columns and \$h\$ rows of text as described below. The first row begins with 11 `0`s, the second row with 10 `1`s, third with nine `2`s and so on down the the tenth row with two `9`s. On each of these first ten rows, following the initial run of cons...
[Question] [ Let's define a sequence of integer square roots. First, a(1) = 1. Then, a(n) is the smallest positive integer **not seen before** such that ``` sqrt(a(n) + sqrt(a(n-1) + sqrt(... + sqrt(a(1))))) ``` is an integer. Some examples: a(2) is 3 because it's the smallest integer such that `sqrt(a(2) + sqrt(a(...
[Question] [ OEIS [A000009](https://oeis.org/A000009) counts the number of *strict partitions* of the integers. A *strict partition* of a nonnegative integer `n` is a set of positive integers (so no repetition is allowed, and order does not matter) that sum to `n`. For example, 5 has three strict partitions: `5`, `...
[Question] [ ## Story, *or why we are doing this.* None. This exercise is completely pointless ... unless you are [Stephen Hawking](http://www.hawking.org.uk/about-stephen.html). # The Challenge Given a list of angles, find the average of those angles. For example the average of 91 degrees and -91 degrees is 180 de...
[Question] [ The picture below shows a RLC circuit. A RLC circuit is an electrical circuit consisting of a resistor (R), an inductor (L), and a capacitor (C), connected in series or in parallel. [(1)](https://en.wikipedia.org/wiki/RLC_circuit) [![enter image description here](https://i.stack.imgur.com/4NLYs.gif)](h...
[Question] [ Your task is to make a program that decides if a real number between 0 and 1 is irrational or not. As stated, this is obviously impossible, so instead we will use the following definition: `p` is your program, which takes in a decimal expansion of a number (list of integers), and returns 0 (≈Rational...
[Question] [ Part of [**Advent of Code Golf 2021**](https://codegolf.meta.stackexchange.com/q/24068/78410) event. See the linked meta post for details. The story continues from [AoC2015 Day 3](https://adventofcode.com/2015/day/3), Part 2. This challenge was kindly contributed by Wheat Wizard (Grain Ghost). --- Sant...
[Question] [ # Task Given a input string `s` which contains only printable ascii characters output all strings which contain only printable ascii characters and are strictly smaller than `s` in any order String `a` is strictly smaller than a string `b` if either of the following is true: * `len(a) < len(b)` * `len(...
[Question] [ The newest ["nice"](https://oeis.org/wiki/Clear-cut_examples_of_keywords#nice) OEIS sequence, [A328020](https://oeis.org/A328020), was just published a few minutes ago. > > Number of distinct tilings of an n X n square with free n-polyominoes. > > > This sequence counts tilings up to symmetries of ...
[Question] [ For each node in a balanced binary tree, the maximum difference in the heights of the left child subtree and the right child subtree are at most 1. The height of a binary tree is the distance from the root node to the node child that is farthest from the root. Below is an example: ``` 2 <-- ...
[Question] [ Adapted from [this FiveThirtyEight riddle](https://fivethirtyeight.com/features/can-you-unravel-these-number-strings/). ## Background Examine the following infinite sequence: ``` 3 3 3 2 3 3 3 2 3 3 3 2 3 3 2 3 3 3 2 ... ``` Let's say the sequence is 1-indexed. The `i`th number in the sequence determin...
[Question] [ Your challenge is to create a regex that matches every string permutation of itself, and nothing else. The match must also be case-sensitive. So, for example, if your regex is: ``` ABC ``` It should match (and only match) these strings: ``` ABC ACB BAC BCA CAB CBA ``` It shouldn't match things like: ``...
[Question] [ *This is inspired by one of Downgoat's questions in Sandbox, where I suggested that he include April 31 as Pi day for people who use day/month format, only for him to inform me that there is no April 31!* Given a date string in *month/day* format that might be invalid, output the correct date using rol...
[Question] [ Given a positive integer N, determine the starting pattern on a N x N-grid that yield the longest non-repeating sequence under Game of Life-rules, and ends with a fixed pattern (cycle of length 1), played on a torus. The goal is not the shortest program, but the quickest. Since the world is finite, yo...
[Question] [ Given a binary integer inclusively between `0` and `1111111111111111` (i.e. a 16-bit unsigned integer) as input, output the same integer in [negabinary](https://mathworld.wolfram.com/Negabinary.html). The input can be in whatever format is most convenient for your language; for example, if it is easier...
[Question] [ Thanks to @ComradeSparklePony for the title. This challenge should be very simple. You are given three lists. The first is a list of first names, in title case. The second is a list of adjectives, in lower case. The third is a list of nouns, in lower case. Please randomly select a name, optional adject...
[Question] [ Given two different positions on a chess board and the type of piece, output the minimum number of moves it will take for that piece to go from one position to another. ### Rules The given piece can be King,Queen,Rook,Knight and Bishop. (This input can be taken as any 5 unique characters) The 2 positio...
[Question] [ [Hexagonal chess](https://en.wikipedia.org/wiki/Hexagonal_chess) describes a family of chess variants played on a board where the cells are hexagons instead of the traditional squares. There are many such variants; in this challenge we'll be focusing on Gliński's variant, which is the most common. The ...
[Question] [ # Background The [Random Domino Automaton](http://arxiv.org/abs/1009.4609) is a toy model for earthquakes, inspired by cellular automata. In this challenge, your task is to simulate a simplified version of this model, and collect data out of it. The automaton is defined on an array `A` of `k` bits, rep...
[Question] [ [Someone built a really fancy clock](http://basbrun.com/2015/05/04/fibonacci-clock/) using Fibonacci numbers, which looks really nice but is fairly unusable. Just the way we like it! Let's recreate this. The clock is made up of 5 sections corresponding to the first five Fibonacci numbers, starting from...
[Question] [ In this pixelated font of uppercase letters of the alphabet, all the characters are 5 units wide and 5 tall. ``` ███ ████ ███ ████ █████ █████ ████ █ █ █████ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ ██ ██ █████ ████ █ █ █ ████ ████...
[Question] [ The challenge is to write a solver for the classic pencil and paper game [Dots and Boxes](http://en.wikipedia.org/wiki/Dots_and_Boxes) . Your code should take two integers `m` and `n` as input which specifies the size of the board. > > Starting with an empty grid of dots, players take turns, adding a...
[Question] [ I tested the waters on this sort of question with [python](https://codegolf.stackexchange.com/questions/209734/), but now I get to the real question I want to ask. [restricted-source](/questions/tagged/restricted-source "show questions tagged 'restricted-source'") challenges are uniquely rewarding in H...
[Question] [ This is essentially the inverse of [Generate a US License Plate](https://codegolf.stackexchange.com/questions/128705/generate-a-us-license-plate) **Challenge:** Given a string that matches one of the below license plate formats, output all possible states that match that formatting. In the below table ...
[Question] [ We can represent a [Rubik's Cube](https://en.wikipedia.org/wiki/Rubik%27s_Cube) as a net as follows (when solved): ``` WWW WWW WWW GGGRRRBBBOOO GGGRRRBBBOOO GGGRRRBBBOOO YYY YYY YYY ``` Each letter represents the corresponding colour (`W` is white, `G` green etc.) It [has been shown](...
[Question] [ Consider the infinite matrix: ``` 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 2 3 0 0 2 3 0 0 2 3 0 0 2 3 0 0 0 4 5 6 0 0 0 4 5 6 0 0 0 4 ... 0 0 0 0 7 8 9 10 0 0 0 0 7 8 9 10 0 0 0 0 0 11 12 13 14 15 0 0 0 0 0 11 ... ``` Each new...
[Question] [ # Problem Given an input `a` where a is a truthy/falsy value output the exact impossible cube below if truthy and the exact normal cube below if falsey. Input `truthy`: ``` ___________________________________ / _______________________________ /| / / ____________________________...
[Question] [ Given a dictionary of 4-letter words that have no repeated characters ([***from this list of words***](https://pastebin.com/M9ZChdP8)), you must choose ONE of those words, and output that specific word using the following dictionary of block letters: ``` .----------------. .----------------. .------...
[Question] [ # The Challenge Given a CSV input, output a proper unicode table using box characters. # Formatting The table will be formatted using the following rules: * Column width will be equal to the longest value of that column * All table data will be left justified * Each table will assume the first csv row ...
[Question] [ # Introduction Most code-golfers here add explanations to their submissions, so it's easier to understand what's going on. Usually the codelines go on the left and the corresponding explanation to the right with some kind of separator. To make it look pretty, the separators are all on the same column. ...
[Question] [ Australians love public holidays, and drinking. Yesterday, the 26th January, was Australia day, which is a public holiday. I was glad to not be at work yesterday, and eager to know the next time I get a public holiday! Unfortunately, I had a bit too much to drink, and I'm not able to work it out for my...
[Question] [ The "ascending matrix" is an infinite matrix of whole numbers (0 included) in which any element is the smallest available element which has not been previously used on the respective row and column: ``` | 1 2 3 4 5 6 ... --+---------------- 1 | 0 1 2 3 4 5 ... 2 | 1 0 3 2 5 4 ... 3 | 2 3 0 1 6 7 ... ...
[Question] [ The square number digit density (SNDD) of a number - invented by myself - is the ratio of the count of square numbers found in consecutive digits to the length of the number. For instance, 169 is a 3-digit number containing 4 square numbers - 1, 9, 16, 169 - and thus has a square number digit density o...
[Question] [ Given a list of intervals, perform the union of them, and reduce overlaps. That means, overlapping parts are reduced. (`[a, b] U [c, d] = [a, d]` if `b > c`) Assuming all a < b in all intervals `[a, b]`. Implement as a function of a list of input intervals -> list of output intervals. Shortest code win...
[Question] [ [Hermite polynomials](https://en.wikipedia.org/wiki/Hermite_polynomials) refer to two sequences of polynomials: * The **"probabilist's Hermite polynomials"**, given by $${He}\_n(x) = (-1)^n e ^ \frac {x^2} 2 \frac {d^n} {dx^n} e ^ {-\frac {x^2} 2}$$ where \$\frac {d^n} {dx^n} f(x)\$ refers to the \$n\$...
[Question] [ An **[unrooted binary tree](https://en.wikipedia.org/wiki/Unrooted_binary_tree)** is an unrooted tree (a graph that has single connected component and contains no cycles) where each vertex has exactly one or three neighbors. It is used in bioinformatics to show evolutionary relationships between specie...
[Question] [ # Leaderboard ``` 154 Calculator 144 Taxman 138 Statistician 137 Solver 137 RandoAggroLawyer 136 Gambler 134 Turncoat 119 Lawyer 119 BloodyMurder 113 Bandit 79 Challenger 74 Mask 64 Random ``` [An archive of the latest match, including the log and all output files, is avail...
[Question] [ Given a black and white image with a white background and a set of black dots, paint a set of white pixels red, such that there is a path between each pair of black pixels. ### Details * A path is a set of connected pixels (8-neighbourhood connectivity). Black pixels can be used as part of the paths. ...
[Question] [ ## Input: * An integer `n` in the range `2 <= n <= 10` * A list of positive integers ## Output: Convert the integers to their binary representation (without any leading zeroes), and join them all together. Then determine all binary substrings that form a 'binary fence' using `n` amount of fence posts...
[Question] [ ## Introduction This is a follow-up of [this challenge](https://codegolf.stackexchange.com/questions/150954/be-as-fair-as-possible) where you're taking the role of that person's evil twin. Being evil you don't want to maximize your share, but rather be as unfair as possible and you're not going to make...
[Question] [ Given an email address, the result of a transformation applied to that email address, and a second email address, return the output of the same transformation applied to the second email address. The email addresses will all have the following structure: A string of positive length containing alphanume...
[Question] [ What general tips do you have for golfing in LOLCODE? I'm looking for ideas that can be applied to code golf problems in general that are at least somewhat specific to LOLCODE. (e.g. "remove comments" is not an answer). Please post one tip per answer. [Answer] Define variables using the syntax `va...
[Question] [ **Closed**. This question is [opinion-based](/help/closed-questions). It is not currently accepting answers. --- **Want to improve this question?** Update the question so it can be answered with facts and citations by [editing this post](/posts/8562/edit). Closed last year. [Improve this question](...
[Question] [ ## Background A **fractal sequence** ([Wikipedia](https://en.wikipedia.org/wiki/Fractal_sequence); [MathWorld](https://mathworld.wolfram.com/FractalSequence.html)) is an infinite sequence of positive integers meeting the following conditions: 1. Each positive integer appears infinitely many times in th...
[Question] [ Your task is when given a chemical formula as input, output the total number of atoms in the formula. ### Input A chemical formula in any reasonable format. Each chemical formula has the following: * A leading coefficient, which is a number \$N > 1\$. * At least 0 groupings of elements surrounded by pa...
[Question] [ ## Background **[Shakashaka](https://en.wikipedia.org/wiki/Shakashaka)** is a puzzle on a grid, whose objective is to place some *half-squares* (right triangles) on the empty cells so that all the remaining contiguous regions form rectangles, either upright or 45 degrees rotated. Here is an example puz...
[Question] [ Write a function or program that encodes a string into a [Code 39](https://en.wikipedia.org/wiki/Code_39) format barcode, where each character is encoded as five bars separated by four gaps. Either two of the bars and one of the gaps are wide and others are narrow (10\*4 codes), or three of the gaps ar...
[Question] [ Given a nonnegative integer `n`, your solution must output a program in your chosen language whose output has `n` times as many bytes as the outputted program. ## Rules * You must specify the language and encoding of the programs your solution outputs, and you may not choose different languages or enco...
[Question] [ I am writing a golfing language. Do you suggest variables, stack(s), tapes, registers, etc for storage in a code-golf language? What about implicit input? Rough definitions: * A **variable** is simply a name (usually one character long in golfing languages) that a value can be assigned to, and later r...
[Question] [ First question here, don't yell at me if this is a duplicate or a bad challenge. # Introduction I thought of this challenge myself, and it seems to be a good basic puzzle for beginner code-golfers. It also might help me decide which code-golfing language to learn. # Challenge Given an array of integers...
[Question] [ When is it beneficial to use inline, single use importing in Python? For example: ``` __import__("x").doSomething() ``` Is the above ever shorter than the below? ``` import x x.doSomething() ``` Or ``` from x import* doSomething() ``` [Answer] This can be useful if you want to use a module just on...
[Question] [ ## Semiperfect numbers A semiperfect/pseudoperfect number is an integer equal to the sum of a part of or all of its divisors (excluding itself). Numbers which are equal to the sum of all of their divisors are perfect. ``` Divisors of 6 : 1,2,3 6 = 1+2+3 -> semiperfect (perfect) Divisors of 28 : 1...
[Question] [ # Introduction In this challenge, you are given a directed graph with self-loops, and your task is to convert it to an undirected graph without self-loops. # Input Your input is a directed graph with vertex set `{0, 1, ..., n-1}` for some natural number `n ≥ 0` (or `{1, 2, ..., n}` if you use 1-based i...
[Question] [ A string `x` *generates* a string `y` if `y` is a substring of an infinite repeat of `x`. For example `abc` generates `bcabcab`. Write a program to find the shortest, lexicographically smallest string that will generate the input. You are given on standard input a single line of text. You should print ...
[Question] [ ## Background In Minesweeper, you will often encounter a horizontal or vertical wall of one's and two's (not yet revealed cells are marked as `?`): ``` ... 1 1 1 1 2 2 2 1 2 1 1 ... ... ? ? ? ? ? ? ? ? ? ? ? ... ... A B C D E F G H ... ``` It is equivalent to a problem of recovering zeros and ones in a...
[Question] [ ...or is there? Your challenge is to parse my lunch bill, which contains the base price, tips, discounts, coupons, and extras and **find out if my lunch was $0 or less**. If this is the input: ``` 12.34 15 tip 25 discount 1.5 extra 2 coupon ``` Then the output might be `false`. Here's how it works: `12...
[Question] [ The Euclidean algorithm is a widely known algorithm for calculating the greatest common divisor (GCD) of two positive integers. # The algorithm For the purpose of this challenge, the algorithm is described as below: 1. Display the two input as adjacent lines of a certain character e.g. an input of `3...
[Question] [ Two distinct vertices in a [directed graph](https://en.wikipedia.org/wiki/Directed_graph) are strongly connected if there is [path](https://en.wikipedia.org/wiki/Path_(graph_theory)) in the graph from each to the other. A [strongly connected component](https://en.wikipedia.org/wiki/Strongly_connected_c...
[Question] [ The American football championship, [Super Bowl 50](https://en.wikipedia.org/wiki/Super_Bowl_50), is happening today at 11:30pm [UTC](http://www.worldtimeserver.com/current_time_in_UTC.aspx) (and you can [watch it live online](http://www.cbssports.com/nfl/superbowl/live/player?ttag=SB16_os_lk_nstar_wat...
[Question] [ ## The Challenge I present to you another spy vs. spy challenge pitting obfuscators versus crackers. In this case, however, the datum to be protected is not an input but an *output*. The rules of the challenge are simple. Write a routine with the following specifications: 1. The routine may be written ...
[Question] [ Your task is to write a file which contains a line with many [pep8 violations](http://pep8.readthedocs.org/en/latest/intro.html#error-codes). **The rules:** * We use pep8 version 1.5.7 and the default settings. * Calling pep8 with other command line options or using a custom rc file is not allowed. * ...
[Question] [ *This challenge was originally [posted on codidact](https://codegolf.codidact.com/posts/288535).* --- You are a low-level censor working for the *Ministry of Media Accuracy*. Part of your job is to make sure that certain words don't appear in publications. Every morning you get a fresh stack of next we...
[Question] [ Traditionally presents are kept secret in boxes wrapped in paper. Since the ice caps are melting Santa Claus has begun to investigate some ways they might make the whole gift wrapping operation a little more eco-friendly. The first thing they've decided to do is to put all presents in perfectly cubic b...
[Question] [ The purpose of this challenge is to figure out whether all the dominoes will fall, given an input string representing a top view of the table. ## Input format The program can take the input as a single string with newlines or a list of strings. Spaces denote, well, empty spaces, and the rest represent ...
[Question] [ ## Background I feel that for a site named code-golf we have a shockingly little amount of golf being played. Let's fix that. ## Challenge Determine whether the hole of a minigolf course can be reached after exactly a certain number of movements and whether it can be reached at all. ## How to play Inpu...
[Question] [ This is [the exact same question I asked earlier](https://codegolf.stackexchange.com/questions/195931/can-this-village-have-a-wedding), but without the annoying Cyrillic factor which many found superfluous. I hope this is a better puzzle! --- The quaint hamlet of North Codetown in the Scottish far nort...
[Question] [ [Quylthulg](https://github.com/catseye/Quylthulg) is a language by Chris Pressey that attempts to solve the problem of infix notation using what it calls *panfix*: > > like postfix, panfix does not require the deployment of arcane contrivances such as parentheses to override a default operator precede...
[Question] [ This challenge is based off of [Helka Homba](https://codegolf.stackexchange.com/users/26997/helka-homba)'s question [Programming a Pristine World](https://codegolf.stackexchange.com/questions/63433/programming-a-pristine-world). From that question, the definition of a pristine program is: > > Let's de...
[Question] [ Here is the 3rd ABACABA city: ``` _ A|_| B|__| A|_|_ C|___| A|_| B|__| A|_| ``` It is made out of the [ABACABA](https://codegolf.stackexchange.com/questions/68978/generate-the-abacaba-sequence) sequence, which is basically: * A (1st iteration) * place B - AB * repeat A - ABA (2nd iteration) * Place C...
[Question] [ The [winding number](https://en.wikipedia.org/wiki/Winding_number) is the integer number of net counterclockwise revolutions an observer must have made to follow a given closed path. Note that any clockwise revolutions count negative towards the winding number. The path is allowed to self intersect. So...
[Question] [ ![](https://i.stack.imgur.com/7vszH.png "What's the complexity class of the best linear programming cutting-plane techniques? I couldn't find it anywhere. Man, the Garfield guy doesn't have these problems ...") You are given, as a list or vector or whatever, a bunch of 3-tuples or whatever, where the...
[Question] [ This is [a challenge on the internet asked by Palantir Technologies in their interviews](http://www.careercup.com/page?pid=palantir-technology-interview-questions). > > A group of farmers has some elevation data, and we’re going to help > them understand how rainfall flows over their farmland. We’ll ...