instruction_seed stringlengths 29 40.5k | source stringclasses 6
values |
|---|---|
Organizations tend to favor industriousness among their personnel, while the workforce often yearns for reduced hours, particularly those compensated with a fixed monthly salary rather than an hourly wage. The most indifferent employees are contemplating a hypothetical scenario in which each month consistently commence... | evolcodegolf |
Your task is to create the most concise program or function that finds all unique permutations of any given string while preserving the order of identical characters. For instance, for the string "aab", the output should be:
['aab', 'aba', 'baa']
Notice how the order of 'a's is maintained in the permutations. Input an... | evolcodegolf |
To initiate, let's establish some foundational definitions. A Hadamard matrix is defined as a square matrix composed exclusively of entries that are either +1 or −1, with the additional constraint that the rows are mutually orthogonal to each other. The Hadamard conjecture posits the existence of a Hadamard matrix of o... | evolcodegolf |
Let's devise an intricate two-dimensional programming language, which we'll creatively name befinge. Befinge is governed by five distinct operational symbols:
<>^v, which, as seen in numerous two-dimensional esoteric languages, manipulate the directional flow of the instruction pointer corresponding to their orientat... | evolcodegolf |
A Gray code represents a systematic permutation of binary numerals in which the act of incrementing or decrementing any particular number results in the alteration of only one bit at any given time. For instance, an exemplary Gray code sequence for binary representations up to 7 (which corresponds to 3 bits) is delinea... | evolcodegolf |
Design and implement a function or program that takes as inputs two integer parameters: a starting number and a maximum iteration count. The code should iteratively apply the following operation to construct a new number, continuing this process until only a single digit remains or the iteration limit is reached. For i... | evolcodegolf |
Given a set of n points represented as (a, b) in a 3D space, where a and b are integers ranging from -5000 to 5000, determine the minimum number of spheres required to enclose all the given points. These spheres may overlap, and points can share the same coordinates.
Your task is to write a program that processes an i... | evolcodegolf |
Input a non-empty array of positive integers, each greater than zero. Output a non-empty array of positive integers that encodes the input array, ensuring that the output array does not include any numbers present in the input array and adheres to an additional constraint where the sum of the integers in the output arr... | evolcodegolf |
Delve into the intricacies of an eight-bit binary number system where each bit positioned in an even index adheres to the condition that it cannot be set to 1 if either of its adjacent bits—considering both the most significant bit (MSB) and least significant bit (LSB) as neighbors—are set to 0. It has been established... | evolcodegolf |
I have an affinity for BATCH programming, notwithstanding its glaring absence of diverse functional commands and the notable deficiency of non-integer value support. What drives this enthusiasm? The following illustrates the concept effectively:
SET var=SET
%var% i=0
The evaluation yields:
SET var=SET
SET i=0
Isn't t... | evolcodegolf |
The architecture of an enchanted forest's map file is structured in an intriguing way. This file consists of a series of positive integers, each representing specific attributes of mystical creatures residing within the forest. Each creature can be described using the following sequence:
1. A header, which denotes the... | evolcodegolf |
A challenge many developers face when drawing a graph from scratch to plot some data is generating its ticks. In below graph, there are 6 horizontal ticks (1750, 1800, 1830, 1860, 1880 and 1900) and 11 vertical ticks (0, 10, 20, 30, 40, 50, 60, 70, 80, 90 and 100).
The horizontal bounds of the above graph goes from 17... | evolcodegolf |
Design a function that showcases five distinct big O time complexities based on how it is executed. This function should accept a positive integer M, where M is guaranteed to be less than 2^31.
When the function is called in its unmodified state, it should run in logarithmic time. That is, the complexity should be Θ(l... | evolcodegolf |
A Hamming number, also referred to as a regular number, is characterized by its ability to evenly divide the various powers of 60. In a shift of focus from previous tasks, we now aim to identify and explore the concept of non-Hamming numbers. Specifically, a number \$n\$ qualifies as a non-Hamming number under the foll... | evolcodegolf |
Background
Two numbers, \$a\$ and \$b\$, are said to be interconnected through a Brussels choice operation* if \$b\$ can be attained from \$a\$ by either doubling or halving (if even) a non-empty substring (which may contain the digit 0 but must not have leading zeros) in the base-10 representation of \$a\$.
*This ... | evolcodegolf |
To evaluate the ASCII representation of two distinct vectors, systematically derive the magnitude and directional degree of the resultant vector through a structured multi-step reasoning process.
Input
This can be received via STDIN, read from a local file, or provided through a function call. Here is an example of a ... | evolcodegolf |
Design a circuit using only NOR logic gates that accepts input wires X1, X2, X4, X8, Y1, Y2, Y4, Y8, representing two binary numbers X and Y ranging from 0 to 15, and produces outputs on the wires Z1, Z2, Z4, and Z8 representing Z, the product of X and Y modulo 16.
Your score is calculated based on the number of NOR ... | evolcodegolf |
Your Objective
Develop a program utilizing ASCII characters, wherein five alphanumeric characters (ranging from 0-9, A-Z, and a-z) are randomly embedded into the source code of your program. Your challenge is to accurately identify and output these specific characters that have been interspersed within your code.
C... | evolcodegolf |
Upon returning the results from the most recent topology examination to his students, Professor Manifold found himself apprehensive about the potential for grievances. Aware that his students were familiar with the precise location of his office, he resolved to fortify his office into a fortified enclosure complete wit... | evolcodegolf |
I recently learned from a comment by MathOverflow user pregunton that it is possible to enumerate all rational numbers using iterated maps of the form \$f(x) = x+1\$ or \$\displaystyle g(x) = -\frac 1x\$, starting from \$0\$. Furthermore, to explore the complexity of this enumeration, consider also tracking the total n... | evolcodegolf |
(Title with gratitude to @ChasBrown)
Sandbox
The Background
This challenge draws inspiration from a question that I recently shared on Puzzling Stack Exchange. For those interested, a link to the original query is available; otherwise, I will refrain from delving into extensive details here.
The Facts
Every printable ... | evolcodegolf |
This inquiry serves as the supplementary question to the discourse on Jumblers versus Rebuilders: Engaging in Tetris Block Coding, wherein Rebuilders are permitted to share their innovative solutions. As delineated in the analysis of optimal placements for robbers, this format offers greater versatility in formatting, ... | evolcodegolf |
Input is a single integer where each digit is unique and arranged in ascending order. The valid inputs are:
1
12
123
1234
12345
123456
1234567
12345678
123456789
The expected output is a collection (list, array, or set) containing integers that are all possible combinations of the input digits, sorted in ascending or... | evolcodegolf |
In a prior exercise, we analyzed the concept of Bit-Reversal Permutation, specifically focusing on how the sequence of indices undergoes a transformation. In that scenario, we received an input value n, which represented the order of the index permutation where the total length was designated as 2^n. However, in the pr... | evolcodegolf |
This is a complex fewest-operations challenge that requires the sorting of a vector into ascending order utilizing the minimum number of sub-vector reversals. Your algorithm must exclusively rely on "sub-vector reversals," but may incorporate supplementary operations for arithmetic manipulations, iterative loops, or va... | evolcodegolf |
To excel in the fastest code scoring methodology presented on this platform, where the primary objective is to devise the most efficient code in terms of execution time, it is essential to adhere to specific performance evaluation protocols outlined in the tag wiki:
The victor of any fastest-code contest is ascertaine... | evolcodegolf |
Introduction (may be ignored)
Putting all positive numbers in their regular order (1, 2, 3, ...) is a bit boring, isn't it? So here is a series of challenges around permutations (reshufflings) of all positive numbers. This is the fourth challenge in this series (links to the first, second, and third challenge).
In ... | evolcodegolf |
In 2009, Hannah Alpert described the "far-difference" representation, a novel way of representing integers as sums and differences of Fibonacci numbers according to the following rules:
every two terms of the same sign differ in index by at least 4, and
every two terms with different signs differ in index by at least ... | evolcodegolf |
For the purpose of this golfing challenge, you will be required to engage multiple programming languages concurrently, necessitating a deeper level of thought.
The task
A Rube Goldberg machine is defined as an elaborate and intricate assembly that performs a remarkably simple action through a convoluted series of s... | evolcodegolf |
Gomoku, or Five in a Row, is a strategic board game involving two opponents who engage on a \$15 \times 15\$ grid, utilizing distinct black and white stones. The ultimate goal is to achieve a line of \$5\$ stones positioned consecutively in any direction—horizontally, vertically, or diagonally—thus securing victory.
*... | evolcodegolf |
Select a prominent computer scientist or a pioneering figure in computer science whose birth year is 1942 or earlier, with the stipulation that 1943 marks the inception of what is considered the 'first' computer. This individual must possess a comprehensive Wikipedia page or an equivalent resource detailing their birth... | evolcodegolf |
You are presented with four integers: \$e,s,b\in\{0,1\}\$ and \$S\in \{0,1,2,4\}\$, where \$e,s,b,S\$ represent the presence of egg, sausage, bacon, and spam, respectively. Your objective is to ascertain whether the selected ingredients align with a legitimate entry on the subsequent menu:
[e]gg | [s]ausage | [b]acon... | evolcodegolf |
Develop an algorithm to identify and display the smallest set of composite numbers that exhibit the properties of being both pseudoprimes and strong pseudoprimes. The goal is to output this set in ascending order within a time limit of 3 seconds. Avoid the use of built-in functions and refrain from storing the identifi... | evolcodegolf |
Craft a string that succinctly encapsulates the current configuration of a Monopoly game as a player embarks on their turn, ensuring that the output remains compact while retaining all critical information. Assessments will be conducted based on the size of the output and the complexity of the source code.
Note: Altho... | evolcodegolf |
Identify all possible combinations of five distinct five-letter words from a provided list, ensuring that the collective letters of these words encompass exactly 25 unique characters. This intricate task is inspired by a thought-provoking video presented by Matt Parker.
Testcases
Utilize this file to rigorously evalu... | evolcodegolf |
Your task, should you be willing to undertake it, involves processing:
A set of commands in PathLang (represented as a string comprising PathLang directives)
A collection of coordinates designated as the enchanted locations, which can be provided in any logical manner.
You must then return a boolean result indicati... | evolcodegolf |
A string is classified as dot-heavy if its Morse code representation has a higher frequency of dot characters compared to dash characters. For instance, the letter E, represented as a single dot, illustrates this classification as Dot-heavy.
Input
The provided string will consist solely of characters from the alphabe... | evolcodegolf |
Background
A polyhex of size \$n\$ is a contiguous shape made from joining \$n\$ unit regular hexagons side-by-side. As an example, the following image (from Wikipedia) contains all 7 distinct tetrahexes (polyhexes of size 4):
A dihex is a polyhex of size 2.
Now, let's define a sticky polyhex as follows:
A si... | evolcodegolf |
Calculating the Count of Trailing Zeroes in a Factorial Base Representation
Today, we shall delve into the intricacies of determining the quantity of trailing zeroes present at the conclusion of \$n!\$ (the factorial of \$n\$) specifically when expressed in base \$m\$.
To elaborate further: Given the integers \$n\$... | evolcodegolf |
Choose a whimsical phrase that is precisely 6 words long, such as The fox jumps over the lazy dog.
Develop a program that, when invoked a total of m times, sequentially displays the first m + 1 words of your selected phrase, maintaining their original order.
For instance, if your program is called MYCODE and your p... | evolcodegolf |
In a simulated exchange infused with the characteristic flair of Austin Powers and Mustafa, you are tasked with creating a brief dialogue. In this scenario, the username of the individual posing the inquiry will replace "Austin," while the source of the responses will be the StackExchange platform, personified as "Must... | evolcodegolf |
Background
Stack Cats is a reversible esoteric programming language conceptualized by Martin Ender. Each command within the Stack Cats paradigm is either self-inverse (depicted by symmetric characters such as -_:T|) or possesses a corresponding inverse command (illustrated as its mirror image, including characters li... | evolcodegolf |
In this intricate programming challenge, you are tasked with generating a compressed representation of a diff. A diff is a dataset that encapsulates the variations between two distinct strings. Your objective is to develop one or more software solutions capable of executing the following operations:
1. Accepting input... | evolcodegolf |
Inspired by a series of challenges, we find ourselves in a dire situation where the malevolent agriculturalist has set your expansive wheat field ablaze. Your immediate objective is to extinguish this inferno with the assistance of your friends, all of whom are equipped with buckets. Consequently, you require a computa... | evolcodegolf |
Design a program that is capable of continuously generating and displaying an uninterrupted stream of random alphanumeric characters (from the sets a-z, A-Z, and 0-9) without inserting any newline characters (\n) between them.
Expected output should resemble:
b7gFDRtgFc67h90h8H76f5dD55f7GJ6GRT86hG7TH6T7302f2f4 ...
... | evolcodegolf |
Have you ever encountered an intriguing challenge, provided a solution, only to discover that another participant posted an alternative solution with a superior score in the identical programming language?
Challenge
Devise a program or function that accepts a PPCG question ID and returns a detailed leaderboard, inc... | evolcodegolf |
The task at hand is straightforward yet nuanced. Given an array comprised of positive integers alongside two distinct positive integer variables representing a beginning and an end value, the objective is to identify the index of the first occurrence of the end variable situated to the right of the initial occurrence o... | evolcodegolf |
Step into the intricate domain of compiler golf, where your challenge is to devise a compiler that produces an array of distinctive FizzBuzz programs based on given specifications.
Your compiler
Construct a compiler that meticulously generates variations of the FizzBuzz program aligned with specifications outlined a... | evolcodegolf |
Given a positive number n, rotate its base-10 digits m positions rightward, ensuring to also output the total number of leading zeroes removed from the final result. This means you will provide the final value after m steps of moving the last digit to the start, while separately indicating how many leading zeroes were ... | evolcodegolf |
Preamble
In our codebase, a unit test was implemented to shuffle a string comprised of \$52\$ characters drawn from the set \$[A-Z]+[A-Z]\$ and subsequently utilized the first \$20\$ characters of this randomized string. This test encountered failure long after its inception due to the absence of any repeated charact... | evolcodegolf |
Ah, Tinder . . . the app that elegantly encapsulates the code golf approach to online dating. With just a few carefully selected right swipes and a dash of serendipity (or perhaps an adorable puppy picture), one could very well amass a greater number of matches than /(?!)/. This particular code-golf challenge revolves ... | evolcodegolf |
Examine the multiplication table of sevens ranging from 7×0 to 7×9:
0, 7, 14, 21, 28, 35, 42, 49, 56, 63
Focusing solely on the digits in the one's place reveals a permutation of the digits 0 through 9:
0, 7, 4, 1, 8, 5, 2, 9, 6, 3
Consider a positive decimal integer N and substitute each digit D in N with th... | evolcodegolf |
Objective
Determine the total number of distinct paths you can navigate from the upper left corner to the lower right corner of a non-square MxN grid. The input will consist of two integers representing the dimensions of the grid, with both values ranging from 1 to 2000.
Output should be a string indicating the to... | evolcodegolf |
Your function must be designed to accept three numerical parameters in any possible sequence:
1. A signed real number (including ±Infinity) - Denoted as N, this is the number for which you will generate a corresponding value within the specified range.
2. A signed integer - This represents the minimum limit of the ran... | evolcodegolf |
You are given a grid representation of a terrain with various types of terrain features denoted by the following symbols:
[a-z] representing movable entities (each entity appears at most once)
# representing fixed obstacles
. representing traversable ground
~ representing water bodies (entities can float here)
For ex... | evolcodegolf |
As part of a complex urban development initiative, you have been tasked with the creation of an advanced program or function that will generate a visual representation of the city skyline, based on detailed specifications provided by architects. Currently, the project is in its nascent stage, permitting only a rudiment... | evolcodegolf |
Context
In the context of "Calculating a specific coefficient in the multiplication of polynomials," I intend to devise a parallel challenge that involves computing a specific coefficient from polynomial division instead.
Polynomial division
We can draw a parallel with integer division: for two integers a and b, ... | evolcodegolf |
TAS Golf
In the style of a tool-assisted speedrun with a code-golf twist, the challenge aims to complete World 1-1 of the original Super Mario Bros game for the NES in your selected programming language in as few bytes as possible, adhering strictly to the in-game controller inputs in the format outlined below. Your p... | evolcodegolf |
In light of your invaluable assistance during the Mark My Mail challenge, PPCG-Post has triumphantly managed to apply the generated barcodes to all its parcels! The next step involves decoding these barcodes.
In this particular challenge, your program will receive a barcode derived from the aforementioned Mark My Mai... | evolcodegolf |
Input
no input for this challenge
The Challenge
Devise a code snippet that generates:
The first 10 prime numbers whose sum of their digits matches the total number of bytes utilized in your code, while also ensuring that your code incorporates at least one function and maintains efficiency in terms of execution... | evolcodegolf |
Identify the unique decade following the year 1776 in American history during which four out of the ten years were prime numbers. Your task is to develop a program that efficiently calculates this decade through logical reasoning, ensuring that the output adheres to the specified format as follows:
1710s
or
1980s
... | evolcodegolf |
In the context of the recent assertions made by Steve Ballmer, the former CEO of Microsoft, who expressed his lingering uncertainty regarding the missteps he may have taken in the mobile sector, it is noteworthy that a corresponding analysis by CodeProject's newsletter remarked, "That article's title could be ended at ... | evolcodegolf |
I would like to explore whether anyone can furnish a succinct snippet of code that induces a compiler's optimization algorithm to exhibit erratic behavior:
when executed without any optimization (or at a lower optimization level), the code completes in X seconds
when executed with optimization enabled (or at a higher ... | evolcodegolf |
Your objective is to craft a piece of assembly code that efficiently determines the order of magnitude of an integer, ensuring minimal clock cycle usage throughout the process.
The term "order of magnitude" specifically refers to the base-10 logarithm (log10), as opposed to log2. The acceptable input values range from... | evolcodegolf |
**Introduction**
In the realm of power electronics, designing a power supply circuit often requires capacitors of specific values (e.g., 100 µF). You search your inventory and find that you lack a 100 µF capacitor. However, you do possess various commonly available capacitor values both above and below this target. B... | evolcodegolf |
Background
An Eisenstein integer manifests as a complex number defined by the expression \$ z = a + b\omega \$, where both \$a\$ and \$b\$ are integers and \$\omega\$ represents the third root of unity expressed as \$\frac{1-\sqrt{3}i}{2}\$. These Eisenstein integers can be represented geometrically as points on a tr... | evolcodegolf |
Incorporating the concept of comparing letter sequences, let's delve into the intricacies of word structures based on their alphabetical characteristics. When assessing a word, we designate a "rise" if a letter appears later in the alphabet than its predecessor, while any equality or decrease signifies a "fall."
To i... | evolcodegolf |
I recently discovered an innovative approach to optimize the process of searching for unique elements in a multi-dimensional array. Traditionally, one might resort to nested loops, traversing each sub-array to identify elements that occur only once. However, consider this Python snippet:
```python
def find_unique(itm,... | evolcodegolf |
Prior to the year 1994, Spanish dictionaries adopted a unique alphabetical arrangement characterized by a specific quirk: the digraphs "ll" and "ch" were regarded as distinct single letters. In this setup, "ch" immediately followed "c," while "ll" came right after "l." Introducing the letter "ñ," which succeeds "n" in ... | evolcodegolf |
Design a function or program that accepts a positive integer, designated as N, and returns two distinct positive integers, X and Y, such that:
N == X multiplied by Y
Both X and Y must have no digits equal to 1, 4, or 9 in their decimal forms.
Examples:
>>> factorize(12)
2, 6
>>> factorize(20)
2, 10
>>> factorize(251... | evolcodegolf |
Challenge
Given two ions, one from a transition metal series with a specified charge and one from a polyatomic group with its own charge, determine the chemical formula for the compound that forms when these two ions combine. Ensure that the overall charge of the resulting compound is neutral, and use parentheses for... | evolcodegolf |
A Friedman Number is defined as a positive integer that can be expressed as a non-trivial mathematical formulation utilizing its own digits along with the operations of addition, subtraction, multiplication, division, exponentiation, parentheses, and concatenation. Conversely, a Nice Friedman Number is a positive integ... | evolcodegolf |
Devise a regex that functions across a minimum of 2 distinct regex flavors (or versions), ensuring it identifies a unique string in each version in which it operates. The strings to be matched in this challenge are the initial words of the Ubuntu code names, presented below. Your regex must capture matches starting fro... | evolcodegolf |
Introduction
Don't you find it frustrating when someone posts an album you love on YouTube, yet the description is merely a track listing? Like the example below:
1. Everything in Its Right Place - 4:11
2. Kid A - 4:44
3. The National Anthem - 5:50
4. How to Disappear Completely - 5:55
5. Treefingers - 3:42... | evolcodegolf |
Your task is to meticulously produce an output of the following text, ensuring that the formatting remains intact and that the intricate structure mirrors that of a comprehensive periodic table:
_____ _____
| 1 | ... | evolcodegolf |
Explore the fascinating realm of Lucas Numbers, a sequence that begins with 2 and 1. Each subsequent number in this series is the sum of the two preceding ones, mathematically represented as L(n) = L(n-1) + L(n-2). The first 20 Lucas numbers are as follows:
2 1 3 4 7 11 18 29 47 76 123 199 322 521 843 1364 2207 3551 5... | evolcodegolf |
Your task is to sort an array containing the strings "quarter", "dime", "nickel", and "penny" any number of times in no specific order and arrange them so that they adhere to this sequence: quarter dime nickel penny (in other words, greatest to least monetary value), while also ensuring that the output preserves the or... | evolcodegolf |
Your mission, should you choose to accept it, involves addressing the critical issue of maintaining social distancing in light of the ongoing global pandemic. You are tasked with developing a sophisticated program that accepts the spatial coordinates of multiple individuals and assesses whether they adhere to the manda... | evolcodegolf |
It is widely recognized that Santa Claus is responsible for delivering presents to residences globally during December; however, the activities he engages in during the remainder of the year are less well-known. In his off-time, Santa is fond of executing elaborate pranks, and he often finds himself playing tricks on e... | evolcodegolf |
Design a sophisticated progress bar that illustrates the advancement of the current year, accounting for both standard and leap years. Your code should effectively calculate and display the percentage of the year that has elapsed since January 1st of the present year. Additionally, ensure that the output includes a vis... | evolcodegolf |
Inspired by a thought-provoking question on SciFi.SE.
Context (with minimal spoilers):
In the cinematic narrative of The Martian, the central character Mark Watney ingeniously utilizes an ASCII table to reference hexadecimal representations of ASCII characters in his quest to re-establish communication with Earth.*
... | evolcodegolf |
Let's embark on a creative endeavor to design a captivating Advent Calendar for this festive season!
Numerous Advent calendars tailored for children are typically crafted in the shape of an expansive rectangular card featuring numbered windows corresponding to each day throughout December, commencing from the 1st (al... | evolcodegolf |
Construct a function that accepts a string parameter comprising of the following elements:
- Single digit numerical values
- Alphabetic characters
- Question marks (naturally)
The purpose of your function is to ascertain whether there are precisely three question marks situated between each pair of adjacent number... | evolcodegolf |
Objective
In the realm of quantum mechanics, evaluate the transformation of a Planck unit value of \$1\$ into a system of natural units characterized by the modified dimensions of fundamental physical constants.
What defines natural units?
Natural units are a set of measurements derived from fundamental constant... | evolcodegolf |
In the context of reversible computation—characterized by the preservation of information—it's essential to examine the efficiency of such computations, especially given their prominent role in quantum computing where they demonstrate significantly greater energy efficiency compared to traditional computing paradigms. ... | evolcodegolf |
Determine the total number of distinct configurations in which unlabelled dominoes can be arranged on a square chequerboard, under the specific condition that the number of dominoes positioned horizontally equals the number positioned vertically, while adhering to the constraint that each domino must align with and not... | evolcodegolf |
Design a program that generates all conceivable combinations of ASCII characters, outputting each unique sequence only once. The program must ensure that every potential string has a corresponding integer identifier, guaranteeing that for any given ASCII string s, there exists a positive integer m such that s is the mt... | evolcodegolf |
A notable trend circulating in contemporary digital culture involves the humorous phraseology of typing 2spooky4me, subsequently followed by another user entering 3spooky5me, adhering to the structured sequence of the format (n)spooky(n+2)me, where 'n' represents a numerical input. Your objective is to code this specif... | evolcodegolf |
Chart the Celestial Body
Given a sequence of movements represented as directional commands, defined by the following celestial navigation map:
NE N NW
E . W
SE S SW
You may utilize the corresponding index numbers (if desired) for clarity:
0 1 2
3 . 4
5 6 7
Your task is to ch... | evolcodegolf |
Background
(Based on a true, heart-wrenching story)
In my time, I've played around with Lisp and similar languages often. I've written with them, ran them, interpreted them, designed them, and made machines write with them for me... And if there is one thing that bothers me, it's seeing Lisp that does not comply wi... | evolcodegolf |
Input
Your input is a series of single-digit integers that may appear in various arrangements, including as a string.
The input will not be empty.
Output
Your output shall present the input sequence, but with each contiguous sequence of odd digits rearranged in alternating ascending and descending order, while ... | evolcodegolf |
It appears we have successfully navigated through this considerable span of time without encountering a fundamental Number-To-Binary transformation conundrum! Although this task is bound to manifest itself in numerous programming languages, it should effectively challenge a variety of esoteric programming languages.
... | evolcodegolf |
Inspired by a thought-provoking tweet from a user who articulated the notion:
it's astonishing how significantly the clarity of code could be enhanced if JavaScript incorporated pipes and pattern matching. Personally, I frequently employ this technique since it optimally leverages TypeScript inference, and introducing... | evolcodegolf |
The challenge presented here may initially seem straightforward, yet it aims to inspire a wealth of innovative and imaginative responses. The assignment entails receiving a string input—whether through a command line interface, a function parameter, or other means—and generating an output that showcases a stringsploded... | evolcodegolf |
Task
Given an integer \$n\in[0,10^{12})\$ in any convenient format, return the number of strokes required to accurately write that character in simplified Chinese, ensuring to capture any variations in dialect and regional differences.
Background
Chinese numerals are expressed in base 10 with a system of digits a... | evolcodegolf |
A game of 2048 unfolds in the following manner:
Each move introduces an additional piece to the board — typically, this will be a 2 with a 90% probability, or a 4 with a 10% likelihood. When two equal pieces are merged, they generate a new piece, which is the sum of the two, subsequently contributing to your overall s... | evolcodegolf |
In the realm of mathematics, one effective method for discerning the specific type of a relation (be it linear, quadratic, etc.) involves the process of calculating successive differences. This entails gathering a sequence of y-values that correspond to a uniform progression of x-values, followed by subtracting each y-... | evolcodegolf |
Your assignment is to develop a program or function that, upon receiving a string composed exclusively of ASCII characters, generates a modified output by reversing the string in a nuanced manner. The output process includes several detailed steps:
1) **Input Example**:
Provide a string for processing, such as:
Hello... | evolcodegolf |
If a string T of length K appears K or more times in a string S, then it is deemed potentially communistic, with the additional constraint that the total length of S must not exceed 100 characters. For instance, 10 in 10/10 is potentially communistic since it appears 2 times and has a length of 2. Note that these subst... | evolcodegolf |
Single moves
The playing field is an infinite two-dimensional square lattice, resembling an unbounded chessboard. A piece designated with a value of N (referred to as an N-mover) possesses the capability to traverse to any grid square that maintains a distance of precisely the square root of N from its current positi... | evolcodegolf |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.