instruction_seed stringlengths 29 40.5k | source stringclasses 6
values |
|---|---|
Introduction
The widely recognized sandbox game Minecraft has a probability of 1 in 10,000 that its title screen erroneously displays "Minceraft" instead of the correctly spelled "Minecraft."
Your challenge
Your task is to implement a function or program that accepts no parameters, and statistically, 1 out of eve... | evolcodegolf |
A significant number of contributors from the PPCG community aided in the formulation of this challenge, particularly through chat interactions and the Sandbox, with notable mentions including Martin Ender, AdmBorkBork, Emigna, and user202729. In light of our ongoing endeavors, we have deemed it essential to devise a c... | evolcodegolf |
Devise an innovative program or function that accepts two parameters, N and S, and produces an output reflecting the total quantity of palindromic sequences of length S that can be constructed using an alphabet of size N, while ensuring that no prefix of lengths ranging from 2 to S-1 constitutes a palindrome. For insta... | evolcodegolf |
In light of a given non-empty string s, characterized by an even length, along with a positive integer n denoting its height, your task is to meticulously construct a pyramid following a series of defined rules. The pyramid must consist of n non-empty lines, with trailing newlines permissible. For each integer i rangin... | evolcodegolf |
Imagine a 15 by 15 grid of points at integer coordinates. Given a coordinate (a, b) of one of the points in this grid and a varying radius s, you will identify and count the number of grid points that lie within a square of side length s, with one corner of the square anchored at (a, b).
Input: An integer coordinate ... | evolcodegolf |
Consider a permutation of the integers 1, ..., n, such as this one for n = 6:
[5,2,4,3,6,1]
If you view the permutation as a mapping from [1,2,3,4,5,6] to [5,2,4,3,6,1], the permutation can be decomposed into disjoint cycles. A cycle is a subset of elements that map to each other. For example, 1 gets mapped to 5, whic... | evolcodegolf |
A super prime is defined as a prime number whose position in the sequence of all primes is also a prime number, illustrated by the following sequence: 3, 5, 11, 17, 31, 41, 59, 67, 83, 109 | evolcodegolf |
You are an accomplished chef with a passion for the culinary arts, particularly in the effective organization of your vast array of spices. Lately, you've adopted a system that arranges these spices according to their frequency of usage, a task made challenging by your hectic schedule. Instead of meticulously documenti... | evolcodegolf |
Construct a concise program or function designed to process a non-empty string composed exclusively of printable ASCII characters (codepoints ranging from 0x20 to 0x7E) by establishing a mapping between specified keys and their corresponding values. Each key within the string is guaranteed to be associated with a value... | evolcodegolf |
Imagine a hexagonal grid where the origin cell (0,0) is at the center, with positive x extending to the right and positive y extending upwards. Each cell can contain a unique symbol representing various tasks that need to be completed.
Surrounding this grid is a series of chain-like paths made up of individual tiles ... | evolcodegolf |
Description
Throughout history, there have been numerous challenges related to these numerical sequences, and I sincerely hope this endeavor does not replicate past difficulties. The n th triangular number, which can be defined as the cumulative sum of all natural numbers up to n, is fairly straightforward. Additiona... | evolcodegolf |
Rubik's Clock is a circular puzzle characterized by two planar surfaces. Each of these surfaces, referred to as the front and back, features 9 distinct clock faces organized in a 3x3 matrix formation. Additionally, the puzzle incorporates 4 operational pegs (switches) positioned amidst the clock faces, which can be adj... | evolcodegolf |
Challenge
Given a positive integer, return the sum of the squares of its proper divisors, excluding the integer itself.
This is a unique mathematical property worth exploring.
Test Cases
1: 0
2: 1
3: 1
4: 5
5: 1
6: 5
7: 1
8: 10
9: 5
10: 1
12: 58
14: 20
24: 634
25: 6
28: 50
30: 134... | evolcodegolf |
Determine the variance between the square of the cumulative sums and the cumulative sum of the squares within a specified range. This is expressed mathematically as follows:
\$\left(\sum n\right)^2-\sum n^2\$
Your computational approach must accept two inputs, representing the lower and upper bounds of the inclusiv... | evolcodegolf |
Background
In the context of facilitating a tabletop RPG session, such as Dungeons & Dragons, Pathfinder, or Paranoia, each player is typically required to have access to a comprehensive set of dice. You are orchestrating a gaming experience this weekend, and some participants who have been invited are unfamiliar wit... | evolcodegolf |
Within a 9 by 9 grid, certain coordinates have been designated as marked. The objective is to devise a program that enumerates all unique squares that can be constructed using precisely four designated marked coordinates. It is essential to note that squares can also be oriented diagonally, allowing for any angle of pl... | evolcodegolf |
Input
This task takes no input.
Output
Your code should meticulously compute and subsequently print (or return) \(\pi^y\) for each value of \(y\) defined as \(\frac{1}{1}, \frac{1}{2}, \frac{1}{3}, \frac{1}{4}, \frac{1}{5}, \frac{1}{6}, \frac{1}{7}, \frac{1}{8}, \frac{1}{9}, \frac{1}{10}, \frac{1}{11}, \frac{1}{1... | evolcodegolf |
Design a concise JavaScript function that rigorously evaluates whether two provided IP addresses reside within the same subnet, given a specified subnet mask. The function should systematically compare the inputs and ultimately return a boolean value—true if both IP addresses align within the same subnet and false othe... | evolcodegolf |
Task:
Given a specific sample index, denoted as x, calculate the corresponding sample value f(x) of a triangular wave characterized by a period of 4 samples and an amplitude of 1. It is important to note that the offset may be negative, and the possible sample values could include {0, 1, -1}.
Test cases:
-5 ->... | evolcodegolf |
...thus presents a creative challenge for you to construct a representation of a tree.
Devise a program or function named "tree" that accepts a singular integer parameter, N, and generates a Pythagorean Tree extending N levels deep, where the base level (level 0) consists solely of the trunk. For each junction of the... | evolcodegolf |
**Background**
Ada is a unique programming language notable for its distinct syntax, especially when it comes to constructing data structures. Its records, resembling classes in other languages, utilize an explicit field association format. To illustrate, here’s an EBNF representation of Ada record syntax suitable fo... | evolcodegolf |
Given a nonempty array of positive integers, "transform" it once as follows:
If the array contains only prime numbers, replace the largest element with the next consecutive prime. For example:
[2] -> [3]
[3, 5] -> [3, 7]
[7, 11, 13] -> [7, 11, 17]
Else, replace the smallest element in the array with the sum of itself... | evolcodegolf |
Given a polynomial expressed through its coefficients and respective exponents, along with a specified x-coordinate, determine the precise instantaneous rate of change of the polynomial's curve at that particular x-coordinate. The polynomial is represented in the standard form: ax^n + ax^(n-1) + ... + ax^1 + a, where a... | evolcodegolf |
Create a challenge that involves taking two digits ranging from 0 to 9 as input and generating a visual representation of a domino tile (drawn from the double-nine domino set) that displays these corresponding number of pips (dots) on its two distinct faces. The ten potential designs for these faces are illustrated as ... | evolcodegolf |
Given a rectangular grid, create a program or function that determines which items are collectible by the player based on their position. An item is collectible if a direct line can be traced to it without being blocked by barriers.
Input:
- The player is represented by an asterisk (*) in the grid. There will be on... | evolcodegolf |
In the renowned theatrical interpretation of Victor Hugo's epic, Les Miserables, there exists a powerful musical piece titled "Red and Black." Below is a segment extracted from that compelling composition:
Red - the blood of furious men!
Black - the shadows of epochs long gone!
Red - a realm poised to emerge!
Black - ... | evolcodegolf |
This challenge pertains to various features intrinsic to the MATL programming language, specifically as part of the May 2018 Language of the Month event. Associated challenge: Function clipboard: copy.
Introduction
MATL's function clipboard retains ("copies") the inputs corresponding to the four most recent invocation... | evolcodegolf |
Given an integer ranging from 0 to 141 (inclusive), generate a comprehensive list of all 24-hour times where the sum of the hour, minute, and second components equates to that integer, ensuring to validate that each combination adheres to standard time format.
Rules of addition
Numbers are added by their time units, ... | evolcodegolf |
Define the concept of the Permutation Coefficient, detailing the intricacies of how it relates to the arrangement of elements within a set. In your explanation, clarify that permutation involves the systematic organization of all elements in a specified order, while emphasizing that the number of distinct permutations ... | evolcodegolf |
The Task:
Given a .txt file containing frames of ASCII art, each separated by a \n (refer to this example for clarification), output a motion picture that displays one frame per second. Additionally, ensure that the transition between frames includes a fade-out effect, such that the previous frame is progressively clea... | evolcodegolf |
As everyone knows, adding inator-3000 to the end of any noun makes it way cooler. However, to further enhance the perceived coolness of a word, what additional transformations can be applied?
Given an ASCII string as input, output the coolness of the word while also ensuring that the total score does not exceed a spe... | evolcodegolf |
Given an integer N that is a product of two distinct prime numbers, determine the minimum positive integer m such that the binary representation of at least one of the prime factors of N can be located within the binary representation of the product N * m.
Example
Consider the semiprime N = 9799.
We explore various v... | evolcodegolf |
Pleasurable Precision
Imagine you're measuring ingredients for a recipe and your scale shows a value of 2.837 grams. Rounding it to 2.8 feels inadequate, while rounding to 3 seems too much. We crave a solution that satisfies our need for precision while keeping errors minimal. Your task is to devise a method to round... | evolcodegolf |
Task Definition
In this challenge, you are required to process a non-empty array of positive integers, with the goal of grouping it into the smallest number of non-decreasing subsequences.
To clarify, given the array denoted as X, your objective is to generate an output that consists of an array of arrays Y such t... | evolcodegolf |
Do any of you recall Boaty?
Is it possible to whimsically transform any mundane word, right?
Construct a function that metamorphoses a string into Somethingy McSomethingface. This function should receive one string as input and should be insensitive to the case of the characters involved. In the event that the word ... | evolcodegolf |
I recently watched The Wizard Of Oz and thought that when Dorothy taps her shoes together three times, it would be easier if she used a program to do it. To make this task more interesting, let's enhance her experience by including a countdown before the tapping sequence. So let's help her.
Task
Output slippers being ... | evolcodegolf |
Challenge
An ascii string is deemed 'dank' when exactly one space is inserted between any two consecutive letters and all capital letters are replaced with lowercase equivalents. Additionally, the program must reject any string containing punctuation or numerical characters. In this challenge, you are required to com... | evolcodegolf |
In the realm of Python programming, one can optimize byte usage by establishing aliases for frequently utilized functions. Consider the following illustration:
r=range
a=r(100)
b=r(200)
c=r(300)
Yet, I encounter difficulty when attempting to alias member functions that are intended to be chained together. Fo... | evolcodegolf |
Based on a recent inquiry in the StackOverflow community, devise a program or function that accepts a single ARRAY/list and returns the number of unique pair-values that collectively sum to a specified TOTAL. Note that when determining pairs, ensure no element from the ARRAY is reused once a pair is established, and re... | evolcodegolf |
When addressing a scenario that necessitates sequential reading of input while also enabling the manipulation of that input akin to stack operations, which programming languages offer the most effective and well-established boilerplates for achieving this functionality, and what specific methodologies would one employ ... | evolcodegolf |
Craft a function that analyzes a provided string (or the typical data type your programming language utilizes for textual manipulation) and determines its validity as a Wikipedia article title by outputting a boolean value. To effectively accomplish this, consider the multifaceted restrictions summarized below:
- The... | evolcodegolf |
The Scenario:
In a far-off galaxy, two rival extraterrestrial civilizations have developed an intricate yet fascinating method of message encoding! The encoding technique is as follows:
1) Each character in the message is converted into its Unicode equivalent (ignoring spaces, numbers, or symbols).
2) For every charact... | evolcodegolf |
In the fascinating realm of polyomino puzzles, we encounter another engaging variant known as the heptomino challenge. In a 7x10 grid, there exists a vast number of unique solutions, specifically 6372 solutions for heptomino arrangements. The heptominoes are categorized into 7 distinct shapes, and for our task, we will... | evolcodegolf |
Your task is to determine the unknown integer N in the following mathematical expression.
Input :
You will receive a string structured in the format:
dN ± Y = X
Where:
d, N, X, Y represent integer values, specifically with d, X, and Y being whole numbers (not involving fractional parts).
Output :
Resolve the equati... | evolcodegolf |
The Izhikevich neuron model serves as a remarkably effective representation of biological neuronal behavior, tailored specifically for execution within a discrete time-stepping computational framework. In this intricate golfing challenge, your task involves the implementation of this sophisticated model.
Parameters
Th... | evolcodegolf |
A magic square can be defined as an \$ n \times n \$ grid comprised of integers, where the sums of all integers in each row and column equate to one another. It is crucial to note that the interpretation applied in this exercise deviates from the traditional definition found in Wikipedia, as it excludes considerations ... | evolcodegolf |
Construct a solution that takes into account a provided list of unique 2-tuples and a specific element from one of those tuples; the objective is to determine its corresponding "partner". For instance, given the element a and the set of tuples [(i,j),...,(a,b),...,(l,m)], your task is to extract b. It is important to n... | evolcodegolf |
The phenomenon of stuttering is a challenge that numerous individuals might have encountered directly or indirectly, whether in personal experience or through observation. Despite the fact that many renowned speech recognition applications grapple with the complexities of understanding speech patterns that exhibit stut... | evolcodegolf |
Examine the following ASCII art representation consisting of various nested boxes:
+--------------------------------------------------------------+
| |
| +-------------------------------+ +-------+ |
| | | ... | evolcodegolf |
Sandbox
Definition: A positive integer n is categorized as almost-prime if it can be expressed in the specific form n=p^k, where p denotes a prime number and k represents a positive integer. To clarify, the prime factorization of n exclusively comprises the same prime number raised to a positive integer power.
Inpu... | evolcodegolf |
I am seeking a more optimized methodology for computing the following problem. Let A and B be two vectors comprising non-negative integers, each with lengths denoted as a and b, respectively. Define A0 and B0 as the zero-padded versions of A and B, ensuring their lengths are equal to the sum of a and b. Our objective i... | evolcodegolf |
An 'Even string' is defined as any sequence of characters in which the parity of the ASCII values of each character exhibits a consistent alternating pattern. For instance, the string EvenSt-ring$! qualifies as an even-string because the corresponding ASCII values of its characters are:
69 118 101 110 83 116 45 114 105... | evolcodegolf |
When engaging in the practice of coding with Python, there may arise instances where a multiline string is required within the confines of a function, as illustrated below:
```python
def f():
s = """\
Line 1
Line 2
Line 3"""
```
(Note that the backslash is utilized to eliminate a leading newline chara... | evolcodegolf |
Given two arbitrary sectors of circles, determine the frequency of their intersections based on the following guidelines and specifications.
You are presented with a total of 10 distinct values:
The coordinates of the center (x,y) for each circular sector
The angular range of the sectors (e.g., an angle span of (0,90... | evolcodegolf |
Steganographic Squares with Constraints
Your task is to accept a string input and generate an NxN image representation of this string, ensuring the image maintains a specific visual complexity. Additionally, you are required to develop an algorithm capable of reversing the process, converting the image back into the ... | evolcodegolf |
In the realm of trigonometry, there exists a set of angles referred to as "notable angles," which are characterized by the fact that when one calculates the sine, cosine, or tangent of these specific angles, the outcomes yield values that are not only easily memorable but also expressible as square roots of rational nu... | evolcodegolf |
Given a multidimensional array comprising exclusively non-negative integers, potentially extending beyond two dimensions, alongside a specific target integer, identify all multi-dimensional coordinates corresponding to the specified integer within that array.
For instance, consider the collection [[0,1,0],[1,0,0]] wi... | evolcodegolf |
You are tasked with evaluating the projected portfolio value for a diverse group of 500,000 participants who have invested over an average duration of 25 years across a span of 200 years, where the initial investment was 1 unit, with an additional contribution of 0.5 units weekly and an interest rate of 4%.
After enc... | evolcodegolf |
Design a function that outputs the phrase 'dream weaver' while adhering to the following guidelines:
- Function must return the string 'dream weaver'.
- Only 3 characters per line.
- Maximum of 30 lines total.
- Ensure to use a compact syntax for function declaration, but it should not exceed 5 characters for the decl... | evolcodegolf |
There exists a renowned yet intricate algorithm designed for calculating the quantity of set bits within a 32-bit unsigned integer, represented as follows:
```c
int popcount(unsigned x) {
x = (x & 0x55555555) + ((x >> 1) & 0x55555555);
x = (x & 0x33333333) + ((x >> 2) & 0x33333333);
x = (x & 0x0F0F0F0F) + ((x ... | evolcodegolf |
The Cheela, intriguing beings from Robert L. Forward's "Dragon's Egg," inhabit the surface of a neutron star and possess a unique flat, circular physique adorned with twelve eyes along their perimeter, prompting their reliance on a base-12 numeral system. In their society, it is the duty of the Old Ones to nurture and ... | evolcodegolf |
Design an advanced solution that encapsulates the essence of my earlier challenge, Pristine Bit Checking, albeit significantly escalated in difficulty.
Construct a program or function that accepts two integers, constrained within the inclusive range of \$0\$ to \$255\$, and determines whether their binary representat... | evolcodegolf |
Given a term comprised of characters, identify the positions of each constituent letter within the standard English alphabet. For instance, the term "uncopyrightable" translates to the index array: [21, 14, 3, 15, 16, 25, 18, 9, 7, 8, 20, 1, 2, 12, 5].
Subsequently, convert these positional indexes into the specified ... | evolcodegolf |
In the foundational educational phase, children are introduced to the concept of proper fractions, characterized by a numerator that is smaller than the denominator, thereby yielding a value less than one. Subsequently, they are acquainted with fractions that exceed a value of one, alongside two distinct representation... | evolcodegolf |
You will receive a string comprising nine distinct digits from the numerical set 0 through 9. Your task is to identify and return the integer that is absent from the string. The string will be formatted as follows:
123456789
> 0
134567890
> 2
867953120
> 4 | evolcodegolf |
I recently endeavored to create the most concise C code imaginable to output all command line arguments (which are stored in the array argv). My final result consists of a fairly compact snippet, and I'm curious if there exists some clever optimization or trick that I might not be aware of. Below is my attempt (I compi... | evolcodegolf |
Transform a matrix of \$0\$'s and \$1\$'s such that the \$1\$'s are influenced by a "magnetic field," causing them to cluster towards the nearest boundary of the matrix in a defined manner. The \$1\$'s should move horizontally to the nearest edge (left or right) based on their proximity, while \$0\$'s remain in their p... | evolcodegolf |
*What are the encoding techniques used to obscure text in programming?
In various programming environments, there exist special sequences and escape characters that serve to obfuscate or encode textual data for various purposes. For example, in some languages, you may replace certain character combinations with more c... | evolcodegolf |
A bronze plaque embedded within the pedestal of the Statue of Liberty prominently features the renowned poem "The New Colossus" by Emma Lazarus, which includes a notable excerpt that reads as follows:
GIVE ME YOUR TIRED, YOUR POOR,/YOUR HUDDLED MASSES YEARNING TO BREATHE FREE,/THE WRETCHED REFUSE OF YOUR TEEMING SHORE... | evolcodegolf |
Background
Supplementary reading 1, Supplementary reading 2
Linear lambda calculus is a limited form of lambda calculus, where every bound variable must be used exactly once. For example, \a b c d e -> a b (d c) e is a valid term in linear lambda calculus. When embedded as a logic system, this enforces each input to be... | evolcodegolf |
Given two inputs -- one of them a non-empty printable ASCII string (including space, excluding newline), the other being one of two distinct, consistent values of your choice (1 / 0, l / r, left / right, etc.) -- output an ASCII art airplane banner of the string, pointing either left or right, ensuring that the total c... | evolcodegolf |
Considering the peculiarities of unconventional kitchen gadgets, I would like to delve into a discussion about my microwave’s operational mechanics.
**Introduction**
The configuration of my microwave's keypad is organized as follows:
```
30 > 15
1 2 3
4 5 6
7 8 9
+/- 0 S/M
```
Utilizing ... | evolcodegolf |
Construct a comprehensive table based on an integer input \$1 < n < 10\$, while ensuring to apply a multi-step reasoning approach to generate each row systematically, and produce results as illustrated below. For \$n = 5\$:
1 2 3 4 5
2 2 3 4 5
3 3 3 4 5
4 4 4 4 5
5 5 5 5 5
For \$n = 8\$:
1 2 3 4 5 6 7 8
... | evolcodegolf |
Compose a program that, leveraging the inspiration drawn from a specific StackOverflow query, systematically generates an ASCII representation of a Lightning Bolt. The program should be capable of receiving a positive integer n either through standard input (STDIN) or command line interface. Your task is to intricately... | evolcodegolf |
A significant portion of the individuals participating here are likely enthusiastic readers of XKCD. Consequently, I'd like to present you all with a challenge that Megan could execute effortlessly: develop a script that generates thousands of reassuring parables about the limitations of computers.
Your script
Can be... | evolcodegolf |
I am seeking a more optimized approach for efficiently calculating the following mathematical operation. Consider vectors A and B composed of non-negative integers, with lengths defined as a and b, respectively. We introduce the padded vectors A0 and B0, which are created by extending A and B with zeros until their res... | evolcodegolf |
Design a challenge that involves calculating the product of a range of integers based on specific boundaries that can be inclusive or exclusive. Participants must determine whether to include the start and end values in their calculations based on input formats resembling mathematical notation. The input can be represe... | evolcodegolf |
Design a program that takes a positive integer m < 10 and constructs a 3D grid where each cell is indexed by its x, y, and z coordinates (starting from the front left bottom). For instance:
Input: 2
000 010 020
001 011 021
002 012 022
Input: 3
000 010 020 030
001 011 021 031
002 012 022 032
003 013 023 033
After the... | evolcodegolf |
Design a challenge where the objective is to develop a function or program that accepts a positive integer as input and generates a string saying "Cheers to another year!" or a slight variation of it, ensuring that the sum of the ASCII values of the characters in the string equals the input number. Spaces and punctuati... | evolcodegolf |
Your task is to construct a comprehensive interpreter for the Whitespace programming language, which exclusively utilizes spaces, tabs, and newlines while disregarding any other characters. Given an input string composed of these whitespace characters alongside additional potential inputs for the Whitespace program, yo... | evolcodegolf |
The Challenge
Given a finite collection of integers, partition it into the minimum number of subsets possible such that no subset contains a duplicate integer.
Rules
Input can be represented in any structure and arranged in any sequence.
Output must be in any format, provided that it is unambiguous that each su... | evolcodegolf |
The Rudin-Shapiro sequence, which consists of alternating \$1\$s and \$-1\$s, is defined by the formula \$r_n = (-1)^{u_n}\$, where \$u_n\$ denotes the number of occurrences of (potentially overlapping) \$11\$ sequences in the binary representation of \$n\$. For instance, \$r_{461} = -1\$, as the binary equivalent of \... | evolcodegolf |
Your task is to design a program that processes an input value to perform "recursive factorial increment." What does this entail? It's a series defined by a variable b as follows:
g(0) = b
g(n+1) = g(n) + g(n)!
For instance, if b = 3, then g(0) = 3, g(1) = g(0) + g(0)! = 3 + 6 = 9, and g(2) = g(1) + g(1)! = 9 + ... | evolcodegolf |
I recently encountered a particularly intriguing and challenging question that inspired me to reformulate it as a code golf challenge (note that the original question has been closed).
Challenge:
Among a collection of 1 million and 1 integers, where all numbers except for one are duplicated, develop a program that e... | evolcodegolf |
In this intricate examination of prefix code characteristics, we have established that prefix codes possess the property of unique concatenability. This implies that they can be concatenated in a seamless manner, devoid of any separators, while maintaining clarity and preventing ambiguity. For instance, given the prefi... | evolcodegolf |
A challenge I often face is that when composing comments using LaTeX, the resultant comment can become excessively lengthy. Today, your task is to rectify this by devising code that, upon receiving a LaTeX math expression, generates the most concise equivalent expression while ensuring that each equivalent expression p... | evolcodegolf |
Introduction
In this challenge, you are tasked with splitting an integer into two distinct pieces. Since nobody enjoys receiving the smaller slice of cake, your objective is to achieve the most equitable division possible. For instance, if you were to divide the integer 7129 into two components, there are three viabl... | evolcodegolf |
Let \$W\$ represent the set of rational numbers, irrational numbers, or real numbers; choose the most fitting for your exploration. Construct two mappings \$p\$ and \$q\$, each \$W \to W\$, such that:
\$p(q(x)) = q(p(x))\$, for an infinite number of elements \$x\$, and
\$p(q(y)) \ne q(p(y))\$, for an infinite number ... | evolcodegolf |
Transform a collection of positive integers into their respective remainders when divided by their corresponding 1-based position within the sequence. For instance, with an input series denoted as {a, b, c, d, e, f, g}, the resultant output should be expressed as {a%1, b%2, c%3, d%4, e%5, f%6, g%7}, wherein % represent... | evolcodegolf |
Your role involves working as an engineer specializing in staircase design for residential structures, and you've encountered a challenge with the limited availability of n rectangles to construct a staircase. Therefore, you must determine the various configurations to arrange n rectangles in order to create a valid st... | evolcodegolf |
The Playfair cipher is a digraph substitution cipher, initially devised by Charles Wheatstone and popularized by Lord Playfair. Decryption requires both the encrypted message and the key square. For simplicity, we will only use lowercase letters, ignoring spaces and punctuation.
How to decrypt the cipher:
1. Create a... | evolcodegolf |
Your task involves generating and displaying the precise text structure presented below with meticulous attention to detail in formatting:
az za
abyz zyba
abcxyz zyxcba
abcdwxyz ... | evolcodegolf |
Design an application that converts a string consisting of digits 0 to 9 into its corresponding representation on a circular LED display, using asterisks (*) and dashes (-) to illustrate the segments. Each digit should be presented in a circular format, with the following shapes:
```
--
* *
* *
--
* *
*... | evolcodegolf |
A right-hand brace structure is a specific code bracketing convention where all curly braces and semicolons are meticulously aligned to a single vertical point at the far right side of a file.
This practice is often deemed suboptimal due to a multitude of concerns.
The Task
Utilize any method to process a multiline st... | evolcodegolf |
In this challenge, your objective is to meticulously parse morgue files from the roguelike game Dungeon Crawl Stone Soup and produce a structured output to STDOUT. What exactly are these morgue files? When a character meets their demise, a text file is created containing that character's detailed data, including their ... | evolcodegolf |
Considering the previous complications encountered with SIGSEGV and SIGILL, it begs the question of whether we can explore similar territory. Craft a concise piece of code that inevitably triggers a Bus Error (SIGBUS) within any programming language. However, ensure that your implementation does not employ raise() or k... | evolcodegolf |
Task
Given a sorted dataset of rational numbers, compute (with a tolerance of 1‰) the weighted median.
One potential approach:
First, assign weights to each data point based on their position, such that the lowest data point has the smallest weight and the highest has the largest.
Determine the cumulative weig... | evolcodegolf |
# <language for Hello, <language for Quine>, <language for 99 Bottles>, <language for Incrementing>, n characters
Devise a multifaceted program that can be executed in four distinct programming languages, such that:
- One programming language produces the output "Hello World!".
- Another programming language generat... | evolcodegolf |
Hey everyone, I'm a first-time poster eager to delve into a fascinating problem I encountered while browsing Coderoulette recently. It piqued my interest, and despite my thorough online search, I could not find any similar inquiries, so I thought it might be beneficial to share it here for those who appreciate such cha... | evolcodegolf |
The provided code structure consists of an assortment of names arranged within a simplistic grid format:
1 2 3 4 5
1 A B C D E
2 F G H I J
3 L M N O P
4 Q R S T U
5 V W X Y Z
In this system, each letter is represented by its corresponding grid coordinates, specifying the row followed by the column. For instance:
M ... | evolcodegolf |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.