text
stringlengths
26
126k
[Question] [ Rearrange a given list such that all the odd numbers appear before all the even numbers. Besides for this requirement, the output list may be in any order. The input will only contain integers, but they may be negative and there may be duplicates, and they may appear in any order. Shortest solution w...
[Question] [ Rearrange a given list such that all the odd numbers appear before all the even numbers. Besides for this requirement, the output list may be in any order. The input will only contain integers, but they may be negative and there may be duplicates, and they may appear in any order. Shortest solution w...
[Question] [ ## Defintion A [centrosymmetric matrix](https://en.wikipedia.org/wiki/Centrosymmetric_matrix) is a square [matrix](https://en.wikipedia.org/wiki/Matrix_(mathematics)) that is symmetric about its center. More rigorously, a matrix \$A\$ of size \$n \times n\$ is centrosymmetric if, for any \$i,\: j \in...
[Question] [ Given a non-negative number `n`, output the number of ways to express `n` as the sum of two squares of integers `n == a^2 + b^2` ([OEIS A004018](https://oeis.org/A004018)). Note that `a` and `b` can be positive, negative, or zero, and their order matters. Fewest bytes wins. For example, `n=25` gives ...
[Question] [ Given a pattern (string or array format) of Bits : `[0,1,1,1,0,1,1,0,0,0,1,1,1,1,1,1]` The tasks is to replace any number of consecutive 1-Bits with an ascending number sequence starting at 1. **Input** * Pattern (can be received as an string or array) Example: + String: `1001011010110101001` + Ar...
[Question] [ Output this exact text: ``` 1 i 12 hi 123 ghi 1234 fghi 12345 efghi 123456 defghi 1234567 cdefghi 12345678 bcdefghi 123456789abcdefghi 12345678 bcdefghi 1234567 cdefghi 123456 defghi 12345 efghi 1234 fghi 123 ...
[Question] [ Consider the following sequence: ``` 0 1 3 2 5 4 8 6 7 12 9 10 11 17 13 14 15 16 23 ... ``` Looks pretty pattern-less, right? Here's how it works. Starting with `0`, jump up `n` integers, with `n` starting at `1`. That's the next number in the sequence. Then, append any numbers "skipped" and that hav...
[Question] [ # Background This is a standard textbook example to demonstrate for loops. This is one of the first programs I learnt when I started learning programming ~10 years ago. # Task You are to print this exact text: ``` ********** ********** ********** ********** ********** ********** ********** **********...
[Question] [ It seems that many people would like to have this, so it's now a sequel to [this challenge](https://codegolf.stackexchange.com/questions/167106/recover-the-prime-from-the-prime-power)! **Definition**: a *prime power* is a natural number that can be expressed in the form pn where p is a prime and n is...
[Question] [ You have two values each of which is either `0` representing "unknown", or one of `1,2,3`. Merge them into a single value as follows: * If both values are nonzero and equal, output that value: `(3,3) -> 3` * If both values are nonzero but unequal, output 0 for unknown: `(1,2) -> 0` * If one value...
[Question] [ Write a piece of code that takes a string as input, and outputs a piece of code in the **same language** that, when run, will output the initial input string. It must be able to handle any combination of characters A-Z, a-z, and 0-9. Example in Python: ``` import sys print "print('" + sys.argv[1] + ...
[Question] [ You must write a program or function that takes a string of brackets and outputs whether or not that string is fully matched. Your program should print a [truthy or falsy](http://meta.codegolf.stackexchange.com/questions/2190/interpretation-of-truthy-falsey) value, and IO can be in any [reasonable fo...
[Question] [ I have a simple challenge for you this time. Given an array of positive integers **A** (or the equivalent in your language), replace each entry **Ai** with the sum of the next **Ai** elements of **A**, cycling back from the beginning if there are not enough items. As usual, you can compete in any [pr...
[Question] [ In this challenge you will be converting a mixed number to an improper fraction. Because improper fractions use fewer numbers, your code will need to be as short as possible. --- ## Examples ``` 4 1/2 9/2 12 2/4 50/4 0 0/2 0/2 11 23/44 507/44 ``` ## Specification You may assume the denominator of the...
[Question] [ This challenge is really simple (and a precursor to a more difficult one!). Given an array of resource accesses (simply denoted by nonnegative integers) and a parameter `n`, return the number of cache misses it would have assuming our cache has capacity `n` and uses a first-in-first-out (FIFO) ejecti...
[Question] [ Here's an array representing a standard deck of cards, including two Jokers. ``` [ "AS", "2S", "3S", "4S", "5S", "6S", "7S", "8S", "9S", "10S", "JS", "QS", "KS", "AD", "2D", "3D", "4D", "5D", "6D", "7D", "8D", "9D", "10D", "JD", "QD", "KD", "AH", "2H", "3H", "4H", "5H", "6H", "7H", "8H", "9H"...
[Question] [ `your shift key is broken. wheNever you type two lines, the cApitaL` `LetteRs in them get swappeD. you must write a program to fiX THIS!` ## Description The input is two strings, `s1` and `s2`, equal in length. They will each contain only printable ASCII and be at least one character in length. You...
[Question] [ Your task is to decipher a non-empty string consisting of printable ASCII characters in the range **[32..126]**. Reading the string character per character: * each time you encounter a letter in lowercase, associate it with the next letter in uppercase, starting with **'A'** * each time you encounter...
[Question] [ What general tips do you have for golfing in Haskell? I am looking for ideas that can be applied to code golf problems in general that are at least somewhat specific to Haskell. Please post only one tip per answer. --- If you are new to golfing in Haskell, please have a look at the **[Guide to Golfin...
[Question] [ You will be given a string `s`. It is guaranteed that the string has equal and at least one `[`s and `]`s. It is also guaranteed that the brackets are balanced. The string can also have other characters. The objective is to output/return a list of tuples or a list of lists containing indices of each ...
[Question] [ **This question already has answers here**: [Non-Unique/Duplicate Elements](/questions/60610/non-unique-duplicate-elements) (60 answers) Closed 5 years ago. So, I have an array ``` ['a', 42, 'b', 42, 'a'] ``` I want to alert users to the fact that 42 and 'a' appear in it twice. ``` some_functi...
[Question] [ Given a nonempty array of positive integers, "increment" it once as follows: * If all the array elements are equal, append a `1` to the end of the array. For example: ``` [1] -> [1, 1] [2] -> [2, 1] [1, 1] -> [1, 1, 1] [3, 3, 3, 3, 3] -> [3, 3, 3, 3, 3, 1] ``` * Else, increment the first element in t...
[Question] [ # Challenge : Count the number of ones `1` in the binary representation of all number between a range. --- # Input : Two non-decimal positive integers --- # Output : The sum of all the `1`s in the range between the two numbers. --- # Example : ``` 4 , 7 ---> 8 4 = 100 (adds one) = 1 5 = 10...
[Question] [ **The challenge** Create a function which takes an array of numbers and subtract from each element the lowest element in the array that has not yet been subtracted from another. * After using the lowest value, It can not be used again. * Numbers in the array are decimal numbers, and not necessarily i...
[Question] [ [Minesweeper](https://en.wikipedia.org/wiki/Minesweeper_(video_game)) is a puzzle game where mines are hidden around a board of nondescript tiles with the goal of identifying the location of all mines. Clicking on a mine loses the game, but clicking on any other tile will reveal a number from 0-8 whi...
[Question] [ This was inspired by a function I recently added to my language [Add++](https://github.com/SatansSon/AddPlusPlus). Therefore I will submit an short answer in Add++ but I won't accept it if it wins (it wouldn't be fair) Don't you hate it when you can multiply numbers but not strings? So you should co...
[Question] [ I thought of a new way to generate my passwords, and even though it's probably not very clever in the long run, it could still make for a fun code-golf. Taking a string of words, the password is generated thus: * Pick the *nth* character in the *nth* word * If *n* is larger than the word, continue co...
[Question] [ You have two values each of which is either `0` representing "unknown", or one of `1,2,3`. Merge them into a single value as follows: * If both values are nonzero and equal, output that value: `(3,3) -> 3` * If both values are nonzero but unequal, output 0 for unknown: `(1,2) -> 0` * If one value...
[Question] [ Having a function *f* that takes arguments *x1*, *x2*, …, *xn*                                                – ie.  *f : X1 × X2 × … × Xn → Y* – [currying](https://en.wikipedia.org/wiki/Currying) redefines *f* as a function taking a single argument *a1* which maps to yet another function. This techn...
[Question] [ We all know that a lot of exercises only affect one half of your body, so you have to do them twice, once for each side. Such exercises have two counterparts, one for the left side and one for the right. However, there's no need to execute the two counterparts consecutively, as long as the exercises ...
[Question] [ # 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 constructed by selecting sequentially adjacent cells on the board. ("adjacent" means horizontally, vertically or diagonally adja...
[Question] [ Consider a one-dimensional sequence of numbers within a fixed range, i.e. ``` [1, 2, 4, 6, 8, 0, 2, 7, 3] in range [0, 10⟩ ``` The Ever-Increasing Graph\* \*\* is a line that connects all the points in this sequence left to right, and always goes upwards or stays level. If necessary, the line wraps a...
[Question] [ A while ago, I had a look at the prime factorization of 27000: > > 27000 = 23 × 33 × 53 > > > There are two special things about that: * **consecutive-prime**: The primes are consecutive: 2 is the 1st prime, 3 is the 2nd prime, 5 is the 3rd prime. * **constant-exponent**: The exponent is the same...
[Question] [ ### Challenge: Given a positive integer input **n**, create a vector that follows this pattern: ``` 0 1 0 -1 -2 -1 0 1 2 3 2 1 0 -1 -2 -3 -4 -3 -2 -1 ... ±(n-1) ±n ``` Or, explained with words: The vector starts at `0`, and makes increments of `1` until it reaches the smallest odd positive i...
[Question] [ ### Challenge: Given a positive integer input **n**, create a vector that follows this pattern: ``` 0 1 0 -1 -2 -1 0 1 2 3 2 1 0 -1 -2 -3 -4 -3 -2 -1 ... ±(n-1) ±n ``` Or, explained with words: The vector starts at `0`, and makes increments of `1` until it reaches the smallest odd positive i...
[Question] [ For any positive 32-bit integer (`1 ≤ n ≤ 0xFFFFFFFF`) output the number of bits needed to represent that integer. # Test cases ``` | n | n in binary | bits needed | |----------------------------------| | 1 | 1 | 1 | | 2 | 10 | 2 | | 3 | 11 ...
[Question] [ Your task is to build a program (using only printable ASCII characters and/or tabs and newlines) that prints out exactly the characters in the printable ASCII space (`0x20` to `0x7e`) that *don't* appear in your program's source code (in any order, however many times you want). The shortest code to d...
[Question] [ It's a common problem to navigate in a 2D matrix. We've seen it many times and will see again. So let's help future us and develop the shortest solutions to generate all eight possible steps in a 2D matrix. ## Challenge Your code must output the following 8 pairs of -1,0,1 in any order: ``` (0,1) (0,...
[Question] [ **Challenge:** Print the **entire** printable ASCII charset (not just a range!) in order. ``` !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ ``` **Rules:** *read closely* * No other characters allowed in the output. * Program/function does not accept i...
[Question] [ ## Introduction: In the **northern hemisphere** (i.e. Europe, North America, etc.), the seasons are divided like this: - **Spring:** March, April, May - **Summer:** June, July, August - **Autumn:** September, October, November - **Winter:** December, January, February In the **southern hemisp...
[Question] [ Given a nonempty list of positive integers \$(x, y, z, \dots)\$, your job is to determine the number of unique values of \$\pm x \pm y \pm z \pm \dots\$ For example, consider the list \$(1, 2, 2)\$. There are eight possible ways to create sums: * \$+ 1 + 2 + 2 \to +5\$ * \$+ 1 + 2 − 2 \to +1\$ * \$+ ...
[Question] [ This is the Collatz Conjecture (OEIS [A006577](https://oeis.org/A006577)): * Start with an integer *n* > 1. * Repeat the following steps: + If *n* is even, divide it by 2. + If *n* is odd, multiply it by 3 and add 1. It is proven that for all positive integers up to *5 \* 260*, or about *5764000000...
[Question] [ # Input : Two decimal integers `m` and `n` that respectively give the number of rows and columns of the table. `m` and `n` are greater than or equal to 1. # Output : A table in HTML that has m rows and n columns. The table should be displayable by a modern browser of your choice. Most browsers will d...
[Question] [ Given a string of printable ASCII text (including newlines and spaces) that contains at least one character that is neither a newline nor a space, output a truthy value if the string is rectangular, and a falsey value otherwise. **Additionally, the source code for your solution must be rectangular**....
[Question] [ A current internet meme is to type 2spooky4me, with a second person typing 3spooky5me, following the `(n)spooky(n+2)me` pattern. Your mission is to implement this pattern in your chosen language. You should write a program or function that takes a value `n` (from standard input, as a function argumen...
[Question] [ In Elixir, (linked) lists are in the format `[head | tail]` where **head** can be anything and **tail** is a list of the rest of the list, and `[]` - the empty list - is the only exception to this. Lists can also be written like `[1, 2, 3]` which is equivalent to `[1 | [2 | [3 | []]]]` Your task is t...
[Question] [ ## Introduction The challenge itself was something I came across and had to try and figure out for a personal of project of mine. I ended up branching out and asking family members if they could provide an equation to meet the requirements. **Note:** I have (with the help of others) found a solution ...
[Question] [ ## Introduction The challenge itself was something I came across and had to try and figure out for a personal of project of mine. I ended up branching out and asking family members if they could provide an equation to meet the requirements. **Note:** I have (with the help of others) found a solution ...
[Question] [ # File Permissions [code-golf](/questions/tagged/code-golf "show questions tagged 'code-golf'") *Adapted from the UIL - Computer Science Programming free response question "Carla" for 2018 District.* # Introduction In UNIX-like operating systems, each file, directory, or link is "owned" by a "user", ...
[Question] [ # Challenge: Your job is to create a simple interpreter for a simple golfing language. --- # Input: Input will be in the form of string separated by spaces. **You can replace space separation with what you want** --- # Output: Output the result (a number or a string) obtained after performing all op...
[Question] [ Output either the text below, or a list of lists of integers (more details below). ``` 0 10 1 20 11 2 30 21 12 3 40 31 22 13 4 50 41 32 23 14 5 60 51 42 33 24 15 6 70 61 52 43 34 25 16 7 80 71 62 53 44 35 26 17 8 90 81 72 63 54 45 36 27 18 9 91 82 73 64 55 46 37 28 19 92 83 74 65 56 47 38 2...
[Question] [ *[Cross posted from my anagolf post (note: may contain spoilers, post mortem).](http://golf.shinh.org/p.rb?ASCII+Pylon)* Output the following text exactly. * You may have additional trailing whitespace on each line, and trailing newlines as well. * Shortest code, in bytes, wins. ``` ...
[Question] [ The input consists of *i* rows with neighbors information. Each *i*th row contains 4 values, representing the neighbor of *i* to the **North**, **East**, **South** and **West** directions, respectively. So each value represents a neighbor at the given direction of the *i*th row, starting from row 1, ...
[Question] [ Inspired by [a bug](https://tio.run/##S9ZNT07@/z9TJ8s6TSM5I7FIq1izujwjMydVA8RKyy/SyLI1M7XOsrE0tM7S1tbUKra1zbIvKMrMK0nTUNMqBgpZQXlKCkqa1gWlJcUaSkBGbe3/3MTMPA2gIRpKUZER4WGhIcFBgQH@fr4@3l6eHu5uri7OTo4glf8B) in a solution to [this challenge](https://codegolf.stackexchange.com/q/141372/61563), your challe...
[Question] [ Given string `S` representing a dollar amount, make change for that amount of money use the least number of coins to make the change and record the amount of each coin in a list. Here are the coins available to use and their value. ``` Coin : Value Dollar Coins : $1.00 Quarters: $0.25 Dimes: $0.10 Ni...
[Question] [ ## Introduction In our recent effort to collect catalogues of shortest solutions for standard programming exercises, here is PPCG's first ever vanilla FizzBuzz challenge. If you wish to see other catalogue challenges, there is ["Hello World!"](https://codegolf.stackexchange.com/questions/55422/hello-...
[Question] [ Write the shortest program or function which generates these 1000 numbers or a sequence (0- or 1-indexed) which begins with them. ``` [0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 1, ...
[Question] [ Given integers `N , P > 1` , find the largest integer `M` such that `P ^ M ‚â§ N`. ### I/O: Input is given as 2 integers `N` and `P`. The output will be the integer `M`. ### Examples: ``` 4, 5 -> 0 33, 5 -> 2 40, 20 -> 1 242, 3 -> 4 243, 3 -> 5 400, 2 -> 8 1000, 10 -> 3 ``` ### Notes: The input wil...
[Question] [ # Challenge : Your job is to find the given number `N`. --- # Input : You will be given a string in the following form: ``` dN ± Y = X ``` Where: ``` d, N, X, Y are all numbers with d , X , Y being integers (not decimals). ``` --- # Output : Solve the equation and output the value of `N` rounded. Ro...
[Question] [ In this exercise, you have to analyze records of temperature to find the closest to zero. Write a program that prints the temperature closest to 0 among input data. ## Input * N, the number of temperatures to analyse (optional). This will be nonzero. * The N temperatures expressed as integers ranging...
[Question] [ A [**Walsh matrix**](https://en.wikipedia.org/wiki/Walsh_matrix) is a special kind of square matrix with [applications in quantum computing](https://en.wikipedia.org/wiki/Quantum_logic_gate#Hadamard_gate) (and probably elsewhere, but I only care about quantum computing). ### Properties of Walsh matri...
[Question] [ # Description : Given a string of space separated binary digits or space separated booleans or an array of binary digits or array of booleans . Your job is to find the xor of each until you end up with one answer either 0 or 1. The inputs will always be valid and will only be either 0 or 1. # Example...
[Question] [ **This question already has answers here**: [There Was an Old Lady](/questions/3697/there-was-an-old-lady) (31 answers) Closed 5 years ago. So, there's a famous children's rhyme... ``` This is the house that Jack built. This is the malt That lay in the house that Jack built. This is the rat ...
[Question] [ **This question already has answers here**: [There Was an Old Lady](/questions/3697/there-was-an-old-lady) (31 answers) Closed 5 years ago. So, there's a famous children's rhyme... ``` This is the house that Jack built. This is the malt That lay in the house that Jack built. This is the rat ...
[Question] []
[Question] [ You must fill an array with every number from `0-n` inclusive. No numbers should repeat. However they must be in a random order. # Rules All standard [code-golf](/questions/tagged/code-golf "show questions tagged 'code-golf'") rules and standard loopholes are banned The array must be generated pseudo...
[Question] [ In Haskell the list notation: ``` [a,b,c] ``` Is just syntactic sugar for: ``` a:b:c:[] ``` And the string notation: ``` "abc" ``` Is just syntactic sugar for: ``` ['a','b','c'] ``` This means that the string: ``` "abc" ``` Is the same as: ``` 'a':'b':'c':[] ``` # Task Given a string you should outpu...
[Question] [ ## Challenge You need to generate a program or function that takes in a positive integer N, calculates the first N terms of the Fibonacci sequence in binary, concatenates it into a single binary number, converts that number back to decimal, and then outputs the decimal as an integer. For example ``` ...
[Question] [ In some nations there are recommendations or laws on how to form emergency corridors on streets that have multiple lanes per direction. (In the following we only consider the lanes going in the direction we are travelling.) These are the rules that hold in Germany: * If there is only one lane, everyo...
[Question] [ Different systems have different ways to describe colors, even if all of them are speaking in R-G-B-A space. A front-end developer who is familiar with CSS may prefer `#RRGGBBAA`. But Android developers may prefer `#AARRGGBB`. When handling AAS file format, `#AABBGGRR` is needed. That's too confusing...
[Question] [ Given a positive integer *N* ("virality"), your program should create an ASCII-art drawing of a tree with two branches of length *N* extending downwards and/or rightwards from the top-left corner. The direction taken by each branch *after the first asterisk* can be either rightwards or downwards, and...
[Question] [ So... uh... this is a bit embarrassing. But we don't have a plain "Hello, World!" challenge yet (despite having 35 variants tagged with [hello-world](/questions/tagged/hello-world "show questions tagged 'hello-world'"), and counting). While this is not the most interesting code golf in the common lan...
[Question] [ ...will you help me immortalize it? [![enter image description here](https://i.stack.imgur.com/5KcWXm.png)](https://i.stack.imgur.com/5KcWXm.png) I've had this pillow a few years now, and apparently it's time to get rid of it. Can you please write a function or program, that I can bring with me and u...
[Question] [ Given a number N, output the [sign](https://en.wikipedia.org/wiki/Sign_function) of N: * If N is positive, output 1 * If N is negative, output -1 * If N is 0, output 0 N will be an integer within the representable range of integers in your chosen language. ## The Catalogue The Stack Snippet at the bo...
[Question] [ **Challenge:** The concept is simple enough: write a full program to output its own code golf score! Output should only be the byte count of your program and a trailing `bytes`. **BUT WAIT**..... there is one restriction: * Your source code can not include any of the digits from your byte count * So...
[Question] [ The three-dimensional Levi-Civita symbol is a function `f` taking triples of numbers `(i,j,k)` each in `{1,2,3}`, to `{-1,0,1}`, defined as: * `f(i,j,k) = 0` when `i,j,k` are not distinct, i.e. `i=j` or `j=k` or `k=i` * `f(i,j,k) = 1` when `(i,j,k)` is a cyclic shift of `(1,2,3)`, that is one of `(1,...
[Question] [ # The Task In this challenge, your task is to write a program or function which takes in a String and outputs a truthy or falsey value based on whether the first character and the last character of the input String are equal. ## Input You may take input in any way reasonable way. However, assuming th...
[Question] [ I love math. But I can't find a single calculator that can multiply correctly. They seem to get everything right except 6\*9 (It's the question to life, the universe, and everything! How could they get that wrong?!). So I want you all to write a function for me that can multiply 2 numbers correctly (...
[Question] [ Your task is to write a non-empty program / function of byte count **L**, which, when repeated **M** times, checks whether a given positive integer **N** is equal to **L × M**. You should, in theory, support an arbitrary number of repetitions (an arbitrary positive integer value of **M**), but it's f...
[Question] [ *Note:* There are some rude words in this question. There's an implicit puzzle posed in this [classic Monty Python sketch](https://www.youtube.com/watch?v=-gwXJsWHupg) (you can also ready the [script](http://www.montypython.net/scripts/wood.php) online). Various phrases are described as being 'woody...
[Question] [ * Alice (A) and Bob (B) decided to have a battle. * Each combatant has 10 health. * They take turns to roll a 6 sided die for damage. * That damage is removed from their opponent's health. * In the end either Alice or Bob, will vanquish their foe. --- Show me how the battle went. Outputting these cod...
[Question] [ A [self number](https://en.wikipedia.org/wiki/Self_number) (also called a Colombian or Devlali number) is a natural number, `x`, where the equation `n + <digit sum of n> = x` has no solutions for any natural number `n`. For example, **21** is not a self number, as `n = 15` results in `15 + 1 + 5 = 21...
[Question] [ * Alice (A) and Bob (B) decided to have a battle. * Each combatant has 10 health. * They take turns to roll a 6 sided die for damage. * That damage is removed from their opponent's health. * In the end either Alice or Bob, will vanquish their foe. --- Show me how the battle went. Outputting these cod...
[Question] [ Inspired by [I'm not the language you're looking for!](https://codegolf.stackexchange.com/questions/55960/im-not-the-language-youre-looking-for) # Challenge Choose two different programming languages, and write a program that prints the following line to stdout (or equivalent): ``` This program error...
[Question] [ # Challenge Factory workers are usually very hard-working. However, their work is now being commonly replaced with machines. You have to write a program that takes a number as input. It will print out a factory of 10 workers 10 times. Every time, each worker has a `1/input` chance of being 'fired' an...
[Question] [ There are 97 [ASCII](https://en.wikipedia.org/wiki/ASCII#Printable_characters) characters that people encounter on a regular basis. They fall into four categories: 1. Letters (52 total) ``` ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz ``` 2. Numbers or Digits (10 total) ``` 0123456789 ``` 3. ...
[Question] [ In this challenge you are to write a program or function, that takes a string as input and outputs one of two possible values. We will call one of these values *truthy* and one *falsy*. They do not need to actually be *truthy* or *falsy*. For an answer to be valid it must meet four additional criteri...
[Question] [ In this challenge you are to write a program or function, that takes a string as input and outputs one of two possible values. We will call one of these values *truthy* and one *falsy*. They do not need to actually be *truthy* or *falsy*. For an answer to be valid it must meet four additional criteri...
[Question] [ ## Challenge Weirdly, this hasn't been done yet: output the current date. ## Rules The date format you should follow is as follows: ``` YYYY-MM-DD ``` Where the month and day should be padded by zeroes if they are less than 10. For example, if the program is run on the 24th May 2017, it should output...
[Question] []
[Question] [ ## Four integer sequences In this challenge, you will test four different properties of a positive integer, given by the following sequences. A positive integer **N** is 1. *perfect* ([OEIS A000396](https://oeis.org/A000396)), if the sum of proper divisors of **N** equals **N**. The sequence begins w...
[Question] []
[Question] []
[Question] []
[Question] []
[Question] []
[Question] []
[Question] []
[Question] []
[Question] []