text
stringlengths
180
608k
[Question] [ **This question already has answers here**: [Josephus problem (counting out)](/questions/5891/josephus-problem-counting-out) (31 answers) Closed 9 years ago. Here's a challenge inspired by Programming Praxis: <http://programmingpraxis.com/2009/02/19/flavius-josephus/> > > Write a function jos...
[Question] [ Since I want to celebrate this definitely not nerdy event, your job is to calculate the piversary (pi-anniversary) of a given date. ### Input Your code has to have a possibilty to input a date in the format `DD/MM/YYYY`. You can expect, that the input is valid and the year is `0000<YYYY<9996`. ### Ou...
[Question] [ Write a program which takes an integer argument and outputs the number of degree n monic polynomials with coefficients that are -1,1 or 0 which have a root which is a root of unity. To make it a little cleaner, only count polynomials with leading coefficient of 1. You can use any language you like as...
[Question] [ Your job is to make a sorting algorithm. The catch, you must copy it from Stack Overflow. Your program will take an input array (or equivalency), and output a sorted permutation of the array. * Your program must consist solely of copy and pasted code blocks from Stack Overflow. * You may not take pa...
[Question] [ This is a *very* crude text encoding algorithm I came up with the other day. It won't work if the text has more than 256 different characters in it – but it does support Unicode, at least in my Python implementation. The algorithm: 1. Find all the unique characters in the text. Let's call this list, ...
[Question] [ **Challenge** Write the shortest program that implements the minimum requirements for a linked list, stack and queue. **Minimum requirements** * Functions that allow the user to add and remove elements from the linked list, stack and queue. * Any data type can be added to the linked list, stack and q...
[Question] [ What general tips do you have for golfing in VBScript? I'm looking for ideas that can be applied to code golf problems in general that are at least somewhat specific to VBScript. Please post one tip per answer. Thanks to Marcog for the original idea. :) [Answer] Use an empty variable instead o...
[Question] [ ## Overview: Using you language of choice, implement a complete "[half away from 0](http://en.wikipedia.org/wiki/Rounding#Tie-breaking)" rounding function in the shortest amount of code possible. ## Rules/Constraints: * Direct, predefined `Round`-like functions are not allowed. * `Floor`/`Ceiling`-ty...
[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/3241/edit). Closed 6 years ago. [Improve this question](/posts/3241/edit) ...
[Question] [ [Last time](https://codegolf.stackexchange.com/questions/241791/dont-output-the-file) you were required to write program that output a file, such that no byte is same as original file. The request meant to let everyone carry part of information, but it ends up that everyone carry same info to reduce ...
[Question] [ Part of [**Code Golf Advent Calendar 2022**](https://codegolf.meta.stackexchange.com/questions/25251/announcing-code-golf-advent-calendar-2022-event-challenge-sandbox) event. See the linked meta post for details. --- While [other Elves are busy carrying air blowers](https://codegolf.stackexchange.com...
[Question] [ # Background [BitCycle](https://github.com/dloscutoff/Esolangs/tree/master/BitCycle) is a two-dimensional Turing-complete programming language involves moving bits around a playfield. Because I am too lazy to write BitCycle programs myself, you will be writing a program which outputs BitCycle program...
[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/230870/edit). Closed 2 years ago. [Improve this question](/posts/230870/edi...
[Question] [ Remove every pair of newline characters, that means every two newline characters appearing together are elided, whereas unaccompanied newline characters remain present. Example: ``` echo -ne 'a\n\nb\nc\n\n\n\nd\n\n\n' | your-command ``` should output the same as ``` echo -ne 'ab\ncd\n' ``` Watch out,...
[Question] [ **This question already has answers here**: [Return each number from a group of numbers](/questions/8588/return-each-number-from-a-group-of-numbers) (21 answers) Closed 4 years ago. At work I've been acting as quality control on our public documents, to make sure that they are [WCAG 2.0](https...
[Question] [ I personally love quines, but they all seem to be so... static. So why not create a quine that can do *more*. **Challenge** The challenge here is to create a quine that without any sort of input is a normal quine. Then if it receives a different input, it outputs a *different* quine in a *different* ...
[Question] [ The premise of this is simple: [A 10% chance is pretty unlikely, but everyone knows that a one-in-a-million chance is a sure thing!](http://www.giantitp.com/comics/oots0584.html) So, write code that implements the following "dramatic" probability rules: * Take in a floating point *P* from 0 to 1 repr...
[Question] [ So, I wrote a simple Javascript game (as yet unnamed) and naturally I wanted to write an API so I could write a bot to play it for me, and naturally I wanted to let the PPCG community have a go for themselves. It's a 'snake' game with the simple goal of collecting as many blue squares as possible whi...
[Question] [ # Background I was working on a StackOverflow helper program (that sends me notifications) when I noticed something rather interesting in StackOverflow's Network tab: [![enter image description here](https://i.stack.imgur.com/cCfaH.png)](https://i.stack.imgur.com/cCfaH.png) StackOverflow uses WebSock...
[Question] [ I'm new to this code-golfing thing and I'm very interested in CJam. Is there a way to get all the current stack as an array? I think I can do it with something like `[1$ 2$...n$]` but I would have to get the stack's length and use some kind of iterator (or use a fixed length stack... useless). But is...
[Question] [ **This question already has answers here**: [What will you bring for Thanksgiving?](/questions/100470/what-will-you-bring-for-thanksgiving) (15 answers) Closed 6 years ago. Everyone loves [The Big Bang Theory](https://en.m.wikipedia.org/wiki/The_Big_Bang_Theory), right? And everyone loves [pol...
[Question] [ A number square containing the values `1`, `2`, `3`, `4` looks like this: ``` 12 34 ``` To work out what a number square is, you first make four numbers by reading across the rows and across the columns; for the example above you would get `12`, `34`, `13` and `24`, then you add them all up (`12+34+1...
[Question] [ Quinary is like binary, except that 1 is represented by the text of the program, and 0 is represented as the backwards text of the program. The Fibonacci Sequence is the well known sequence F(0) = 0, F(1) = 1, F(n) = F(n - 1) + F(n - 2) Write a program that takes some input n and outputs the nth fibo...
[Question] [ The goal of this challenge is to complete a list of consecutive nested header numbers when given a start and an end. When given `1.1.1` and `1.1.5` you should generate `1.1.1, 1.1.2, 1.1.3, 1.1.4, 1.1.5` **Specific Rules** 1. Your entry must take in a `start`, `end`, and multiple optional `range` par...
[Question] [ **Challenge** Write a program that toggles another. Your program should accept exactly two command arguments. Specifically, your two tasks are: 1. If the names of any running processes are identical to argument one, close them and exit 2. If the names of zero running processes are named identical to ...
[Question] [ Your job is to encrypt a string using a number key. Your program will receive 2 strings: one containing a sequence of characters to encrypt, and another one containing an even amount of digits (`1`-`9`, never `0`). The encrypting will work like this: 1. take the string to be encrypt and decode it to ...
[Question] [ **This question already has answers here**: [Fibonacci distribution validator](/questions/18887/fibonacci-distribution-validator) (13 answers) Closed 10 years ago. * There's a [question](https://codegolf.stackexchange.com/questions/18812/hello-world-fibonacci-distribution) with a comment with ...
[Question] [ The challenge is to write code in any open source, available on linux, language of your choice to perform modular exponentiation. The input will be two randomly chosen 2048 bit positive integers numbers x and y and a 2048 bit prime z. Here is a sample snippet of python to compare to. ``` def pow_mod(...
[Question] [ Warning: this is a complex challenge. ## Overview A lightbox, in the context of computing, is a visual effect used in image sites. A list of thumbnail images is displayed; each image can be selected and will be displayed on top of the contents of the page either at full size or to fill the screen. Th...
[Question] [ Your mission is to create a function for transposing music chords. Copied from SO with permission of the original asker, I just really wanted to see what you guys could do with this one: Since I don't expect everyone to be a musician here, I'll try to explain how it works in music theory. I hope I do...
[Question] [ Write a program (in a first language A) that interprets a "99 Bottles of Beer" program and a FizzBuzz program (both in a second language B) on its standard input. The output should go to standard output; you may implement the interpreter as a function in languages lacking standardized I/O interfaces....
[Question] [ Given is a grid polygon by the list of its integer vertex coordinates arranged along the perimeter, in the form \$(x\_1,y\_1), (x\_2,y\_2), \cdots , (x\_n,y\_n)\$ with \$n \ge 3\$. The polygon is completed by connecting point \$n\$ to point \$1\$. For simplicity, it may be assumed that the polygon is...
[Question] [ **This question already has answers here**: [Fold a List in Half](/questions/136887/fold-a-list-in-half) (58 answers) Closed 2 years ago. An example will easily explain this to you. Suppose an array `[1,2,3,4,5]` **Step 1** ``` 1 2 3 4 5 ----+---- ``` **Step 2** ``` 5/ 4/ 1 2 3 / ...
[Question] [ Your task is to create either a console "app" or a function which allows the user to bet on certain numbers or retire / claim rounds. --- ## Bets Your program or function will prompt for a command after an action, and the bet is the most important, crucial to the operation of the app. A bet looks som...
[Question] [ You are piloting a spaceship, outfitted with an engine that can accelerate you at 1km/s^2 in the direction the ship is facing (you have very good inertial dampers). You also have thrusters which can rotate you 180 degrees in 1s (rotating 45 degrees takes 0.25s, etc.). You see on your scanner another ...
[Question] [ Consider an array `A` of length `n`. The array contains only integers in the range `1` to `s`. For example take `s = 6`, `n = 5` and `A = (2, 5, 6, 3, 1)`. Let us define `g(A)` as the collection of sums of all the non-empty contiguous subarrays of A. In this case `g(A) = [2,5,6,3,1,7,11,9,4,13,14,10,...
[Question] [ Recursively define a "valid arithmetic expression": 1. Any natural number is a valid arithmetic expression. 2. If `s` is a valid arithmetic expression, then so is `(-s)`. 3. If `p` and `q` are valid arithmetic expressions, then so is `(p+q)`. In the above, a "natural number" is recursively defined as...
[Question] [ **This question already has answers here**: [List all multiplicative partitions of n](/questions/104707/list-all-multiplicative-partitions-of-n) (15 answers) Closed 6 years ago. # The challenge Given positive integer input `n` (`n>1`), calculate the array of unique factorizations of `n`, not i...
[Question] [ I have an expression that could be expressed as either of : ``` a += (A ? B ? x : C ? y : D : D); a += (A && B ? x : A && C ? y : D); ``` where A,B,C are expressions of 5-10 bytes each, and x and y are single character literals (3-4 bytes). D is another chain of ternaries (without the branching probl...
[Question] [ # Introduction You have to simulate playing golf over an input string that represents the green. The 2-character substring `()` represents the hole, and is guaranteed to appear only once in the string. This is a sample green: ``` ABCDEFGHIJKLM()NOPQRSTUVWXYZ ``` The simulation consists of outputting ...
[Question] [ The lambda calculus is a system of functional programming. Lambda calculus consists of variables, abstractions, and applications. A variable is simply a name denoting a function parameter. It is a single letter. An abstraction is a "function literal" of sorts, it consists of a backslash `\` followed ...
[Question] [ Assume you're writing in one method, (or whatever you call them) with 3 inputs: the first string, a character that contains a `+`, `-` or `*` symbol, and the second string. Example in Java: ``` public String strCalc(String str1, char sym, String str2) { //code... } ``` What it should return: ``` ...
[Question] [ **This question already has answers here**: [Tips for golfing in Lisp](/questions/79719/tips-for-golfing-in-lisp) (5 answers) Closed 5 years ago. What general tips do you have for golfing in Common Lisp? I'm looking for ideas which can be applied to code-golf problems and which are also at lea...
[Question] [ **EDIT:** The incorrect A rhomb substitution has been fixed. Apologies to anoyone who had started working on a solution. Consider the following substitutions, where the substituted rhomb(us) is scaled up and shown in red: **EDIT:** Note the anchor points (circle) created where a corner of each new rh...
[Question] [ **This question already has answers here**: [Calculate the nth term of Golomb's self-describing sequence](/questions/8374/calculate-the-nth-term-of-golombs-self-describing-sequence) (21 answers) Closed 7 years ago. This used to be an old Computer Olympiad Question, not sure what the actual sou...
[Question] [ A while ago, we had a [challenge](https://codegolf.stackexchange.com/q/52903/34438) related to antiferromagnetism (AF) in two dimensions. Now, on a 2-d square [lattice](https://en.wikipedia.org/wiki/Bravais_lattice), antiferromagnetic is antiferromagnetic, and that is all there is to it. Moving to [o...
[Question] [ I had to write a code for finding all non-empty sublists partitionings of a list: ``` def f(s): if s: for j in range(1,len(s)+1): for p in f(s[j:]): yield [s[:j]]+p else: yield [] ``` I managed to shorten it (for Python 3.4+) to: ``` def f(s, p=[]):...
[Question] [ In this challenge, you have to implement a basic spell checker and autocorrector. Your program will use the first input as a source for a dictionary of words, and will use that to autocorrect the second input, finding a close match to some incorrectly spelt words, outputting the result ## Specificati...
[Question] [ You and a friend are playing a game - who can overflow the most containers? There are `n` containers numbered 1 to `n`. Each container has a certain maximum capacity of water, in litres. You take turns with your friend to pour discrete amounts of water into the containers. On your turn, you *may* pou...
[Question] [ Given a grid which contains these signs: 0..9, x, =, write the fastest code that outputs the longest string of connected (horizontally, vertically, and diagonally adjacent), distinct cells which is a mathematically valid expression formed on this grammar: ``` E := T '=' T T := F 'x' T | F F -> {0..9}...
[Question] [ For more information on Parity: [Wikipedia](http://en.wikipedia.org/wiki/Parity_bit) # Challenge Write a program that takes an input (stdin, argv, ect) of four nibbles and two parity nibbles. Your program should then test to see whether the 'block' is valid, using **even parity**; if it is then outpu...
[Question] [ The quest is to convert an integer to a string in such a way that 1. the order is preserved 2. using the least number of characters in the string. Let's say I have an integer X; the objective is to create a function `f` (and respective inverse, `g`, such that: ### Conditions 1. `f(X) is a utf-8 stri...
[Question] [ Create a program in *any* language, that takes an arbitrary binary input, and generates a valid C++11 program, which when compiled and run will print this binary input. So you could do this (on linux with gcc, where `program` is the code you've written and `file.dat` is one of the test inputs): ``` $...
[Question] [ There is already a problem on here about [calculating the total resistance of a resistor diagram](https://codegolf.stackexchange.com/questions/10863/calculating-resistance-nerd-sniping). However, that problem deals only with series-parallel diagrams, which are trivially reducible. Here I present the ...
[Question] [ Write a program that will determine the original sequence given five variations. The original sequence will be contain n unique elements in any order. A variation is made by making a copy of the original sequence and choosing a random item from the copy and inserting it at any random location in the ...
[Question] [ ## Description There will be a grid of `9x9`, where there will be placed `12` rocks. You will start at a starting-rock and walking with a starting-direction (north, south, west or east), whenever you see a rock, you have two options: * Climb over the rock and continue in the same direction * Change d...
[Question] [ **Closed**. This question needs [details or clarity](/help/closed-questions). It is not currently accepting answers. --- **Want to improve this question?** Add details and clarify the problem by [editing this post](/posts/3130/edit). Closed 6 years ago. [Improve this question](/posts/3130/edit) ...
[Question] [ This includes tips for all related derivatives, as coding in these langs often primarily consists of writing the function in the lambda calculus and then compiling it down at the end. Among others, this includes tips for: * Standard combinator calculi + [SKI system](https://en.wikipedia.org/wiki/SKI...
[Question] [ We all know and love the corpulent DDL expressions one can write in PostgreSQL with wording like `DEFERRABLE INITIALLY DEFERRED`, `ALTER FOREIGN DATA WRAPPER`, or even `DROP TEXT SEARCH CONFIGURATION`. But how far can one go? Here comes the definitive challenge for the longest DDL expression, with co...
[Question] [ # Challenge **Given an array of positive integers and a threshold, the algorithm should output a set of consecutive-element-groupings (subarrays) such that each group/subarray has a *sum greater than the threshold*.** # Rules The solution should honor **two additional criteria**: * be of highest card...
[Question] [ **This question already has answers here**: [Given an input, move it along the keyboard by N characters](/questions/50336/given-an-input-move-it-along-the-keyboard-by-n-characters) (9 answers) Closed 4 years ago. You are in fact writing an interpreter for the language "Wrong keyboard position"...
[Question] [ ## General rules The universe of the Game of Life is an infinite two-dimensional orthogonal grid of square cells, each of which is in one of two possible states, alive or dead. Every cell interacts with its eight neighbours, which are the cells that are horizontally, vertically, or diagonally adjacen...
[Question] [ [From the sandbox](https://codegolf.meta.stackexchange.com/a/12727/60951)! I2c or TWI, is a 2 way stream that uses 2 signal lines: `SDA` and `SCK`. This is used in sensors to communicate between a master and a slave. So, how does this work? Well, here's the boilerplate: ## Input: 1 I2c command repr...
[Question] [ # Background The tabs versus spaces war in programming has been going on a long time, basically because spaces are too low-level to have all the properties you'd want for alignment and indentation, but tabs can't be relied upon to work in all contexts (with some programs optimizing the use of tabs fo...
[Question] [ ## Challenge Given a plot with broken paths, return the plot with all paths connected in the minimum number of changes. ## Explanation This problem deals with graphs on the Cartesian plane. Every node has 8 possible edges, extending vertically, horizontally, or diagonally. Each direction is represent...
[Question] [ There's something (well, many things üòÄ) that really annoys me. It is when dictionaries (English, not Pythonic) use the defining word itself to define the word, also called circular definitions. Example: > > reticence: the quality of being reticent > > > -- Apple Dictionary > > Circular defini...
[Question] [ The goal of this challenge is to implement a digital [low-pass filter](https://en.wikipedia.org/wiki/Low-pass_filter). You are free to implement any type of digital filter you want, however whatever results produced must pass the validation script below. Here's a general description of what the valid...
[Question] [ ## Specification For this challenge you will: * Take an array of positive integers. * For each overlapping pair in the array, calculate the difference of it's integers. If the difference is a common divisor of the integers (they are both divisible by their difference), swap their positions in the arr...
[Question] [ # Exposition Your mathematics teacher is a big fan of [Vieta's formulas](https://en.wikipedia.org/wiki/Vieta's_formulas), and he believes that you should use them to solve quadratic equations. Given the equation ``` ax^2 + bx + c = 0 ``` the product of its roots is `c/a`, and their sum is `-b/a`. Whe...
[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/75160/edit). Closed 2 years ago. [Improve this question](/posts/75160/edit)...
[Question] [ You have a deck of cards, consisting of cards with non-negative numbers on them, and you haven't shuffled it yet, and no player trusts the other players to be fair at shuffling. You devise a way to shuffle the deck that is completely deterministic, but chaotic enough that the other players are okay w...
[Question] [ Lets say we have this existing data: ``` Total - 10 Won - 7 Lost - 3 Longest Winning Streak - 5 Longest Losing Streak - 2 ``` Now you need to write a function which generates an array of random boolean values (`true` representing a win and `false` representing a loss) which fulfills the above cr...
[Question] [ **Context:** > > You are a cryptographer. You have stumbled upon a mysterious group of individuals, who present you with a challenge, which you must solve in order to join their secret society. > > > **Description:** > > You have been given a binary stream consisting of 3 byte sequences that hav...
[Question] [ # Challenge You must, in the least bytes possible, implement the Binary Heap data structure and each of the following methods that operate on it: * A function which takes no arguments and returns an empty Heap * A function which takes a list of arguments with an arbitrary length and returns a Heap co...
[Question] [ I wrote some perl to sort by debian package version number (specification [here](https://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Version)). Whilst readable, it was disappointingly long (114 lines, 2042 characters) - shocking. So this challenge is to produce the shortest program (in...
[Question] [ This challenge is inspired by a problem I encountered recently out in the real-world, though ultimately I cheated and found a workaround. ### Challenge The input is a space-separated table of characters (each line is a row, and every line will have the same number of columns). Your challenge is to gr...
[Question] [ The truncated octahedron is a shape that has the interesting property that it can tessellate an entire 3D space so that any two solids that meet by an edge or corner also meet by a face, in a configuration called the [bitruncated cubic honeycomb](http://en.wikipedia.org/wiki/Bitruncated_cubic_honeyco...
[Question] [ The [blancmange function](http://en.wikipedia.org/wiki/Blancmange_curve) is used as an example in basic calculus of a function that is continuous everywhere, but differentiable nowhere. It achieves this effect by using the sums of ever-diminishing triangle-wave functions. Your task is to build a prog...
[Question] [ Write a class containing a method with the signature ``` System.Array ChangeElementType(System.Array jaggedArray) ``` (you may rename identifiers `ChangeElementType`, `jaggedArray` and shorten the type `System.Array` with `using` directives). The class may contain any additional members if needed. Yo...
[Question] [ Here is a real question somebody asked me. Suppose you have `n` teams, one terrain. * Each team must play each other team exactly once. * The number of times a team plays two matches in a row should be minimized. The problem is hard if not optimized. Your program should be able to answer this questio...
[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/1766/edit). Closed 1 year ago. [Improve this question](/posts/1766/edit) T...
[Question] [ ## Introduction I would like to drawn a nice *spinner* by using eight braille patterns on two lines, drawing a square of 8x8 ***pixel***, for showing a kind of *snake* growing and reducing: ``` declare -a shapes=([0]=$'\E[A⠁⠀⠀⠀\E[B\E[4D⠀⠀⠀⠀' [1]=$'\E[A⠈⠀⠀⠀\E[B\E[4D⠀⠀⠀⠀' [2]=$'\E[A⠀⠁⠀⠀\E[B\E[4D⠀⠀⠀⠀' [...
[Question] [ ## Background In Python, function arguments are defined within the parentheses following the function name in the function definition. There are different ways to present function arguments, and they can be categorised into three types: 1. Positional-only arguments, 2. Positional or keyword arguments...
[Question] [ Given a universe of \$v\$ elements, a **Kirkman triple system** is a set of \$(v-1)/2\$ *classes* each having \$v/3\$ *blocks* each having three elements, so that * every pair of elements appears in exactly one block * all classes are partitions of the universe. [Kirkman's schoolgirl problem](https:/...
[Question] [ # Challenge ## Premise [Euler diagrams consist of simple closed shapes in a 2-D plane that each depict a set or category. How or whether these shapes overlap demonstrates the relationships between the sets.](https://en.wikipedia.org/wiki/Euler_diagram) I'm a spoilt brat who thinks Euler diagrams are ...
[Question] [ [33](https://github.com/TheOnlyMrCat/33) is a simple esolang I created. You may have seen me use it in a few questions. You're not going to be writing a full interpreter. The interpreter you will be writing is for a simplified version of 33. This simplified 33 has two numeric registers: the accumulat...
[Question] [ **This question already has answers here**: [Find number of ones to get a number using + and \*](/questions/154236/find-number-of-ones-to-get-a-number-using-and) (8 answers) Closed 5 years ago. ### Background Challenge is inspired by [this question](//puzzling.stackexchange.com/questions/73925...
[Question] [ # Problem Description Given: * a function \$f(a, b, c, d, e) = \frac{a \times b}c + \frac de\$ * an array \$x = [x\_1, x\_2, x\_3, x\_4, ..., x\_n]\$ of non-distinct integers * a target value \$k\$ What is the most efficient way, in terms of worst-case \$n\$, to find 5 distinct indices \$x\_a, x\_b, ...
[Question] [ **This question already has answers here**: [Shortest Game of Life](/questions/3434/shortest-game-of-life) (45 answers) Closed 5 years ago. # Description : Given an array of strings representing a grid of cells With the key : `0 = 'dead cell' 1 = 'live cell'` write a function that returns the...
[Question] [ Bobby's booby-trapped safe requires an n-digit code to unlock it. Alex has a probe which can test combinations without typing them onto the safe. The probe responds *Fail* if no individual digit is the same as that in its corresponding position in Bobby's code. Otherwise it responds *Close*, includin...
[Question] [ # Challenge Given a user's ID, determine how many times they have hit the repcap. # Specs On a given day, let's a user has hit the repcap if they had reputation that wasn't gained due to the repcap. Essentially, on any given day, if the user's net reputation change as calculated without any cap was d...
[Question] [ # Backstory I've always found it quite annoying how some numbers in English don't have the same number of syllables even though they have the same number of digits. Example: `seven` has 2 syllables whereas all of the other digits have one (other than `zero`). So, when I'm counting in time to somethin...
[Question] [ **This question already has answers here**: [Encode a program with the fewest distinct characters possible](/questions/11690/encode-a-program-with-the-fewest-distinct-characters-possible) (10 answers) Closed 7 years ago. We often get [restricted-source](/questions/tagged/restricted-source "sho...
[Question] [ What tips do you have for golfing in [Wierd](http://catseye.tc/node/Wierd)? Tips for golfing other languages don't seem to help one golf Wierd programs so I'm looking for ideas that can be applied to code golf problems that are specific to Weird - especially if it helps me reduce the size of this ans...
[Question] [ **[Related](https://codegolf.stackexchange.com/questions/71618/help-recalculate-your-rep)** ## Introduction As it happens, someone put forward the idea that, since PPCG has graduated, up votes on questions should be worth 10 rep. As a result, I started wondering how much rep I would have if it had al...
[Question] [ I wanted to ask this question: [Convert to and from the factorial number system](https://codegolf.stackexchange.com/questions/11735/convert-to-and-from-the-factorial-number-system) but I'm a couple of years too late! So, instead you must convert to and from the ~~lairotcaf~~ backwards-factorial numbe...
[Question] [ The [PGP Word List](https://en.wikipedia.org/wiki/PGP_word_list) is a set of 512 English words for verbally communicating strings of bytes, such as authentication codes or hashes. It is used in secure VoIP software as well as in some other important applications, such as the [DNSSEC Root KSK Ceremoni...
[Question] [ We all already crossed the look and say sequence, and where asked to guess the next element. As its name tells it very well, you just have to say what you see : ``` 1 1 1 2 1 1 2 1 1 1 1 1 2 2 1 3 1 2 2 1 1 ... ``` But, what if we had to use a different base to describe it? You could count it in base...
[Question] [ **This question already has answers here**: [Zigzagify a String](/questions/55593/zigzagify-a-string) (10 answers) Closed 8 years ago. Write a program that generates a sequence of numbers starting with zero and then 100 random integers between -9 and 9. That sequence will be displayed like a r...
[Question] [ The goal of this challenge is to implement a storage and retrieval pattern that will most quickly determine if a set of recurrence definitions fall within a date range. Consider the schema: `Event -|--has one or many--<- Schedules` Schedule is a record defining a recurrence, e.g. (these are just samp...