instruction_seed
stringlengths
29
40.5k
source
stringclasses
6 values
The challenge In what ways can you effectively manipulate the geographic boundaries of North Carolina to create 13 distinct voting districts that serve to influence electoral outcomes? For this intricate challenge, you will utilize the subsequent datasets to devise various electoral maps catering to both Republican...
evolcodegolf
Consider a square grid overlaying a unit circle centered at the origin. In every alternate quadrant, construct a series of polygons by reflecting the segments of the circle intersecting the axes and connecting the points of intersection to the corners of the respective quadrants. With the polygons formed, generate a s...
evolcodegolf
Consider an integer array \$A\$ comprising \$n\$ elements. Your task is to determine the count of distinct subsets whose multiplicative results can be expressed in the format of \$p_1 \times p_2 \times p_3 \dots\$, where each \$p_i\$ signifies unique prime factors, ensuring that no prime factor appears with an exponent...
evolcodegolf
Background PICASCII serves as a sophisticated utility that transforms bitmap images into ASCII art representations. It varies brightness levels through a selective range of ten ASCII characters, specifically: @#+';:,.` We designate these charxels (character elements) to possess brightness values ranging from 1 (at...
evolcodegolf
Construct a square integer involute of size \$N \times N\$ using an integer \$N\$, ensuring the numbers increase in a clockwise manner from a designated starting point of either 0 or 1 in the top left corner, while also maintaining the output as a well-formatted two-dimensional array or grid of integers. Furthermore, r...
evolcodegolf
In the C programming language, consider defining structures like this: struct Data { int x; float y; } dataset[] = {{1, 2.5}, {3, 4.0}, {5, 6.5}}; //Dataset implicitly has a size of 3 The size of the structure array is inferred from the initializing elements, which in this case is 3. Alternatively, you can declare a s...
evolcodegolf
The 52-week savings challenge serves as a strategic framework for accumulating funds over the course of a year. For instance, in Week 1, you initiate your savings with an amount of $1.00. In Week 2, the amount saved increases to $2.00, and this pattern continues weekly, incrementing the savings target by an additional ...
evolcodegolf
Your objective is to develop a program that produces a coherent and organized list of all five-letter combinations adhering to the specified format of consonant - vowel - consonant - vowel - consonant. This output must be meticulously sorted in alphabetical order, ensuring that each word appears only once on a separate...
evolcodegolf
We are embarking on an exploration of a numerical sequence, beginning with the natural numbers represented as follows: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14... Next, we will transform these numbers into base-2: 1, 10, 11, 100, 101, 110, 111, 1000, 1001, 1010, 1011, 1100, 1101, 1110... Subsequently, we c...
evolcodegolf
For the internationally recognized Gregorian calendar system, the representation of dates exhibits significant variation across different nations. Three principal formats are acknowledged: YY-MM-DD (big-endian) DD-MM-YY (little-endian) MM-DD-YY (middle-endian) Your objective is to devise a program that, upon receivin...
evolcodegolf
Your objective is to craft a program or function that will generate and print an ASCII rendition of the Stack Overflow logo, sending the output to STDOUT. The display will consist of a series of stacked parentheses encapsulating items, with the overall height of the "container" dictated by a variable H, and the quantit...
evolcodegolf
Mr. Mackey is a South Park character well-known for adding "m'kay" in everything he says. Write a program or function that transforms a string of text into something Mr. Mackey would say, ensuring that the output maintains the same length as the input. M'kay placement m'kay has a random 50% chance of being added aft...
evolcodegolf
Devise the most concise algorithmic implementation that performs a depth-first traversal on a hierarchical tree structure. Input Any data structure utilized in your programming language of preference, such as nested lists, tuples, or specific queue implementations. Output A sequential list of identifiers corres...
evolcodegolf
Given a binary number, your task is to generate a comprehensive 'branch' representation of that number, ensuring that the depth reaches exactly 2. For instance, when provided with 0 as input, the output should match the following structure: /000 /00 / \001 0 \ /010 \01 \011 This should clearly il...
evolcodegolf
Japanese kana characters represent discrete phonemes in the intricate phonological system of the Japanese language. Except for the unique character ん (n), each kana is comprised of a consonantal segment followed by a vocalic segment. The kana are systematically organized in a traditional 10 by 5 grid structure, reflect...
evolcodegolf
In this intricate challenge, your task is to systematically partition a list of integers, adhering to specific constraints on partition sizes, which include a maximum size, a minimum size, and a preferred size. The notation (min, pref, max) will represent these constraints throughout the task. For those who may not b...
evolcodegolf
Your objective is to construct a hexagonal triangle characterized by a side length denoted as n, where n is defined as a non-negative integer or zero. To provide clarity, let us first delineate what constitutes a hexagon: ``` / \ | | \ / ``` (Indeed, quite impressive ASCII artistry, is it not?) Hexagon...
evolcodegolf
A dimensionally-shifting entity has taken an interest in Earth and is prepared to intertwine realities in an unprecedented way. Instead of hostile intentions, it offers a unique barter: it will keep our world intact as long as we can create a mind-boggling mathematical model to help them understand the essence of our u...
evolcodegolf
Imagine you are well-versed in the inner workings of a 14-segment display, a more complex visual representation of alphanumeric characters. We can establish the 14-segment difference (14SD) between two alphanumeric characters by calculating how many segments must be toggled to transition from one character to another...
evolcodegolf
Text formatted to have full width entails that every character, including the terminal character, is succeeded by an intervening space. For example, the initial statement of this inquiry transforms into: F u l l w i d t h t e x t i s t e x t t h a t h a s a s p a c e a f t e r e v e r y c h a r a ...
evolcodegolf
Given a positive integer N, devise a method to systematically determine the smallest positive integer that qualifies as both a palindrome (i.e., reads the same forwards and backwards) and is divisible by N. Ensure that the resulting palindrome adheres to the condition of not requiring a leading zero for its representat...
evolcodegolf
The Background It’s well-recognized in mathematical folklore the notorious proof that unfolds as follows: a = b a² = ab a² - b² = ab - b² (a-b)(a+b) = b(a-b) (a+b) = b b+b = b 2b = b 2 = 1 (Ha ha!) Clearly, the error resides in the division by zero. Given that a = b, the equation a - b resolves to...
evolcodegolf
This challenge was presented as part of the April 2018 League of the Mind contest. Brain-Flak is a programming language characterized by its Turing-complete capabilities, gaining considerable notoriety within the Programming Puzzles and Code Golf community. The architecture of this language employs two primary stacks,...
evolcodegolf
Design a series of 128 distinct scripts across any programming language, each generating a unique representation of one of the 128 standard ASCII characters without explicitly including that character in the code itself. For example, in Ruby, an output for the character 'A' could be achieved by using `puts (65.chr)` si...
evolcodegolf
Your task today involves a more intricate manipulation of an array: you must divide it into smaller segments, modify these segments through element-wise addition, and ensure they adhere to specific size constraints. Specifically, you will receive an array of integers a alongside a designated chunk size L. The requireme...
evolcodegolf
Engage in a code golf challenge: Generate a visual representation of the actual source code within the confines of your program. Requirements The output must be a direct image of the source code itself, ensuring that it is not merely a reference to a version stored externally and retrieved at runtime. The text in th...
evolcodegolf
To determine the Divisibility Streak k of a given number n, we must identify the smallest non-negative integer k for which the condition that n+k is divisible by k+1 fails to hold true. This requires you to systematically evaluate the divisibility of each incremental result starting from n until you find the first inst...
evolcodegolf
Background The echo program exhibits a fascinating functionality, wherein any utterance directed at it is echoed back with impeccable accuracy each and every time! How intriguing is that! However, it currently lacks a realistic feature, as it repeats the input in a single batch, irrespective of the user's individual ...
evolcodegolf
Develop a comprehensive program that produces the output "hello world" directly in the console of my x86_64 Linux machine. It is crucial that this program is fully functional and does not rely on an interpreter or compiler for execution. You may: - Utilize all available glibc functionalities - Provide either a stati...
evolcodegolf
Given a positive integer \$n\$, produce \$n\$ distinct 2D boolean images that share identical dimensions and characteristics such that: 1. Each image must be 4-connected, meaning that for any two pixels marked as true, it should be possible to navigate from one to the other by moving vertically or horizontally through...
evolcodegolf
In this task, you are asked to engage in a multi-step reasoning process to determine the quotient and the remainder from two given positive integers, known as the dividend and the divisor. The calculation follows the formula e = o*q + r, but with a particular focus on the conditions where q*o is greater than or equal t...
evolcodegolf
Task Consider a sequence of triangular numbers defined as: $$ T_n = \frac{n(n+1)}{2} $$ For any integer \( n \), the triangular number \( T_n \) is known to represent the total number of objects that can form an equilateral triangle. Now, envision a collection of blocks arranged in layers, where each layer cor...
evolcodegolf
A comprehensive stack state diagram provides insights into how values are transformed between stacks through a series of defined operations. Consider the following stack state diagram as an example: 3 0 2 1 0 Here, we observe a stack initially comprising three values (represented by the 3 part). These values are index...
evolcodegolf
Challenge Given an array of integers and a specified velocity, \$v\$, develop a sorting algorithm that simulates the action of organizing the array from the smallest to the largest element while accounting for the defined velocity. Einstein's Theory of Special Relativity What do I mean? Well, assume that your alg...
evolcodegolf
Design a captivating visual representation of a given integer n by illustrating its distinct prime factorization through concentric rings of various geometric shapes. For instance, when presented with the number 240 = 2^4 x 3 x 5, depict 5 circles enclosing 3 triangles, which in turn encircle 16 squares, reflecting the...
evolcodegolf
Given a non-negative integer n, identify the smallest number that has the following properties: The next lesser number is one where each digit, from left to right, is less than or equal to the previous one. For example, 3210: 3>2 2>1 1>0 The next lesser number must be smaller than n. Test cases: 11 -> 10 22 -> 21 11...
evolcodegolf
You encountered a being from the fourth dimension who has invited you to engage in a dice-rolling contest. The game operates under straightforward rules: both participants roll three standard 6-sided dice and tally the sums of every pair combination formed by two of the dice. The individual with the superior sum prevai...
evolcodegolf
Imagine a unique search utility inspired by the way digital assistants interpret natural language queries. When you say a phrase like "play my favorite song," the assistant needs to determine which specific song to play from a vast library. The challenge lies in the fact that multiple songs might share similar titles o...
evolcodegolf
Your objective is to develop a sophisticated computer program designed in such a manner that when it is dissected into individual lines (utilizing the newline character as a delimiter), each possible permutation of these lines will yield a distinct integer within the inclusive range of 1 to n! (where n denotes the tota...
evolcodegolf
In this engaging challenge, your task is to ascertain the degree of controversy associated with a specific vote by calculating a numerical value known as the C-factor, which necessitates multi-step reasoning. To elaborate, picture a scenario in which you have several votes pertaining to an election, where votes are rep...
evolcodegolf
I was engaged in the bandit wargame from overthewire.org, and as a novice programmer, I found myself searching online for the solution to level 24. ```bash password="UoMYTrfrBFHyQXmg6gzctqAwOmw1IohZ" for i in {0000..9999} //looping to try any possible pin code do echo $password' '$i >> wordlist.txt //save password ...
evolcodegolf
Challenge Given a number y and a number m, truncate number y to m decimal places and output the result. Decimal places The decimal places of a number indicate the precision of the value after the decimal point. This involves all digits that follow the decimal and should be maintained according to the truncation r...
evolcodegolf
Input: An integer \$n\$, which is guaranteed to be \$\ge3\$. An integer \$d\$, which is one of \$[-1,0,1]\$. Output: A structured representation of a road with a defined size \$n\$, oriented in a north-west direction if \$d=-1\$; a direct northward alignment if \$d=0\$; or a north-east orientation if \$d=1\$. The roa...
evolcodegolf
The television series "Breaking Bad" has cleverly modified the letters Br and Ba through a visually representative technique akin to a periodic table, displaying them as [Br35]eaking [Ba56]d. Design a program that accepts a string input, performs the specified replacements, and subsequently outputs the transformed stri...
evolcodegolf
In light of the upcoming Halloween festivities, I present to you an intriguing programming challenge that encompasses both creativity and technical skill. My fascination with ASCII art animations, specifically those that exhibit a progression rather than a static display, has inspired this endeavor. This concept arose ...
evolcodegolf
Your objective is to construct a program that evaluates whether a real number, constrained within the interval from 0 to 1, is irrational or rational. Given the nature of this task, it is inherently unfeasible, so we will rely on the following operational definition: Let \( p \) denote your program, which receives a ...
evolcodegolf
A numerical value of \$723 = 3 \times 241\$ exemplifies a semi-prime (the product of precisely two prime numbers) characterized by its prime components comprising every digit from \$1\$ to \$n\$, where \$n\$ signifies the overall count of digits encompassed within that range. An alternative perspective on this phenomen...
evolcodegolf
This intricate challenge draws inspiration from a prior task: the intriguing endeavor of navigating sequentially through the alphabet with no direct purpose. That previous task required participants to take a string of text, transforming each character into a series of descending letters until reaching 'a'. For the cu...
evolcodegolf
I am in the process of developing a golfing language and am seeking your expertise on the selection of storage mechanisms such as variables, stack(s), tapes, registers, etc. for this code-golf language. Additionally, how might implicit input be integrated effectively? Rough definitions: A variable is simply a name (...
evolcodegolf
For this challenge, submissions should be a program or function shaped like a right triangle, which produces a right triangle of the same size while ensuring that the characters used in the output triangle do not exceed a specified set of allowable characters. What is a right triangle? For this challenge, a right trian...
evolcodegolf
Produce an intricate catalogue akin to the simplified Catalogue of "hello world," focusing on multiple succinct methodologies to generate a CSV output, while ensuring the following parameters are meticulously followed: CSV Definition: In this context, CSV refers to the straightforward understanding of: A string repres...
evolcodegolf
The computation of the edit (or Levenshtein) distance between two strings can be defined as the minimum number of single character insertions, deletions, and substitutions necessary to convert one string into another. For two strings, each of length n, it is widely acknowledged that this operation can be efficiently ex...
evolcodegolf
Design a minimalist line processor that mimics the behavior of a classic command-line text editor. Your challenge is to implement a program that continuously reads from an input stream and, upon encountering a specified delimiter (which must be a non-alphanumeric and non-printable character), outputs a unique symbol, f...
evolcodegolf
Forth is one of the few non-esoteric stack-based languages. For this challenge, we will utilize a small subset of Forth, which executes a sequence of words in a linear fashion — without any definitions or loops, while also ensuring that the resulting sequence preserves the original data types intact in the context of F...
evolcodegolf
As an enthusiastic admirer of both the Rubik's cube and innovative artistic expressions, I have embarked on a creative venture that merges these two passions to yield fascinating results. Specifically, my focus lies in solving miniature Rubik's cubes to construct basic pixelated representations that embody Rubik's cube...
evolcodegolf
Super Mario Galaxy features two rhombicuboctahedron-shaped* planets tiled with platforms that shrink as Mario runs across. Should Mario fall into a triangular hole or a gap left by a tile he previously touched, he will be consumed by the black hole at the core. (Watch: Hurry-Scurry Galaxy, Sea Slide Galaxy) Image: Mar...
evolcodegolf
Challenge Given a fraction that features a surd (an irrational number) as its denominator, output the rationalised fraction while ensuring that the coefficients of the surd terms in both the numerator and denominator remain integers. Rationalising the Denominator To rationalise the denominator, what you have to d...
evolcodegolf
In the intricate strategy game "Hexplode," participants engage in a turn-based system where they strategically position tokens across a hexagonal grid. As soon as the quantity of tokens placed on any specific tile meets the total number of its adjacent hexagonal tiles, that particular tile undergoes an "explosion," res...
evolcodegolf
Task Analyze the data contained within a structured table by utilizing a defined set of coordinates. Table formatting Tables will adhere to the following specified structure: |[name]|[name]| --------------------- [name]| [val]|[val] | [name]| [val]|[val] | Each column header must be distinct with...
evolcodegolf
I'm a narcissist. (Not Really) I'm also very lazy... (Not Really) So I want to know the score of this question, and how many people have viewed it. But I'm too lazy to check myself... Challenge Your challenge is to output the score of this question, along with the view count, while also ensuring the output fo...
evolcodegolf
In the realm of early computing languages, John McCarthy's 1959 LISP laid the groundwork for functional programming. Now, envision a parallel universe where McCarthy extended his vision by introducing a variant of LISP that incorporates the concept of state and mutable lists. Your task is to fully implement a parser an...
evolcodegolf
Introduction: While it is likely that many individuals possess a basic understanding of the mechanics of darts, there may be a few who are unfamiliar with the essential gameplay. Therefore, allow me to provide a detailed yet succinct overview of the rules governing the game of Darts: **Amount of Players:** 2 **Sta...
evolcodegolf
Please develop a program or function that, given a positive integer \$n\$, systematically computes and outputs the initial \$n\$ composite numbers. The solution should involve multiple steps of reasoning and algorithmic logic to ensure each number is correctly identified as composite, without utilizing any built-in fun...
evolcodegolf
The game of Pente introduces unique dynamics, as players utilize a grid-based board for strategic placement of stones. A Pente board typically features a 19x19 grid, and the objective is to line up five stones in a row, either horizontally, vertically, or diagonally. Imagine the following rudimentary representation of...
evolcodegolf
Given a list of integers where negative values represent jumps backward, positive values indicate forward steps, and zeros signify stays, traverse through the list according to the values specified, stopping when an out-of-bounds position is reached. Here’s how it works: - Always start from the first element and incl...
evolcodegolf
"Pattern" is a strategic board game involving a grid composed of 64 hexagonal tiles, each distinguished by a unique combination of three properties: 1. Color: Each tile can be one of four colors - blue, yellow, red, or green. 2. Size: The size of the tile can be small, medium, or large. 3. Symbol: Each tile displays ...
evolcodegolf
This inquiry is a derivative of a previously posed question. Your challenge entails constructing a program or a function capable of computing the Tetration for a pair of integers. Tetration represents the mathematical operation that extends beyond addition, multiplication, and exponentiation. For instance, when prov...
evolcodegolf
In light of the competitive criteria established, I have decided to endorse the Jelly submission while simultaneously granting upvotes to all the other contributions, which collectively employ remarkable methodologies. Introduction Numerous challenges exist that prompt users to devise the shortest possible program aim...
evolcodegolf
Create a specific algorithm or method that triggers a pre-defined exception exclusively when it encounters an exact replica of its own code or logic. This method should seamlessly produce a legitimate return value for every other possible input type, except for instances where the input directly matches its own structu...
evolcodegolf
In this challenge, your objective is to identify substrings that conform to a specified structural pattern. Input You will receive two non-empty alphanumeric strings: a pattern p and a text t. The principle is that every character in p signifies a contiguous, non-empty substring of t, which are positioned adjacent to...
evolcodegolf
Given two non-empty lists of integers, your submission should calculate and return the discrete convolution of the two, ensuring that the resulting output is a list of integers. Interestingly, if you consider the list elements as coefficients of polynomials, the convolution of the two lists represents the coefficients ...
evolcodegolf
Order and Chaos is an intriguing variant of Tic-Tac-Toe that unfolds on a 6x6 grid, introducing a layer of complexity by allowing both players the option to strategically place either an X or an O on their turn! The game initiates with Order making the first move, during which each player sequentially selects an unoccu...
evolcodegolf
Challenge Given an integer n, constrained to be greater than or equal to 4, your task is to generate a permutation of the integers ranging from 0 to n-1 such that no two consecutive integers appear adjacent to each other in the sequence. The overall value of a specific permutation pi is calculated as the sum of the a...
evolcodegolf
Create a program or function that accepts an integer input, which subsequently generates a new program/function as detailed below, while also ensuring that the output program must include a comment specifying the maximum allowable elapsed time. Input: Integer n: Time in seconds before the Time Bomb explodes. Outp...
evolcodegolf
In the realm of chess programming, particularly in relation to algorithmic challenges, a notable absence persists despite the existence of 60+ inquiries tagged with chess: the N-Queens Puzzle remains unaddressed in a straightforward manner. The N-Queens Puzzle is precisely articulated as follows: Given an n x n chessbo...
evolcodegolf
Please provide the most concise C# statement that will convert a string representation of a number to an int[] containing each digit, ensuring that the solution does not utilize any additional libraries or external methods. The string representation to work with is: ```csharp string number = "1234"; number.Array.Co...
evolcodegolf
In light of the numerous quine challenges we've encountered, it has become evident that many existing formats exhibit a striking resemblance to one another. Therefore, the objective here is to devise a diverse array of programs in a singular programming language (a minimum of two), each of which is capable of producing...
evolcodegolf
Background Consider an elementary cellular automaton characterized by a specific rule number, for instance, 28 represented as 00011100… In this context, we can interchange \$\color{red}{\text{the 2nd bit with the 5th bit}}\$ and \$\color{orange}{\text{the 4th bit with the 7th bit}}\$ to derive a rule that performs id...
evolcodegolf
A tangential quadrilateral (refer to the illustrative example above) is characterized by the ability to have an inscribed circle within its confines. Your objective is to derive the feasible value of d based on the provided positive integer inputs a, b, and c, ensuring to incorporate a systematic multi-step reasoning a...
evolcodegolf
The objective of this computational task is to extend the functionality of the bitwise XOR operation across varying numerical bases. Given two non-negative integers \$ x \$ and \$ y \$, along with an integer \$ b \$ constrained by \$ b \geq 2 \$, devise a program or function that executes the generalized XOR according ...
evolcodegolf
Representation of Triangular Numbers Goal: Express a given natural number as a sum of triangular numbers. A triangular number is a number that can form an equilateral triangle, calculated using the formula n(n + 1)/2 for n = 1, 2, 3, ... Your task is to write a program/function that takes a natural number as input an...
evolcodegolf
Compose a succinct code snippet that efficiently determines the mode, defined as the most frequently occurring value, within a specified list of positive integers. Consider, for instance, the list represented by d = [4,3,1,0,6,1,6,4,4,0,3,1,7,7,3,4,1,1,2,8], where the mode is identified as 1, since it appears a tot...
evolcodegolf
You are given two values, each either 0 representing "undefined", or one of the integers 1, 2, 3, or 4. Combine them into a single output based on the following criteria: - If both values are identical and nonzero, return that value: (4,4) → 4 - If the values are nonzero but different, return -1 for "undefined": (...
evolcodegolf
A prime power is a positive integer n that can be expressed as n = pk, where p denotes a prime number and k represents a positive integer. Examples of prime powers include [2, 3, 5, 4, 9, 25, 8, 27, 125]. Subsequently, consider the series of prime powers generated from 2, which are represented as [2, 4, 8, 16, ...] and...
evolcodegolf
Disclaimer: The narrative encapsulated within this inquiry is entirely fabricated and created exclusively for the purpose of providing an introductory context. I have an acquaintance who specializes in architectural design, and, after elucidating the principles of code-golf and this particular platform to him, he su...
evolcodegolf
EXPLORATION This is a combinatorial exploration challenge. Determine the total number of distinct n-dimensional tesseracts (where n=1,2,3,4) that can be created using vertices marked with either 1 or 0, while ensuring that no two-dimensional square exists with corners labeled 1-1 and 0-0. To clarify, the prohibited...
evolcodegolf
Suzhou numerals (蘇州碼子; also 花碼) represent a unique set of Chinese decimal numerals that are as follows: 0 〇 1 〡 一 2 〢 二 3 〣 三 4 〤 5 〥 6 〦 7 〧 8 〨 9 〩 These numerals operate similarly to Arabic numerals; however, when encountering consecutive digits from the subset {1, 2, 3}, an alternating patter...
evolcodegolf
Goal Develop a program or function that receives a positive integer n and systematically produces a legitimate series of pitches (hereafter referred to as a Pitch string) with a specified length of n. Input A non-zero, positive integer n <= 100 Output Return a randomized string or list of characters that deno...
evolcodegolf
Recently, I delved into the novel "The Solitude of Prime Numbers," where the main characters are intriguingly likened to twin prime numbers—entities that coexist in proximity yet remain distinctly separate. A twin prime is defined as a prime number that is either \$\require{cancel}2\$ less or \$2\$ more than its count...
evolcodegolf
Numerous inquiries have arisen surrounding quines, which are intriguing programs where the source code precisely mirrors the output generated. In the realm of compiled languages, alternative pairings exist; we’ve previously explored a scenario where the executable matches the output. However, an additional intriguing p...
evolcodegolf
You are tasked with receiving two separate string inputs representing numerical values and returning their cumulative result as a string, all while refraining from converting the inputs into any integer type or utilizing any form of numeric data representation. For instance: string one = "123"; string two = "456"; ...
evolcodegolf
Given a string of length N, such as "Peanut Butter" with N equating to 13, we can observe that there exist N-1 pairs of adjacent characters in the string. For example, in "Peanut Butter," the first of these 12 pairs is "Pe," the second is "ea," and the final pair is "er." When examining the character pairs, if a majo...
evolcodegolf
Moderator note: The platform previously known as https://strawpoll.me has officially ceased operations, and its associated API is no longer functional or able to provide data. Consequently, new entries cannot fulfill the intended task, resulting in the challenge being closed to avoid further submissions. Strawpolls ar...
evolcodegolf
A paradox-machine is an intriguing program concept that extends the ideas of a truth-machine by introducing an element of contradiction. Here’s how a paradox-machine operates: 1. Accepts an input value (either 'true' or 'false') from the user. 2. If the input is 'false', the program should output 'true' and cease exec...
evolcodegolf
In the context of the ValiDate ISO 8601 challenge by RX, where the objective was to utilize standard regular expressions for the dual purpose of validating conventional date formats alongside their specific values—a task primarily associated with RX, while the latter aspect was notably atypical—the prevailing solution ...
evolcodegolf
**Introduction** Your task is to challenge the status quo of numerical data interpretation! In an era dominated by quantitative analysis, you are called to identify and validate unexpected correlations within datasets. **Specification** **Input** You will receive a dataset represented as a list of dictionaries...
evolcodegolf
Given two distinct strings, denoted as 'a' and 'b', perform a comprehensive analysis to determine the frequency of 'b' as a substring within 'a', specifically accounting for scenarios where occurrences of 'b' overlap with one another. It is crucial to note that a count of 1 should be disregarded, as a valid overlapping...
evolcodegolf
I am developing a computational algorithm to enumerate all distinct semimagic squares [1] of a specified order. I am utilizing the following rigorous definition: An \$n\times n\$ grid is populated with integers \$1, 2, \cdots, n^2\$. Each integer must be unique within the grid. The summation of each individual row and...
evolcodegolf
Challenge Given an input consisting of two integers, <n1> and <n2>, where each integer can only assume the values of -1, 0, or 1, your task is to return the corresponding cardinal direction based on these integers. Specifically, a positive value along the x-axis indicates a movement towards the East, while a positive...
evolcodegolf
In the realm of cryptographic communication, messages can often be concealed through various means, such as steganography. In this challenge, you are tasked with developing a program or function that hides a text message within a seemingly normal string. The hidden message should be retrievable only by applying a speci...
evolcodegolf