instruction_seed
stringlengths
29
40.5k
source
stringclasses
6 values
Given a positive integer \$m\$, generate \$m\$ 3D bool volumes with equal depth, width, and height such that: Each volume should be 6-connected, meaning that for any two voxels that are true, you can traverse from one to the other by moving in any of the six cardinal directions (up, down, left, right, forward, backwar...
evolcodegolf
I'm letting this one out of the sandbox. Hopefully it is well-written and makes sense, feel free to improve. To enhance the popularity of 1+ and facilitate the creation of optimized 1+ text-printing programs, here comes the metagolf challenge: The 1+ Language 1+ is a fun deque-based esolang where 1 is the only lite...
evolcodegolf
A plethora of industrious beavers has created a considerable disorder. They inscribed chaotic markings all over the unbounded tape. If we continue down this path, our neighboring acquaintance may cease to lend us limitless tapes. We require an innovative approach to engage in the busy beaver challenge, one that preserv...
evolcodegolf
Develop an algorithm or function that processes an integer value n, constrained between the inclusive range of 10 to 100, and produces a lexically valid word from the English language that has a character sum corresponding exactly to n. The character values align with their positional representation in the English alph...
evolcodegolf
Develop a function that, given a string representing the initial 12 digits of an ISBN-13 code, accurately computes and appends the requisite check digit to form the complete ISBN-13 code. The function should accept an input string composed exclusively of exactly 12 decimal digits, returning a resulting string that enco...
evolcodegolf
This is the Dominion Conflict: In this strategic game inspired by territory control, the objective is to dominate the battlefield by capturing opposing territories and reinforcing your own. How it works: Each player commands territories (marked with T and a number representing its defense value) and can deploy units...
evolcodegolf
Transform each occurrence of the digit 9 in a string of digits into the word "NINE," while also maintaining the sequence of all other digits. If the digit 9 appears consecutively, it should be replaced by the same number of occurrences of "NINE." Test Cases: 1234567890 → 123456NINE0 99920099 → NINENINENINENINENINE...
evolcodegolf
We are faced with a two-dimensional matrix composed of positive integer cells. During each turn, any non-zero cell that is adjacent (top/bottom/left/right) to a zero cell is allowed to decrease by 1. The objective is to calculate the total number of non-zero cells present at each stage, summing these counts throughout ...
evolcodegolf
Construct a program that meticulously analyzes a chessboard representation provided in text form and determines whether either king is currently in check or checkmate, while considering potential stalemate scenarios. The input format concludes with the rank of White's starting position presented as follows (note the ab...
evolcodegolf
In a multitude of programming languages, the iconic string Hello, World! is typically denoted as "Hello, World!". However, should you wish to accurately represent "Hello, World!", it becomes necessary to escape the double quotes utilizing backslashes, thereby transforming it into "\"Hello, World!\"", and in order to re...
evolcodegolf
You should create a program or function that takes a string as input and determines whether the input represents a valid ASCII pyramid. ASCII pyramids are constructed using the characters /, \, |, _, spaces, and newlines. The connections between characters must follow specific rules: - Each layer must have a center...
evolcodegolf
The task revolves around the traditional method of run length encoding and decoding, which is a widely recognized algorithm in data compression techniques. input output a3b2c5 aaabbccccc This procedure is relatively uncomplicated and has been executed numerous times in various contexts. The twist, however, is...
evolcodegolf
First post here! I recently participated in a small friendly competition and this was one of the questions: A positive integer whose only prime factors are 2, 3, 5, or 7 is termed a humble number. The initial 20 humble numbers are: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 14, 15, 16, 18, 20, 21, 24, 25, 27. Write a progra...
evolcodegolf
Create a program (or function) that demonstrates four distinct big O time complexities contingent upon its execution mode. It must accept a positive integer N, which can be assumed to be less than 231, and in addition, you should ensure that the program adheres to a strict output format by encapsulating results in a st...
evolcodegolf
Compose or relay the following verses: Dea Tempestatis, iuravi Carissimam adduxisse. Dea Tempestatis, defendam Dum astra in caelo versantur. Etsi animus in Turbine, Aut Ventus bella portet, Adversus oppugnabo et progrediar. The stanza format must remain unchanged, and additional spaces are permissible...
evolcodegolf
Craft a programmatic script that functions correctly when an unoccupied line exists within the sequential logic of the application but fails or triggers unforeseen anomalies upon the elimination of that line. Steer clear of conventional pitfalls and trivial responses. The script must perform a "meaningful" action, even...
evolcodegolf
Design a program that accurately counts and returns the number of 1 bits present in the binary representation of a given integer. Consider the following examples for clarity: 5 -> 2 1254 -> 6 56465 -> 8 Criteria for Evaluation The successful submission will be the one that executes in the least am...
evolcodegolf
Introduction In the context of a general election, we aim to compute a consistent price per parliamentary seat. This entails determining a divisor \( d \) such that for \( N \geq 0 \) seats to be allocated and a list \( ns \) representing votes for each party, we satisfy the equation \[ \text{sum}(\text{floor}(n/d)...
evolcodegolf
Your objective is to calculate the length of the coastline represented in an ASCII map of islands, where the map consists of one or more # characters indicating land and spaces representing water. The coastline encompasses any edge between land and water, including boundaries of inland lakes and islands. Additionally, ...
evolcodegolf
As a novice in the realm of Code Golfing, particularly with the Go programming language, what comprehensive yet succinct strategies can you offer that would not only assist in tackling code golf challenges but also incorporate nuanced techniques specific to Go's syntax and features? Please ensure that your responses ad...
evolcodegolf
Transform two provided words by interchanging their initial vowel sounds. The objective is to minimize character count while preserving the integrity of the sounds. Input: Two lowercase strings that begin with different vowels and each have at least one consonant following the initial vowel. Output: The two transfo...
evolcodegolf
Background We delineate two distinct categories of chains as a sequence composed solely of dashes, "-", or exclusively of underscores, "_". The interconnection of these chains is facilitated through the use of a single equals sign, "=". Criteria: - The type of chain must undergo a transformation subsequent to an...
evolcodegolf
Challenge Given the designated number corresponding to an XKCD comic, you are required to extract and output the title text associated with that comic (commonly referred to as the mouseover text). However, the program must explicitly throw an error when presented with the numbers 859 or 404. Rules The number pro...
evolcodegolf
You've received a cryptographically obfuscated communication from your operative, which you ascertain has been encoded utilizing the intricate VIC cipher. Recognizing that the VIC cipher is characteristically challenging to unravel, you are compelled to develop a compact program capable of deciphering this encoding tec...
evolcodegolf
Landau's function \$g(n)\$ (OEIS A000793) delineates the pinnacle order of an element within the symmetric group \$S_n\$. Herein, the order of a permutation \$\pi\$ is characterized as the minimal positive integer \$k\$ for which \$\pi^k\$ equates to the identity permutation - an equivalence that corresponds to the lea...
evolcodegolf
We're back! And this time with a robust and objective scoring framework! I have devised an intriguing challenge that, while seemingly straightforward, permits an extensive array of innovative solutions. This presents an excellent opportunity for the creative ingenuity of PPCG users to shine. Your Task Your objective i...
evolcodegolf
Your task is to identify the most distant node from a designated starting point within a graph, while recognizing that the structure can be regarded as a tree for simplicity. Although your implementation does not need to accommodate cycles, this limitation may add an interesting layer to the challenge. To elaborate f...
evolcodegolf
My robotic assistant has experienced an unforeseen short circuit, resulting in its erratic escape from my laboratory! Fortunately, during such events, its automatic shut-down sequence activates, providing a brief window for it to unpredictably pivot and sprint in the direction it faces for five consecutive movements be...
evolcodegolf
in my country we have a children's song which goes like this: Priletela muha na zid, muha na zid, muha na zid. Priletela muha na zid, muha na zid. Pralatala maha na zad, maha na zad, maha na zad. Pralatala maha na zad, maha na zad. Preletele mehe ne zed, mehe ne zed, mehe ne zed. Preletele mehe ne zed, mehe ne zed. ...
evolcodegolf
In today's intricate fractal challenge, please create a depiction of at least five iterations of Sierpinski's triangle! (Illustrated below is Sierpinski's triangle.) Ensure that the resolution of your image is sufficiently high so that the smallest triangles are no smaller than one pixel in dimension, while all triang...
evolcodegolf
(based on this post and the ensuing discussion on chat -- also, much gratitude to Dennis for TIO!) The Challenge Select a programming language that is presently available on the TryItOnline platform, such as PowerShell, and craft code in that language on the site that requires no input. When the Run button is engag...
evolcodegolf
I encountered a challenge that requires printing "Hello World" using the minimal number of characters, taking into account all characters, including spaces. Could you provide a multi-step approach to further reduce this code efficiently? Thank you in advance! ```cpp #include<iostream> int main(){printf("Hello World")...
evolcodegolf
Frank has devoted his entire career to the field of IT, diligently addressing support tickets, managing inventory, and reporting to his supervisor on a daily basis. On one fateful Friday, just as the workday is drawing to a close, Frank finds himself engaged in a meticulous inventory check, categorizing cables in the s...
evolcodegolf
In the framework of this challenge, a room is conceptualized as a multidimensional array where the elements representing the "peripheral structure" are denoted by 1, symbolizing the walls, while all other elements signify 0, representing empty space within the room. Here’s an illustration of a 1D room with a size of ...
evolcodegolf
This intricate challenge revolves around the gradual modulation of hue values across an image to create visually stunning compositions resembling the famous artworks, such as Vincent van Gogh's Starry Night: (original) Challenge Develop a program or function that accepts two non-negative integers and an image file in ...
evolcodegolf
Create a program that extracts and prints the RGB color of a specified pixel on the screen, ensuring that the program can handle edge cases gracefully. The input must be read from stdin in the format x,y, where x and y are unsigned integers. The pixel (0,0) should be treated as the top left corner of the screen. The ou...
evolcodegolf
The "wisdom owl" is a unique creature that hops through a sequence of even numbers until it perches on 4 or 16... Your task is to write a program that accepts an even integer m as input and outputs the final position of the owl (4 or 16). For a given even integer m >= 4: 1. Set the current position of the owl to m. 2...
evolcodegolf
Determine the surviving ninja in a lethal elimination game involving N ninjas arranged in a circular formation, where each ninja sequentially kills the closest living ninja to their left (clockwise) and then transfers the sword to the next closest surviving ninja in line. Your task is to implement a function that, give...
evolcodegolf
Introduction A farmer requires assistance in determining the minimum amount of time necessary to collect his fruit each day, while adhering to specific guidelines. Challenge This farmer possesses X orchards. Each orchard contains Y fruits, unless devoid of fruit, in which case it will be represented by the st...
evolcodegolf
The objective of this intricate challenge is to develop a sophisticated animation representing a chain drive system, which comprises a series of interconnected sprocket gears linked by a chain. General Requirements The program must receive a list of sprockets defined by (x, y, radius) triplets. These sprockets will f...
evolcodegolf
Given the string s, please construct a comprehensive table in the format illustrated below, ensuring to systematically replace each character in the string with a distinct subsequent character in each successive line. Input: abcd Output: abcd bbcd cccd dddd Input: Hello, world! Output: Hello, world! ...
evolcodegolf
Given a non-empty finite sequence comprised exclusively of integers, the task is to identify and return an arithmetic subsequence that possesses the greatest length. In scenarios where multiple subsequences of identical maximal length exist, any one of them may be returned. Definitions: An arithmetic sequence is char...
evolcodegolf
The Animal-Alphabetical Sequence represents an infinite string of letters that is meticulously constructed through the following iterative procedure: Commence with the letter A; Subsequently, replace each letter with the corresponding name of the animal starting with that particular letter from the table below; Retu...
evolcodegolf
For this intricate task, your objective is to meticulously generate the appropriate fingerings corresponding to various brass instruments from the specified data set below, taking into account the unique capacities of each instrument. The notes an instrument can play (along with their respective fingerings) are prese...
evolcodegolf
CAPTCHA Modified by Evil Mathematician with Extra Complexity I accidentally incurred the wrath of an eccentric passive-aggressive mathematician. As part of his demented idea of payback, he modified the CAPTCHA system on my favorite website. Up until now, it would just ask a moderately challenging math question, like ...
evolcodegolf
Challenge Devise a sophisticated compression algorithm specifically tailored for the efficient encoding of ASCII mazes. Your task encompasses the development of both a compression algorithm and its corresponding decompression counterpart. The evaluation of your solution will be grounded in the resultant size of your ...
evolcodegolf
Chess pieces—including monarchs, sovereigns, rooks, bishops, and knights—along with their foot soldiers—are strategically positioned on a board, deliberately avoiding the corners a1 and h8. Your objective is to navigate from the unoccupied square a1 to the equally unoccupied square h8, traversing solely through vacant ...
evolcodegolf
Design and implement a sophisticated 3D word puzzle that incorporates a cube where each dimension corresponds precisely to the length of the provided word. The word, exclusively composed of uppercase letters (A-Z), must be strategically positioned within the cube in one of the predetermined orientations: horizontally, ...
evolcodegolf
How can we elegantly represent a rotated shape using ASCII characters within a 3D framework, while also ensuring that the output adheres to a specific character limit for each line? I propose the following technique: instead of a circular representation, we employ a square rotated by 45° as the cross-section, allowing ...
evolcodegolf
This challenge draws inspiration from mathematical patterns and visual representation in coding. Create a program that generates a wave-like sequence based on a given positive integer \$n\$, producing a multi-line output with \$n\$ rows that visually represents the wave. Detailed rules: Output as a single string ra...
evolcodegolf
To explore the fascinating intricacies of the Collatz Sequence, also referred to as the 3x + 1 problem, consider initiating with any positive integer—let us choose 10 for this instance—and diligently applying the specified operations delineated below: if n is even: Divide it by 2 if n is odd: Multiply i...
evolcodegolf
At runtime, continuously solicit user input by displaying a prompt until the user provides a non-empty response (that is, a response that is not merely an empty newline). It is important to clarify that while output or result is neither mandated nor explicitly restricted, the function should thoroughly demonstrate the ...
evolcodegolf
Your task is to enhance a cross-hair design centered around the capital X in the given input, ensuring intricate details in the implementation while preserving the fundamental structure of the original output. Example Input / Output Input: mdhyyyyyyyhhhddmmm mdyyssoo oooos...
evolcodegolf
The title refers to a valid Jelly construct known as Jelly Code, which achieves the same output as the expression L€€, but with the additional condition of being printed twice. Context You may choose to bypass this section without jeopardizing your capability to fulfill the challenge. Certain operations within th...
evolcodegolf
Your colleague, Alex, is new to Java and struggles with understanding object initialization. While he eventually gets the code to work, his methods of creating objects are often lengthy and repetitive. For example, when initializing an array of strings, most of the team uses a concise format like this: String[] fruits...
evolcodegolf
This is the Cops' thread. Robbers' thread is here. Background 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 adjacent.) Al...
evolcodegolf
Challenge Write a program or function that, given a collection of positive integers \$S\$ and a positive integer \$n\$, finds as many non-overlapping subcollections \$T_1, T_2, ..., T_k\$ of \$S\$ as possible, ensuring that the sum of every \$T_m\$ equals \$n\$ while also adhering to the requirement that each \$T_m\$...
evolcodegolf
Devise an irreducible proper quine, a specialized type of program that meticulously outputs its own source code, which remains unminimizable by excising any characters to form a more concise program adhering to the same specifications. For example, the provided Python quine: `var='var=%r;print(var%%var)';print(var%va...
evolcodegolf
Part of Code Golf Advent Calendar 2022 event. See the linked meta post for details. Santa and the Elves are surreptitiously orchestrating a new excursion train service, designated as "North Pole Railroads". This train will navigate through various picturesque locales in close proximity to the North Pole. In conjuncti...
evolcodegolf
Updates: The previous time constraint has been lifted. You are now required to provide a detailed description of the program's output - please refer to the newly established guideline. A pangram is a unique sentence that incorporates every single letter from the alphabet at least one time, an example being: The quick...
evolcodegolf
The Craft of Symbol Integration Create a hexagonal matrix filled with a given sequence of symbols. Starting from the center of the matrix, populate the hexagonal cells with the symbols in a spiral pattern. If the sequence is shorter than the number of cells in the matrix, repeat the sequence until the matrix is fille...
evolcodegolf
tl;dr: Output the values where the reduced prime factorization leader changes, while also indicating how many times each distinct leader has appeared. Every positive integer has a unique prime factorization. Let's call the reduced prime factorization just the list of multiplicity of the prime factors, ordered by the s...
evolcodegolf
Task Given two lists of characters, output their Cartesian product, i.e. the list of pairings of each letter from the first list with each letter from the second list, ensuring that the resultant list does not contain any duplicate pairs. Example "123456" and "abcd" give: [["1","a"],["1","b"],["1","c"],["1","d"...
evolcodegolf
In the context of developing a sophisticated image drawing application designed to generate items such as mugs and t-shirts, we are currently encountering a significant challenge. Herein lies an illustration of the relevant function: Our primary issue arises from the nature of the randomly generated functions, which p...
evolcodegolf
Construct a comprehensive mutation chain beginning from a specified start word and culminating in a defined target word, while adhering to the stipulation that both words are composed solely of lowercase alphabetic characters. It is essential to define a "mutation" as any transformation that either removes a character,...
evolcodegolf
Preface In the renowned holiday carol, The Twelve Days of Christmas, the narrator receives a series of increasingly abundant gifts each successive day. This musical composition is cumulative in nature—each stanza introduces an additional present, incrementing the total by one relative to the previous stanza. It begin...
evolcodegolf
Warning: Contains minor Deltarune Chapter 1 Spoilers Within the Forest section of the initial chapter of Deltarune, several intricate puzzles require the entry of playing-card suits in a specific sequence to progress to subsequent areas. Below is a representative example of such a puzzle: The methodology to resolv...
evolcodegolf
Design a function that transforms a list of integers based on specific merge rules, similar to the mechanics found in tile-matching puzzle games. When two identical consecutive numbers are encountered, they should be combined into their sum, and the merging process should respect non-intersection. The function should g...
evolcodegolf
The problem originates from this comic: http://www.smbc-comics.com/?id=2874 Your program must systematically analyze various base systems to identify the smallest base in which a specified number exhibits the maximum frequency of the digit '4' within its representation. Emphasis should be placed on brevity, as the mos...
evolcodegolf
Task Given a non-empty array comprising only the binary digits 0 and 1, your objective is to modify the array by halving the lengths of each contiguous segment of zeros while preserving the sequence of ones and the overall structure of the array. Input An array containing the binary digits 0 and 1. Acceptable for...
evolcodegolf
Sandbox Adapted from exercise 4 of 100 little Keg exercises The ability to repeat chunks of code within a program is an essential and fundamental component of any programming language. In parallel, the capacity to make logical decisions predicated upon varying input values holds equal significance. The Challenge ...
evolcodegolf
Provide a positive square number as input, ensuring it is greater than 0. Additionally, output not only the count of values between the input and the next highest square but also list those values. Example Input: 1 Output: 2 (2, 3) Reason: The numbers 2 and 3 are between 1 and 4, the next highest square Input...
evolcodegolf
Design an advanced algorithm for the efficient nesting of submitted jobs aimed at minimizing paper roll consumption. The setup involves a 36" large format printer utilizing a paper roll as its source material (150 feet = 45 meters). Implement a delay loop within the print server queue that pauses for 30 seconds before ...
evolcodegolf
A room, in the context of this challenge, is defined as a multidimensional array wherein the elements along the "periphery" are designated as 1 to symbolize the walls, while all other components are represented by 0 (indicating empty space within the room). To illustrate, consider a 1D room with a size of 5: [1,0,0,0...
evolcodegolf
Within the realm of computational theory, there exists a rather unconventional "ordering mechanism" informally referred to as Stalin sort, which dictates that, to systematically arrange a collection of integers, one must incessantly eliminate elements from the original sequence until a satisfactory ascending order is a...
evolcodegolf
Construct a program or function capable of accepting four non-negative integers, designated as A, B, C, and D, which collectively represent two fractions, A/B and C/D, where it is mandatory that B and D are non-zero values, and the constraints A ≤ B and C ≤ D hold true. Your output should take the form of an ASCII ar...
evolcodegolf
Your objective is to develop a concise program (or function) that neither requires any input parameters nor prompts for user interaction, yet produces output formatted as follows: ## *name*, *length* bytes *code* In this context, *name* refers to the programming language you select, *length* signifies the total nu...
evolcodegolf
Challenge Taken with permission from my University Code Challenge Contest After finishing her studies a couple of months ago, Marie opened a bank account to start receiving the payment of her first job in town. Since then she has been performing a few transactions with it. Her first payment was $1000 dollars. With tha...
evolcodegolf
Given an integer ranging from 0 to 9 (inclusive), your defined function or subroutine should systematically output all integer values within the bounds of -100 and 100 (inclusive) that encompass the specified digit within their numerical representation. For instance: Input: 9 Output: -99 -98 -97 -96 -95 -94 -93 -...
evolcodegolf
Embarking on an Alchemical Quest Having recently immersed myself in the captivating world of Full Metal Alchemist, I find myself pondering a profound question: Is the transmutation of matter genuinely achievable? While the feasibility in our tangible universe remains uncertain, it seems plausible within the realms of...
evolcodegolf
Your task is to write a piece of code that zeros the current cell in the Brainfuck variant where each cell can hold a signed integer of arbitrarily large magnitude, rather than being restricted to the conventional 0 to 255. You may assume there are l cells to the left and r cells to the right of the current cell that a...
evolcodegolf
Inspired by a chat conversation I lurked. I am an adventurer on the far away land of Zendikar. I truly enjoy traveling the land. Bushwhacking, weathering the roil and encountering strange and exotic flora and fauna are the highlights of any good adventure. Unfortunately, my duties as an adventurer do not always allow...
evolcodegolf
I am currently grappling with a challenging combinatorial puzzle that I wish to submit to the OEIS, yet I find myself lacking a sufficient number of terms to do so. This code-related challenge seeks to assist me in generating additional terms, where the individual who submits the largest quantity of terms will be decla...
evolcodegolf
I find myself tasked with the seemingly tedious endeavor of arranging a collection of numerical values in ascending order, yet I admit to my proclivity for procrastination. The challenge of effectively swapping and repositioning each number until they conform to the desired sequence feels daunting; thus, I devised a un...
evolcodegolf
Can this container accommodate this specified volume of liquid while adhering to additional spatial constraints? Challenge Synopsis As you are likely aware, liquids possess an indefinite shape yet a fixed volume. Consequently, they conform to the dimensions of their container. However, they cannot expand beyond thei...
evolcodegolf
Create a function designed to transform text formatted in CamelCase to snake_case, ensuring that FunctionForHTMLManipulation is converted to function_for_html_manipulation. The input text must consist of a singular, valid identifier applicable across multiple programming languages, beginning with an English letter, fol...
evolcodegolf
Recently, an individual known as Mayube shared a task titled "Garble that string." It appears that humans typically struggle with the assessment of whether a given string has indeed been garbled or not, to the point where we may consider this a considerable shortcoming. Therefore, to expedite the process, let's generat...
evolcodegolf
Alice and Bob are engaged in an intriguing strategic game involving a tree structure, represented with a root node (depicted as a thick dot) devoid of internal nodes, where numeric values are assigned exclusively to the leaf nodes. The configuration allows for any node to possess an arbitrary number of children. The g...
evolcodegolf
In the immersive environment of the game The Witness (with potential spoilers), players encounter a unique category of puzzles that requires the intricate task of drawing a Tetris piece with a continuous line, ensuring that the corresponding symbol for the Tetris piece remains wholly enclosed within the shape outlined ...
evolcodegolf
As a musician seeking to deepen my understanding and application of polyrhythms, I require an advanced method for generating intricate polyrhythmic patterns. A polyrhythm is characterized by two events—such as taps or notes—occurring at distinct, regular intervals, and the frequency of each event differs over the same ...
evolcodegolf
Introduction: As Halloween approaches, I've been contemplating various Halloween-themed challenges. My curiosity led me to explore Frankenstein's Wikipedia page, where I stumbled upon this intriguing text: The creature Part of Frankenstein's rejection of his creation is the fact that he does not give it a name, ...
evolcodegolf
Develop a named function or a complete program capable of accurately computing the quaternion product of two distinct quaternions, ensuring to minimize the byte count utilized in your implementation as much as possible. Quaternions are fascinating mathematical entities, serving as an extension of the real numbers, wh...
evolcodegolf
Formulate a response that operates on an integer array comprising no fewer than two elements, and produce the Matrix-Vector product as defined in the subsequent context. To derive this Matrix-Vector, initiate by cyclically rotating the size-n input array to engineer a square matrix of dimensions n x n, ensuring the pri...
evolcodegolf
Given a positive number \$n\$, we define another distinct positive number \$m\$ as good if we can insert the same digits into both \$n\$ and \$m\$ such that the resulting fractional values are equivalent. This can be expressed mathematically as: $$m/n = m_{\text{transformed}}/n_{\text{transformed}}$$ or equivalently, $...
evolcodegolf
We define a binarray as an array satisfying the following properties: it's non-empty the first value is a 1 the last value is a 1 all other values are either 0 or 1 the total count of 1s in the binarray must be equal to a predefined integer M For instance, the array [ 1, 1, 0, 1 ] is a valid binarray if M = 3. The ta...
evolcodegolf
Background You have recently delved into the intricate world of combinatory logic and, captivated by the diverse range of combinators, dedicate considerable time to mastering their nuances. While exploring, you encounter the specific expression: (S I I (S I I)) Upon experimenting with its reduction to normal for...
evolcodegolf
A covering array is a structured N by k matrix wherein each entry is sourced from the set {0, 1, ..., v-1} (denoting v total symbols), ensuring that any selection of t columns (resulting in an N x t sub-matrix) encompasses every conceivable v^t tuple at least once. The relevance of Covering Arrays extends to various do...
evolcodegolf
Your objective involves the intricate computation of exponentiation, adhering to the subsequent procedural framework: Given two numerical inputs (for instance, 4 and 8), you are to perform the exponentiation calculation incrementally by dissecting the equation into manageable segments. Start with 4 raised to the power...
evolcodegolf
In a particular online communication space, we find enjoyment in crafting humorous expansions of the acronym pertaining to the build automation tool known as sbt. While it is conventionally understood as "Scala Build Tool", our goal is to devise a plethora of creative interpretations, including: Stupid Brick Teeth S...
evolcodegolf
Description While advancements in support for writing in various scripts globally via Unicode continue to improve, and with the addition of emojis in communication, it remains unfortunate that a significant number of fonts still lack the necessary Latin characters featuring a double acute accent, which are essential ...
evolcodegolf