text
stringlengths
180
608k
[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] [ Code [Python 3](https://docs.python.org/3/), 245 bytes ``` E=print def F(): B,C,A=1,1,1;yield 0 while True:yield B;B,C,A=B+C+A+1,C+A+1,A+1 C=int(input()) D=0 for A in range(C): E(end='*'*(C-(C-A)+1));B=A while 0<B:E(end=' '+chr(42+B)*B);B-=1 E();D+=1 for A in F(): if D==0:E(end=str(A));break D...
[Question] [ There is a sentence with many cats: ``` there is a cat house where many cats live. in the cat house, there is a cat called alice and a cat called bob. in this house where all cats live, a cat can be concatenated into a string of cats. The cat called alice likes to purr and the cat called bob likes to...
[Question] [ Assume that there is a number `a`. In every conversion of that number, the number can either convert itself to its value plus the value of one of its digits, or convert itself to its value minus the value of one of its digits. In this situation, find the minimum number of conversions one has to make ...
[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] [ In [my answer](https://codegolf.stackexchange.com/a/133638/72412), I have this code: ``` s.match(/[AEIOU]/) ``` This seems too verbose to check if a string is one of `A`, `E`, `I`, `O`, or `U`. I tried: ``` "AEIOU".includes(s) ``` But that's 1 byte longer. Can I do this in a shorter way? [Answ...
[Question] [ **Closed.** This question is [off-topic](/help/closed-questions). It is not currently accepting answers. --- This question does not appear to be about code golf or coding challenges within the scope defined in the [help center](https://codegolf.stackexchange.com/help/on-topic). Closed 6 years ag...
[Question] [ I've been using a library called Djangular recently, which integrates Django and Angular. After a while I thought 'Wouldn't it be fun to programmatically generate portmanteau?' Here are some examples (e.g. testcases): Django + Angular -> Djangular Camel + Leopard -> Cameleopard Spoon + Fork -> Sp...
[Question] [ Check out this challenge: <https://www.hackerrank.com/codesprint4/challenges/leibniz> (The competition has already ended, so I'm just curious about the Python solution, which the organizers refused to reveal, so this is not cheating in any way.) Modified from that page: > > In Calculus, the Leibniz ...
[Question] [ So the golf question was like this: > > You are given a number `T` and then a total of `T` number of 17-character strings. For each of the strings, output `yes` if it contains four consecutive identical characters or contains the substring `DX`, else output `no`. > > > The following constraints a...
[Question] [ # Input Two lists with binary values `(list_a, list_b)` of equal length=>3. # Output Two lists with binary values `(smoothed_a, smoothed_b)` with minimal Forward Difference while keeping the same sum before and after processing `sum(list_a) + sum(list_b) == sum(smoothed_a) + sum(smoothed_b)`. **Forwa...
[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/156421/edit). Closed 5 years ago. [Improve this question](/posts/156421/edi...
[Question] [ **This question already has answers here**: [Qeng Ho units of time](/questions/63056/qeng-ho-units-of-time) (8 answers) [Convert English to a number without built-ins or libraries](/questions/71681/convert-english-to-a-number-without-built-ins-or-libraries) (10 answers) Closed 6 years ago. ...
[Question] [ You must write a program that encrypts an input into a string of characters. For every character `i` in the input up to the second to last character, take the `i` and `i+1` characters and encode them by writing the letters of the alphabet, in order, that range in the same direction between those chos...
[Question] [ In *as few characters of code as you can*, create an algorithm which will pack *the least number of rectangles* necessary to *completely fill* a rasterized circle with integer radius *r* and return the parameters necessary to create each rectangle. ![I don't like cyan or pink, but here they are.](htt...
[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/15339/edit). Closed 7 years ago. [Improve this question](/posts/15339/edit)...
[Question] [ **Closed.** This question is [off-topic](/help/closed-questions). It is not currently accepting answers. --- Questions without an **objective primary winning criterion** are off-topic, as they make it impossible to indisputably decide which entry should win. Closed 4 months ago. [Improve this qu...
[Question] [ Input: a whole positive number greater than 4 Output: A whole positive number that describes the highest possible period an oscillator could have inside a square space of size (input)x(input) in a "life" grid that follows the rules of Conway's Game of Life. The oscillator never leaves this area throu...
[Question] [ Given infinite different integers, order them into a sequence \$a\_1, a\_2, a\_3, ...\$ such that \$a\_i>a\_{i+1}\$ iff \$i\$ is even(or odd, as long as it's constant for all possible inputs and all \$i\$). In other word, make the sequence go alternately up and down (or down first, as long as it's co...
[Question] [ [Choose a challenge from the Cops thread](https://codegolf.stackexchange.com/q/223158/45613), determine the third hidden message, and describe how the system works. Keep in mind limitations and possibilities available to Cops: * You are not expected to guess any cryptographic secrets or additional in...
[Question] [ In this task you are expected to provide a **list** output given an input [tq](https://github.com/A-ee/tq) program. The tq programs will not contain whitespace inside them. ## What is tq, in the first place? tq is a lazy-evaluated language that is designed with the idea that array items should be acc...
[Question] [ Given a positive integer input `n` seconds, output the time in human readable format. The time will be considered from 00:00:00, 1st January, 1 A.D. Leap years must be taken into account. Assume that the gregorian calendar was followed since the beginning. (Gregorian Calendar: Every year that is exac...
[Question] [ Your challenge is to implement a cyclic Program Sequence Generator (PSG) in a language of your choice. Given a language, *L*, a **PSG in *L*** is **a program in *L* that outputs a PSG in *L***. Some properties of a PSG are: * Repeated execution of a PSG in *L* generates a sequence of programs in *L*....
[Question] [ Your task is to print the titles of the questions with the five highest scores (upvotes minus downvotes) here on CodeGolf.SE, while skipping over any closed, locked and on-hold questions. Currently these are: ``` Produce the number 2014 without any numbers in your source code Showcase your language o...
[Question] [ ## Introduction Say you have a population of people. This population is made up of 100 Alices and 25 Bobs. So, 80% of the population are Alices and 20% are Bobs. We want to change the proportional makeup of the population to be 62% Alices and 38% Bobs. ## Rules 1. You can only add to the population. ...
[Question] [ Binary search is an algorithm that looks for an element in a sorted data-structure by constantly dividing the search space in half. ### [Rosetta Code](http://rosettacode.org/wiki/Binary_search) > > A binary search divides a range of values into halves, and continues to narrow down the field of searc...
[Question] [ # Exchange the Stacks! Write a program that can exchange any character from two stacks. In this challenge, a stack is a tower of characters. An example stack is below: ``` 1 a 4 d * c 3 ``` There are two stacks involved in the challenge and both are inputted when the program runs. The program will al...
[Question] [ **Challenge** For any given input **Y** of length >= 1024 bytes: * sort in ascending or descending order -- your choice * generate output **Q**, where **Q** = [*sorted data*] + [*restore information*] * restore **Y** using **Q** as input **Sorting Example** ``` input: [2, 5, 119, 0, 1, 223, 0, 118, ...
[Question] [ Let **N** be the set of nonnegative integers, i.e. {0, 1, 2, 3, ...}. Let c0(**N**) be the set of all infinite sequences in **N** that converge to 0, i.e. { (xn) ∈ **N****N** | xn → 0 as n → ∞}. c0(**N**) can be equivalently written as the set of all finite sequences of natural numbers, such that the...
[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 5 years ago. [Improve this que...
[Question] [ **Closed**. This question needs [details or clarity](/help/closed-questions). It is not currently accepting answers. --- **Want to improve this question?** Add details and clarify the problem by [editing this post](/posts/264987/edit). Closed 5 months ago. [Improve this question](/posts/264987/ed...
[Question] [ What tips do you have for golfing in [(,)](https://www.esolangs.org/wiki/(,))? I've found that there are so many ways to make code shorter, and I want more ways. I doubt there even are any tips for (,) that are applicable in the majority of programming languages, but if there are, feel free to includ...
[Question] [ **This question already has answers here**: [Largest Number Printable](/questions/18028/largest-number-printable) (93 answers) Closed 3 years ago. The goal is to raise the error message with the most bytes! The error message may not be generated by the program itself, such as Python's `raise`....
[Question] [ ## Challenge Given a `number width`, `number height`, `hours` and `minutes` print the time using the following format style: ``` ------ - ------ ------ - - ------ ------ ------ ------ ------ | | | | | | | | | | | | | | | | | ------ -----...
[Question] [ [![enter image description here](https://i.stack.imgur.com/k2Rbq.png)](https://i.stack.imgur.com/k2Rbq.png) (The text asks how many boxes there are in the picture) Now you are required to generate such a problem and its answer. # Input * an integer `n` * (optionally) random source of two values, in c...
[Question] [ # Robbers thread In this thread, your task is to find a non-recursive solution which produces the same integer series of a submission not marked as 'safe' in the **[Cops' thread](https://codegolf.stackexchange.com/questions/157396/this-challenge-is-about-recursion-cops-thread/)**. # Challenge synops...
[Question] [ [Proton](https://github.com/alexander-liao/proton) is a quite new language created by PPCG user [Hyper Neutrino](https://codegolf.stackexchange.com/users/68942/hyperneutrino). It is very similar to [Python](https://docs.python.org/3/), and has similar syntax to the language [Cheddar](http://cheddar.v...
[Question] [ Implement the Discrete Cosine Transform (DCT). This may implemented as either a function or a program and the sequence can be given as either an argument or using standard input. Your program must be able to handle sequences of any length (assuming a hypothetical version of your language which has no...
[Question] [ ## The shortest reliable password testing code **Introduction** I started playing Empire of Code recently, and there was some challenge. The player is supposed to write a piece of Python or Javascript code to detect if the string passed to it is reliable password, that is, it contains at least one lo...
[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/29998/edit). Closed 7 years ago. [Improve this question](...
[Question] [ A string of digits (positive integer) can be converted to plain English in various ways. For instance, 115 can be read as "hundredfifteen", "oneonefive", "elevenfive", "twoonesfive". So question's challenge is to output the shortest string representation for a given digits string. Rules: * The input...
[Question] [ You have two images (64x64 pixels each): ![saturated picture](https://i.stack.imgur.com/KHEHg.png) ![desaturated picture](https://i.stack.imgur.com/JrxBD.png) Your program must take the file names of each of them as command line arguments and determine which has more average saturation among their pi...
[Question] [ **Closed.** This question is [off-topic](/help/closed-questions). It is not currently accepting answers. --- Questions without an **objective primary winning criterion** are off-topic, as they make it impossible to indisputably decide which entry should win. Closed 9 years ago. [Improve this que...
[Question] [ For this problem you are given an \$n \times n\$ matrix of integers. The task is to find a pentagon in the matrix with maximum sum. The pentagon must include part (or all) of the x and y axes as two of its sides starting from the top left cell. All the sides except one must be horizontal or vertical....
[Question] [ Write an irreducible proper quine, i.e. a program that prints its own source code, which can't be reduced by removing characters to a shorter program with the same constraints. Eg. the python quine: ``` var='var=%r;print(var%%var)';print(var%var) ``` can be reduced to the quine ``` v='v=%r;print(v%%v...
[Question] [ What general tips do you have for golfing in 1+? I'm looking for ideas which can be applied to code-golf problems and which are also at least somewhat specific to 1+ (e.g. "remove unnecessary whitespace" is not an answer). Please post one tip per answer. [Answer] # Subroutines can have empty n...
[Question] [ [Inspired by this game](https://bubmet.itch.io/intercept) # Challenge: Given an ASCII art string representing a number, output that number. Example: ``` Input: &&&& ##### .====.. .&&& $$$$$. %% %% % % . +. . @@@ . @@ . = . = . ???? +++. && &&. % ...
[Question] [ > > This proposal had few attention for 8 months (though an answer was posted in the sandbox at that time), so I decided to post it anyway. > > > ## Introduction [Napier's bones](https://en.wikipedia.org/wiki/Napier%27s_bones) is a calculation tool, which helps speeding up the calculation of mult...
[Question] [ At the Code-Golf™ Psychological Society, you are delighted to present a new method of measuring mental age: *Abstract Capacity™*. To get the *Abstract Capacity* of a person, you take their actual age divided by 4, take their IQ divided by 9, then add the two values together. Then, round this sum down...
[Question] [ Note that this is similar to [my other challenge](https://codegolf.stackexchange.com/questions/117894/split-words-split-words), but it is widened to be similar to most challenges (input -> truthy/falsey), instead of asking you all to brute force something. If this makes it a dupe, let me know, but I ...
[Question] [ Given a ray with a point and a vector and a plane with a point and a normal vector to the plane. You have to find the intersection point of the plane and the ray.. So your job if you choose to accept is to write a shortest function that will do the job. ``` RULES: The submission must be a complete pr...
[Question] [ The challenge is to assign people to tasks randomly~. From stdin you get 2 lines. Line one is a comma-separated list of names. Line 2 is a comma-separated list of jobs. The output required is one line per task person combo. The line should be formatted as Name:task. If there are not enough people for...
[Question] [ # Scenario: Imagine a situation where you wish to share a unique alphanumeric code. Perhaps it is a one-time-use coupon code you hand write on business cards, or some other scenario where it is desirable to have a code where mis-keying the entry is unlikely to produce valid result and the another val...
[Question] [ **Closed.** This question is [off-topic](/help/closed-questions). It is not currently accepting answers. --- Questions without an **objective primary winning criterion** are off-topic, as they make it impossible to indisputably decide which entry should win. Closed 7 years ago. [Improve this que...
[Question] [ **Challenge:** A cipher (which is a positive integer) which has any substring not divisible by 2, or has a substring divisible by 11 (other than 0), is defined as 'bad'. All other ciphers are defined as 'good'. Find the kth cipher, in ascending order, which is 'good'. **Input format** The first line ...
[Question] [ I am working on making a minimalistic personal testing website to conduct various experiments for my role at work. I'd like to add a couple of bells and whistles to it, particularly a slideshow that cycles between several images. I could just as easily grab a plug-in, but I'd like to promote this Sta...
[Question] [ I am constantly frustrated by how complicated it is to write graphical programs that would have been only a few lines of code 20+ years ago. Since the invention of the mouse this has become even worse it seems. I was hoping someone could put me out of my misery and show the shortest code to do the fo...
[Question] [ I wanted to make a challenge to do the full [DES](http://en.wikipedia.org/wiki/Data_Encryption_Standard) encryption algorithm, but that may be a bit too involved to get a ton of participation. This challenge is to simply generate the 16 48-bit subkeys used to encrypt data: ![key schedule](https://i.s...
[Question] [ This question [may not be that creative](https://codegolf.stackexchange.com/questions/5839/convert-infix-expressions-to-postfix-notation), but I believe that it is different enough to pose a new challenge. ## The Challenge Your challenge is to write the shortest program possible that can take any val...
[Question] [ I'm a code golf novice, but I'm eager to give it a go. My challenge is: Write the shortest program in C which takes in a date `D` as input and outputs the date `D + 1 day` **Rules:** * program must compile only with `gcc progname.c -o progname` So no compiler/makefile tricks (if there are any) - comp...
[Question] [ # What am I? As a plant cell, your program/function/etc. must undergo photosynthesis: When the input is `6CO2+6H2O+light` in any order, output `C6H12O6+6O2` in any order. It does not have to be the same for each arrangement of the input. When the input is just `r`, replicate (i.e. output your ow...
[Question] [ Your program should take two lists, where each entry (a positive integer) represents the number of members of some group, as input. These lists will have the same sum but may have different lengths. Your mission, should you choose to accept it, will be to pair up members of the first list with member...
[Question] [ Chat room: <https://chat.stackexchange.com/rooms/106513/easter-bunny-challenge> Git repo: <https://github.com/AJFaraday/easter_bunny_hunt> The garden is a 2-dimensional grid with 49 rows and 49 columns. The Easter Bunny™️ is in the center of the garden, minding his own business, holding on to 100 Eas...
[Question] [ **This question already has answers here**: [Evaluate the nth hyperoperation](/questions/11520/evaluate-the-nth-hyperoperation) (15 answers) Closed 5 years ago. # Introduction > > In mathematics, the hyperoperation sequence is an infinite sequence of arithmetic operations (called hyperoperati...
[Question] [ A game of 2048 goes like this: * Every move you get another piece - either `2` 90% of the time, or `4` 10% of the time * for each 2 equal pieces combined you get a piece of the sum of the two and the sum gets added to your score # Your task given a board of a 4x4 game, give the average score of what ...
[Question] [ I'm always forgetting Pokemon type matchups. This is a challenge to print the pokemon type chart! ``` Attacking Type No Fi Fl Po Gr Ro Bu Gh St Fr Wa Gr El Ps Ic Dr Da Fa Normal 1.0 2....
[Question] [ # Introduction There are often times that we have challenges which require communication of some sort (such as in team KOTH), where density of information may be more important than density of code. There are a number of compression techniques that can allow us to convey more information in less spac...
[Question] [ Note: all array references in this post are zero-indexed. When playing the piano, two notes on the same key must be pressed with two different fingers. You *could* use the same finger, but it doesn't sound as good. At least, according to my piano teacher. I can't hear any difference. The challenge is...
[Question] [ **This question already has answers here**: [Make a slow error quine maker!](/questions/51007/make-a-slow-error-quine-maker) (13 answers) Closed 5 years ago. We've been twice challenged to make 'error quines' (see [Make an error quine!](https://codegolf.stackexchange.com/questions/36260/make-a...
[Question] [ **Closed.** This question is [off-topic](/help/closed-questions). It is not currently accepting answers. --- Questions without an **objective primary winning criterion** are off-topic, as they make it impossible to indisputably decide which entry should win. Closed 9 years ago. [Improve this que...
[Question] [ Consider some arbitrary polynomial with integer coefficients, $$a\_n x^n + a\_{n-1}x^{n-1} + \cdots + a\_1x + a\_0 = 0$$ We'll assume that \$a\_n \ne 0\$ and \$a\_0 \ne 0\$. The solutions to this polynomial are [algebraic numbers](https://en.wikipedia.org/wiki/Algebraic_number). For example, take the...
[Question] [ Your task, at the moment that you choose to accept it, is to write a program that, when given a string and a PCRE-regex, calculates the minimum Levenshtein distance to another string that matches the regex (fully). All strings, as well as the regexes, should be in the Latin-1 character set. This is `...
[Question] [ **Step one** In a new google sheet insert an image into cell A1 with Insert > Image > Image In Cell **Step two** Create a formula to return TRUE (if the cell contains an image) and FALSE (if the image is missing) **Rules** Only vanilla formulas are allowed. The shortest code in bytes wins. [An...
[Question] [ # The task Given an ascii string, output a program in my esolang MAWP that outputs the inputted string when run. # Useful functions in MAWP ``` Numbers from 0-9: Pushes the number to stack M Takes the top two numbers off stack and pushes the sum to stack A Takes the to...
[Question] [ # Introduction Little Jimmy is going trick or treating. He lives in an odd neighborhood: some houses give out candy, and some give out toothbrushes. Now, Jimmy does not want to get too many toothbrushes. He wants candy! You must help him get some. # Challenge Each street in Jimmy's neighborhood has ...
[Question] [ This is the robbers' thread, the cops' thread is [here](https://codegolf.stackexchange.com/questions/172219/polycops-and-robbers-cops-thread) --- A polyglot is a program, that without modification, can run in multiple languages. --- # Robbers' Challenge First, find a vulnerable cop's answer, then try...
[Question] [ Given positive integer `n` and `e`, knowing that `e<n` and that `n` is the product of two different odd primes(but the primes are not directly given to you), find such a positive integer `d` smaller than `n` that, for each integer `m`, (me)d ≡ m (mod n). Your program should handle `n` up to 24096 in...
[Question] [ We are doing a PCG challenge at work, and I'm submitting answers in C#. This is a modification of the "M'Kay" challenge. My solution has been deemed correct by the requirements, I'm just trying to shrink it further if possible. > > A filler word is an apparently meaningless word, phrase, or sound th...
[Question] [ Given a list of production rules and start symbol of a proper finite context-free grammar (CFG) of printable characters, your program or function must output its formal language (the set of all sentences which can be constructed from it). ## Task A context-free grammar is formally defined as a 4-tupl...
[Question] [ **This question already has answers here**: [Full Width Text](/questions/75979/full-width-text) (146 answers) Closed 6 years ago. **Challenge** An ascii string is made 'dank' when exactly one space is inserted between any two consecutive letters and all capital letters are replaced with lowerc...
[Question] [ ## Challenge Given the equation of a line and the coordinates of the vertices of a shape, output the coordinates of the shape when reflected across the given line. ## Further Information The line's equation will be given with a `y` and an `x` separated by an equals sign (there may not always be a `y`...
[Question] [ Write the shortest parser for the grammar: ``` M -> M + n | n ``` * Output must be some representation of a structured value representing the concrete syntax tree produced by the input `n+n+n`. * The code to produce the textual output from the structured value is not necessary. * The code to read/val...
[Question] [ A typing speed test loads up a dictionary of words, and gives you one to type: `pinball`. You, with your fast but inaccurate fingers, type in `pinbnal`. Darn it! Make a program that will print out a random word from a dictionary, then ask for the user to type this word back, and finally return whethe...
[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/2211/edit). Closed 8 years ago. [Improve this question](/...
[Question] [ # Challenge Create a 3D word puzzle where the cube's dimensions match the length of the input word. The uppercase word (A-Z) must be validly placed within the cube in one of the fixed orientations: horizontally, vertically, or diagonally. The program should randomly place the hidden word and fill the...
[Question] [ # Code Golf Challenge Given a string of 10 characters: `'abcdefghij'` I want to format it in this pattern and print it in the console in a minimum number of characters: `(abc) def-ghij` My solution: ``` print(f"({s[0:3]}) {s[3:6]}-{s[6::]}") ``` [Answer] # [Python 3](https://docs.python.org), ...
[Question] [ I've looked and could not find a post for this, if there is one, I'll remove it quick! [Related](https://codegolf.stackexchange.com/questions/9276/c-replace-aes-fips-197-subbytes-table-by-constant-time-code) and [also related](https://codegolf.stackexchange.com/questions/48052/decrypting-a-block-of-a...
[Question] [ Maximillian is the chief commander of the Great Greek Army and he is leading his forces into a crucial war with Spain. If all the enemy soldiers stand in a straight line incrementally marked starting from position `1`, and a particular soldier at position \$i\$ dies, the soldiers at position \$2i\$ a...
[Question] [ **This question already has answers here**: [Golf a mutual quine](/questions/2582/golf-a-mutual-quine) (17 answers) Closed 4 years ago. # Challenge Create 2 programs A and B * The output of program A is exactly program B * The output of program B is exactly program A * Neither program should d...
[Question] [ Let me know if this task has already been posed. I haven't found it when I looked. --- ### Input * ***master sequence \$\ X = x\_1\dots x\_n\$***: sequence of characters, eg. \$\rm international\$ * ***subsequence \$\ Y = y\_1\dots y\_m\$***: sequence of characters, eg. \$\rm intl\$ ### Output Num...
[Question] [ This wasn't originally intended for code-golf, just as a little debugging routine to roughly visualize something "goofy" going on in a model of some (irrelevant here) physical process. But when I saw how surprisingly short it was, compared to my expectations, I just wondered if it can be further shor...
[Question] [ Make a quine. Simple enough, except it has to be a palindrome and accept input. Now, any side of a palindromic quine is one half of it. For example, one side of the hypothetical quine AAAA is AA. One side of AAAAA is AA (the center symbol is ignored). Your job is to make a quine like this that accept...
[Question] [ This is similar to the alignment used in word. ### Task 3 inputs: A 1 line string, a positive integer `k`, and direction (left or middle or right) Your job is to insert new lines(`\n`) and spaces in the string such that every line has `k` characters in it and aligned to the direction given. ### Rules...
[Question] [ **This question already has answers here**: [Modular multiplicative inverse](/questions/140357/modular-multiplicative-inverse) (25 answers) Closed 6 years ago. In this thread we use 32-bit signed integers (assuming the usual [two's complement](https://en.wikipedia.org/wiki/Two%27s_complement))...
[Question] [ **This question already has answers here**: [Fluctuating ranges](/questions/74855/fluctuating-ranges) (20 answers) Closed 6 years ago. Take an input list **L** containing positive integers, and insert the least amount of integers into the sequence, so that you make it a continuous one. ### Exa...
[Question] [ *This is the robbers' post. The cops' is [here](https://codegolf.stackexchange.com/q/140863/58826).* Your challenge is to take a cop's post and find an input that the regex matches but the program returns a falsey value. Once you have cracked a cop's post, comment in a link to your crack. (If you don...
[Question] [ The Straddling Checkerboard is a method for converting letters to numbers and was part of a pencil an paper cipher known as [VIC](https://en.wikipedia.org/wiki/VIC_cipher#Straddling_checkerboard) To convert letters to numbers first you have to make a checkboard like this: ``` 0 1 2 3 4 ...
[Question] [ **This question already has answers here**: [Balanced Ternary Converter](/questions/41752/balanced-ternary-converter) (20 answers) Closed 6 years ago. Mr Seckington is a mobile grocer. He drives his van door-to-door selling his produce all around the nearby villages. Mr Seckington needs a meth...
[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/108860/edit). Closed 7 years ago. [Improve this question](/posts/108860/edi...
[Question] [ Given two input integers, `a >= 4` and `b >= 2`, output an ASCII square of size `a x a`. The twist is the square must be constructed of `b` `3 x 3` squares formed like the following: ``` ### # # ### ``` You can use any ASCII printable character (except whitespace) to construct the smaller squares. I'...