instruction_seed stringlengths 29 40.5k | source stringclasses 6
values |
|---|---|
**Mystery Shape AI Challenge**
Welcome to the Mystery Shape competition! This time, we will not simply be playing a game, but rather, our AIs will be tasked with identifying and recreating hidden geometric shapes within a specified 2D grid. Your AI must compete against others to be the most accurate and efficient in u... | evolcodegolf |
To set the stage for this computational challenge, it is imperative to clarify that all numerical values, along with their string representations, will adhere to the decimal (base 10) numeral system. In an effort to accurately convey the concept at hand, I have devised specific terminology that may not be widely recogn... | evolcodegolf |
In any binary tree, each distinct pair of nodes invariably shares a common ancestor, which serves as the foundational root of the entire structure. The concept of the lowest common ancestor (LCA) is characterized as the node that is positioned furthest from the root while simultaneously being an ancestor to the specifi... | evolcodegolf |
Develop a function or a full program that takes an unsigned integer value P and performs the following intricate design task:
Construct a layered star-shaped pattern resembling a "starry spiral" where each outer layer has its points extending outward by P times '*'.
Shifting the entire structure down by 4 lines after... | evolcodegolf |
Six is a number perfect in itself, and not because God created all things in six days; rather, the converse is true. God created all things in six days because the number six is perfect.
I am fascinated by numbers. As were Sophie Germain and Marin Mersenne. To be more specific, these two were fascinated by primes: a n... | evolcodegolf |
Reconstruct the original square matrix utilizing the provided diagonals, which are oriented parallel to the major diagonal (the principal diagonals).
The following diagonals have been provided: [[5], [4, 10], [3, 9, 15], [2, 8, 14, 20], [1, 7, 13, 19, 25], [6, 12, 18, 24], [11, 17, 23], [16, 22], [21]].
Consider th... | evolcodegolf |
Given the visual representation of snakes provided below, where the characters are defined as follows:
```
>>>v
@ ^ v
^ >>>^ v
^ v
^<<<<<<<<<
```
It is important to note that a snake can cross its own body, as illustrated in this example:
```
@
^
>^>v
^<<
```
For a crossover to be dee... | evolcodegolf |
Recently, Neil Sloane, a prominent figure at the OEIS, disseminated an email requesting validation of the present terms and the calculation of additional larger terms pertaining to the latest OEIS sequence A337663, categorized under the keyword "nice".
The operational mechanics of this sequence are as follows: Begin ... | evolcodegolf |
Devise a sophisticated program or function that accepts an odd positive integer N, alongside a string composed exclusively of decimal digits (from 0 to 9). This string signifies a one-dimensional cellular automaton with ten distinct states, where each digit is positioned in its own discrete cell. The rule for transitio... | evolcodegolf |
Develop a program designed to rigorously evaluate the primality of a user-specified integer, returning the result as a Boolean value (with True indicating that the number is indeed prime). Notably, this primality test may include the consideration of the number 1, although it is not mandatory. However, there is an intr... | evolcodegolf |
In a moment of curiosity during science class, I discovered an intriguing method for determining the real fifth root of any given number! Let's illustrate this with the number \$1,052,431\$.
To start, examine the digit in the one's place and refer to the following table for results:
\begin{array} {|r|r|}
\hline
\text... | evolcodegolf |
You will be presented with a string s, which is guaranteed to contain equal numbers of both [ and ] characters, ensuring that the brackets are balanced and that at least one pair exists. Additionally, the string may include various other characters interspersed throughout. Your task is to meticulously analyze the strin... | evolcodegolf |
The Task
Your task is to create a program or a function that, given a sentence, outputs it translated to the Farfallino language, ensuring to treat 'Y' as a consonant while also maintaining the correct punctuation. The usual rules for the farfallino alphabet are based on the substitution of each vowel with a 3-letter... | evolcodegolf |
This challenge derives its inspiration from a specific application.
In contrast to the more complex challenge previously mentioned, this version simplifies the task. It is categorized as code-golf, while the former is labeled as fastest-code.
You will be presented with a square input grid of dimensions 6-by-6, which ... | evolcodegolf |
To effectively engage with the underlying principles of encoding mechanisms, you are tasked with designing and implementing a comprehensive program, function, or subroutine that processes a single nonnegative integer input, which signifies the codepoint of a character within the defined Unicode range (0 to 0x7FFFFFFF i... | evolcodegolf |
The following inquiry draws inspiration from an exemplary response. The task at hand is to develop a program or function that accepts a positive integer as input, subsequently generating an output of the phrase "Happy new year to you" or a closely related variant, ensuring that the aggregate character codes of the resu... | evolcodegolf |
Challenge:
Given a string, rotate every character by its respective index while also ensuring that the rotation wraps around the defined character set. For instance, 'Hello' should yield 'Hfnos' under this scheme.
Input:
Input is given as a string s, where the length of the string satisfies 2 < s ≤ 100. The input ... | evolcodegolf |
You are presented with a conundrum:
Imagine you roll a fair die n times; what is the likelihood of rolling a sum m that corresponds to a perfect square?
For example, if n = 2, the possible outcomes for sums are:
- Roll combinations producing sums: {2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12}
- Perfect squares among them are... | evolcodegolf |
Within the Vim text editor, users can effectively replicate a command by prefixing it with a numerical value; for instance, employing 3dd would yield the same result as executing dd three times in succession. This capability of repetition extends beyond mere Vim commands, as string manipulation can be conducted similar... | evolcodegolf |
Devise the most succinct program that, upon receiving an input string, returns the string with each character's case inverted, while adhering to the additional stipulation of not using any loops. For example, if the input string is "HeLlO," the expected output should be "hElLo." Importantly, neither aggregate functions... | evolcodegolf |
Given a character pattern represented by a specific symbol (e.g., '*', '#', etc.) and a factor for resizing it, which is always a prime number greater than 2, transform the input pattern by replicating and arranging each character in the pattern to fit within a grid defined by the input factor:
**Character Transformat... | evolcodegolf |
In a world where financial institutions are intertwined with mystery and deception, a new tournament emerges: The Grand Heist Arena. This event features a series of intense and unpredictable bank heists that pit strategic thinkers against one another. Each contestant begins with a set amount of credits and must navigat... | evolcodegolf |
Full width text is text that has a space after every character, including the last one. For instance, the first sentence of this question becomes:
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 c t e r , i n c l u d i n g t h e l a s t o n e... | evolcodegolf |
This competition draws inspiration from @TechWizard's remarkable event, The Elemental Clash - Bot Battle Royale. While differing in approach, I acknowledge their creative influence.
**Overview**
This is a survival-style competition where individual players strive to outlast all others. The last bot remaining is crow... | evolcodegolf |
Design a function that accepts a multi-line alpha/numeric input and displays it as a visual representation of a digital clock, using '#' for lit segments and spaces for unlit segments. Each character should be represented in a 7-segment display format. For example, the character '3' should appear as:
```
#####
#... | evolcodegolf |
Your objective involves rendering the ASCII representation of the letter "E," structured with a specific format based on five distinct parameters provided as input.
Illustrative Example:
Input: 7,2,+,|,- (Note: Adherence to this precise input structure is not mandatory; however, if an alternative format is utilized, ... | evolcodegolf |
## Language Name, N bytes
### Background
While most programming languages provide straightforward methods for transposing a matrix, this task invites you to venture into a more intricate domain: rotating the secondary diagonals of a rectangular 2D array. The secondary diagonals run in the northwest direction ↖.
### I... | evolcodegolf |
In our previous exploration, we delved into the intricacies of the Bit-Reversal Permutation, focusing on how the arrangement of indices undergoes a transformation. In that scenario, we were provided with an integer n, representing the order of permutation for indices with a total length of 2 raised to the power of n. H... | evolcodegolf |
The Elves enjoy creating intricate patterns with numbers. One day, Glim (a cousin of Bin) proposes a challenging variation: given a positive integer m, each Elf must produce a number that has precisely m alternating runs of ones and zeros in its binary representation. The first Elf announces the smallest possible numbe... | evolcodegolf |
In the realm of combinatorial puzzles, consider a type of array known as a "Permutation Matrix." A permutation matrix is a square binary matrix that results from permuting the identity matrix, containing exactly one entry of 1 in each row and each column, while all other entries are 0.
Your task is to develop an effi... | evolcodegolf |
To break the monotony typically found in introductions, which often dwell on ennui or lethargy, I will forego such clichés and instead provide an intricate, self-referential discourse that not only reflects on the inherent unoriginality of this endeavor but also encapsulates the very essence of meta-commentary in a ric... | evolcodegolf |
Define a function f as follows:
IF x < 0:
f(x) = -√|x|
ELSE:
f(x) = √x
In your programs/functions, each point (x, y) provided as input will correspond to the transformed point (f(x), f(y)). For instance, if the points (4, -2) and (-1, 5) are provided, your program will handle the resulting points (2, -√2) and ... | evolcodegolf |
The symmetric group \$S_4\$ is the set of all permutations of four objects, representing various arrangements. This group encompasses 24 unique elements: all possible ways to arrange the numbers 1 through 4.
The challenge involves understanding the composition of permutations: given two permutations, produce the resu... | evolcodegolf |
Develop a sophisticated program or function that processes two distinct inputs:
1. A textual message, which may contain various formatting nuances.
2. An extensive English language dictionary, sourced from the provided Github repository (encompassing approximately 60,000 words).
The program should output the total co... | evolcodegolf |
Schlosberg Numbers
In issue 5 of Mathematical Reflections, Dorin Andrica proposed the problem of characterising the positive integers n such that \( S(n) \) is an even integer. Eight individuals submitted correct solutions demonstrating that these integers n correspond to instances where \( S(n) \) is even. The publi... | evolcodegolf |
UPDATE:
The gist-files are updated (including new submissions) as the Controller.java did not catch Exceptions (only errors). It does now catch errors and exceptions and also prints them.
This challenge consists of two threads, this is the catcher thread, the cat thread can be found here.
The controller can be do... | evolcodegolf |
During my recent exploration of some archived documentation, I stumbled upon what appears to be an intriguing concept for a coding competition centered around code golf challenges.
**Introduction**
Among the highly sought-after activities during the annual Cyclist's Grand Competition for Charity (CGCC) is the chall... | evolcodegolf |
Geohash, as an encoding system for geographic coordinates, offers distinct advantages over conventional numerical representations of latitude and longitude by condensing positional information into a more compact code.
Your task involves a computational challenge: taking two floating-point values representing latitude... | evolcodegolf |
A unique aspiration for 2024 is to promote biodiversity. Let's begin with code exploration. Code exploration, that is!
Your objective is to output the word "biodiversity" to STDOUT, with or without trailing newline (and only that). However, you must do this by reimagining some legacy code from open source projects. He... | evolcodegolf |
The task at hand involves a moderately complex computational operation: given an integer represented in a 32-bit format, your objective is to accurately convert this integer into its corresponding floating-point value according to the rigorous specifications of the IEEE 754 (32-bit) standard.
To clarify, you must int... | evolcodegolf |
Your challenge is to create a program or function that computes and outputs the GCD of its inputs in one programming language and the LCM of its inputs in a separate language, ensuring that the implementation in each language employs distinct algorithms. Builtins for GCD or LCM (I'm looking at you, Mathematica) are all... | evolcodegolf |
Winner
CJam, 74 bytes by Optimizer
Task
Receive an integer n as input via the console or from a file.
Calculate the total of the nth prime number, the square of n, the nth triangular number, and the cube of n. Additionally, include the factorial of the first decimal digit of the square root of n and the xth Fi... | evolcodegolf |
In accordance with Luke's directive and Peter Taylor's contribution to this intricate challenge.
Overview
Tic-tac-toe is a universally recognized game, but in this variation, we will incorporate a fascinating twist. Instead of traditional gameplay, only crosses will be utilized. The objective is for the first player... | evolcodegolf |
Do you recall these fascinating challenges?
Your task today is to design the most concise program that enables your pet to evolve into one of at least seven distinct creatures. The specific form your creature takes will depend on a randomly generated percentage derived from an RNG and the name assigned to it (sourced ... | evolcodegolf |
Your task, as outlined in the title, is to engage in the challenging endeavor of deducing my password (in a manner of speaking). You are required to compile a comprehensive and extensive list of every conceivable password that I might potentially utilize for my 4-digit online vault.
Specifications:
- The passwords ca... | evolcodegolf |
...counted!
Your task is to implement a function that receives a variable denoting a sum of currency in dollars and cents alongside an array detailing specific denominations of coins. The objective is to determine the total number of unique combinations of the provided coin values that would total the specified monetar... | evolcodegolf |
Craft a succinct program or function that retrieves and returns the precise vote tally of its corresponding Stack Exchange response at the moment of execution.
This computational solution may reference the following URL (codegolf.stackexchange.com/questions/82609) from the web; however, the following constraints must... | evolcodegolf |
Input a series of 2-digit hexadecimal values, and produce their corresponding binary representations, where every instance of '1' is substituted with an 'X' and every '0' is represented as a blank space.
For instance, with the given input
Input = FF, 81, 47, 99.
Converting these values yields:
FF = 11111111 in bina... | evolcodegolf |
## Language Name, N bytes
Consider the functions associated with prime factorization.
Let \$ \text{N}(x) \$ be defined as the sum of the prime factors of \$ x \$, counted with multiplicity. For instance, for \$ x = 12 \$ (which has prime factors \$ 2, 2, 3 \$), \$ \text{N}(12) = 2 + 2 + 3 = 7 \$.
Now, let’s introduc... | evolcodegolf |
Given a collection of N non-negative integers, please produce an output where each integer is left-padded with spaces to achieve a uniform length of N characters. Alternatively, you may provide a character or string representation of the results. It is understood that N will always be at least as large as the number of... | evolcodegolf |
You are already aware that the atoi function from the stdlib.h library is responsible for transforming a character string into a corresponding integer value.
```c
atoi
(copied from here)
int atoi (const char * str);
```
### Convert Character String to Integer
This function meticulously analyzes the C-string str, dec... | evolcodegolf |
I understand the redundancy, yet here we go with yet another numerical challenge involving prime numbers...
Related
A kth-times-isolated prime is defined as a prime integer p such that the integers p-2, p+2, p-4, p+4, ... up to p-2k and p+2k for a specified non-negative integer k are all non-prime. For instance, the i... | evolcodegolf |
You might find it intriguing that the scenario presented resembles a labyrinth, albeit with a unique twist.
Rules:
Input is a two-line string, consisting of *, 1, x and X. This string represents a labyrinth through which one must navigate. The lines must maintain equal length, and additionally, there is a restriction... | evolcodegolf |
In this computational task, you are tasked with the transformation of a directed graph that may include self-loops into an undirected graph devoid of such self-referential edges.
Your input consists of a directed graph defined by a vertex set {0, 1, ..., n-1} for any natural number n ≥ 0 (or {1, 2, ..., n} in the cas... | evolcodegolf |
Basic rules (distinct from my own)
Story
In the distant future of the year 4579, humanity has undergone a remarkable transformation, now possessing 2 hands, each with a staggering 1001 fingers. The traditional game of chopsticks has evolved, shifting its mechanics to be based upon intricate point systems. In this bizar... | evolcodegolf |
You may already possess a foundational understanding of the Cartesian product, which involves generating a comprehensive list of all conceivable pairs formed from elements of two distinct lists. For instance, the expression:
\$
\left[1,2\right] \times \left[3,4\right] = \left[(1,3),(1,4),(2,3),(2,4)\right]
\$
illustrat... | evolcodegolf |
This is a loose continuation of my earlier challenge on constructing graphs.
Background
An eccentric artist has hired you to estimate the structural integrity of his sculptures. He creates his works of art by taking a bunch of cube-shaped magnets and dropping them one by one into a huge pile. To better analyze his meth... | evolcodegolf |
Create a function that interprets various musical notes and their relationships. For instance, note("C") should return "Do", and note("F#") should yield "Fi". The function should handle chords as well, such as chord("Cmaj") returning ["C", "E", "G"].
Input should be processed using standard input, where each line sta... | evolcodegolf |
Explore
Given a matrix of non-negative integers, identify if there exists a "loop" of valleys. A valley is defined as a closed loop of cells where all the cells within the loop contain a positive integer that is less than a certain integer k, and all the cells directly surrounding this loop must be strictly greater th... | evolcodegolf |
Craft a program in a programming language of your preference that accepts a textual string as input and subsequently produces an encrypted version of that string.
Algorithm:
Assume that each character is uniformly encoded as a single byte, adhering strictly to the ASCII standard. The extended ASCII codes should corr... | evolcodegolf |
Atomic chess is an engaging variant of the traditional chess game where every capture results in an "explosion" that annihilates not only the captured piece and the piece that initiated the capture but also all non-pawn pieces in an adjacent one-square radius. The central aim of this challenge is not to engage in a ful... | evolcodegolf |
Devise a regex expression that successfully matches all strings except for its own representation. For instance, while it must not match the exact sequence "PPCG," it should be able to match other strings such as "something," "PPC," and "PPCG!". Surrounding slashes, which typically signify regex delimiters in various s... | evolcodegolf |
Develop a function that takes an array of elements (first parameter) and a target value (second parameter), such as:
elements = ["X", "Y", "Z", "X", "Y", "X"]
For every element in the array, compute the distance to the nearest upcoming occurrence of the specified target value. If the current element matches the ta... | evolcodegolf |
The cops thread can be found here: The Mystery String Printer (Cops)
Your challenge entails a more intricate set of requirements.
Select a submission from the cops thread that is both recent and deemed unsafe, ensuring it was made within the last 7 days, and print the corresponding string from one of the answers ther... | evolcodegolf |
In this task, you are required to analyze a provided string that is made up of ASCII printable characters and determine the total number of distinct strings that can conform to a specified pattern. This pattern comprises both character literals and regex-like ranges, and follows the intricate grammar outlined below (wi... | evolcodegolf |
Craft a program in x86 machine language, utilizing any version you prefer, that executes a maximal number of instructions before reaching a halt condition, all while adhering to a strict limitation of 32 bytes of code. Begin with all registers set to zero, and make reasonable assumptions regarding the structure and usa... | evolcodegolf |
Your task is to devise M sequences of symbols such that, when you concatenate the first P ≥ 1 together, they yield the product P. The greater the value of M, the better the outcome. However, you must adhere to a unique restriction: no symbol may be reused across your sequences.
Guidelines:
- You may use the same symb... | evolcodegolf |
Given a string of N, S, E, and W, output a bearing (angle clockwise from North in degrees), correct to 5 decimal places, while also validating that the input string adheres to a minimum length of 2 characters. In traditional compass notation, a string is made up of only 2 of these characters (like NNW or ESE). Here you... | evolcodegolf |
Inspired by the concept of a graphical challenge, here’s a unique take on crafting an unusual shape using a horizontal approach.
Imagine designing a horizontal ASCII caterpillar instead of a snake. Your caterpillar will consist of several "segments" represented by a chosen character, but it must also display certain ... | evolcodegolf |
For those who may be unfamiliar, Sigma (\(\Sigma\)) represents a Greek letter that holds significant prominence in the realm of mathematics, particularly as the notation for summation. Given a mathematical expression in the form of a string, which is contingent upon the variable \(k\) and denoted as \(E(k)\), compute t... | evolcodegolf |
These are the representations of raindrops:
! | . " :
These symbolize the various cloud particles:
( ) _ @ $ &
I require an evaluation process for a given block of text to ascertain the presence of rainfall. The criteria for it to be considered raining is that for every instance of a raindrop, there exists a correspo... | evolcodegolf |
The image presented above is an example of a hexa-glyph, an intricate pattern conceptualized during my DiffEq class doodles. The process for creating one is as follows:
Begin by considering a collection of points arranged in the form of a regular hexagram. The central hexagon serves as the boundary for the completed g... | evolcodegolf |
The realm of computational theory is replete with programming languages that are categorized as Turing-complete. Virtually every language deemed functional (and many deemed non-functional) meets the criteria for Turing completeness. In certain instances, languages have inadvertently achieved Turing completeness. This c... | evolcodegolf |
Introduction:
It is widely recognized, and it has likely been adapted into a myriad of languages worldwide: the classic children's melody "Head, Shoulders, Knees and Toes":
Head, shoulders, knees and toes, knees and toes
Head, shoulders, knees and toes, knees and toes
And eyes and ears and mouth and nose
Head,... | evolcodegolf |
Considering a positive integer n, determine the corresponding integer x for which the equation x! = n holds true, ensuring that both x and n are strictly positive integers. It is guaranteed that the provided n will always represent the factorial of a positive integer, thus inputs such as n=23 will never be presented. F... | evolcodegolf |
Upon occasion, I come across an extensive series of alphabetical text that has been encoded using numerical values ranging from 1 to 26. Prior to discovering that an online translator could simplify the task, I would painstakingly transfer the entire encoded sequence into a text document to manually decode it. Fortunat... | evolcodegolf |
Transformation Task
You will receive a sequence of words that may include special characters, digits, and punctuation. Your goal is to transform each letter in the sequence such that all the vowels (a, e, i, o, u) are replaced with their respective uppercase forms, while all consonants are changed to their lowercase ... | evolcodegolf |
Introduction
Just on Hacker news, John Resig contemplates transforming a query “foo=1&foo=2&foo=3&blah=a&blah=b” into one that looks like this: “foo=1,2,3&blah=a,b", https://johnresig.com/blog/search-and-dont-replace/. He claims "being 10 lines shorter than Mark’s solution". Query strings consist of sequences of name... | evolcodegolf |
You are given two positive integers a and b. Your objective is to generate an array B through a specific iterative process:
Begin with B = [a, b] and k = 2.
For each consecutive pair (m, n) in B whose total is divisible by k, place (m * n) / k between m and n.
If any pairs meet this condition, increase k and repeat f... | evolcodegolf |
Construct a program or function that, when provided with a block of textual content, a specified quantity of columns, and a defined column width, organizes the text into a structured columnar format. This exercise focuses on the nuances of plain text typography.
Rules
Input
The text will be a sequence of printable AS... | evolcodegolf |
The challenge at hand involves the development of a program in a programming language of your selection, aimed specifically at outputting the first 20 numbers of the Fibonacci sequence. However, the additional stipulation is to accomplish this task utilizing the minimum number of unique characters, including whitespace... | evolcodegolf |
Design a program that takes a sentence as input and computes the frequency of each unique word within it. Your task is to maximize efficiency and minimize code length while maintaining accuracy in counting.
Specifications:
- The program should handle punctuation and case insensitivity, meaning "word," and "Word" shou... | evolcodegolf |
A palindromic number reads the same forwards and backwards, such as 121 or 12321. This concept also extends beyond decimal (base 10) numbers:
In binary (base 2), certain integers can appear palindromic due to the specific arrangement of their bits.
In hexadecimal (base 16), some numbers maintain their palindromic natu... | evolcodegolf |
In 2014, demoscener Jakub 'Ilmenit' Debski unveiled an intricate 250-byte procedural graphics demonstration crafted for the Atari XL, titled Mona. The task at hand is to meticulously reproduce the depicted image, illustrated below, utilizing any programming language of your choice, while maintaining fidelity to the ori... | evolcodegolf |
The King, in his wisdom, addressed the brave Knight: "Your valorous efforts in battle have not gone unnoticed and will be revered for generations to come. Consequently, I bestow upon you this castle and its surrounding lands. However, due to pressing matters, I cannot escort you to the castle personally. Instead, I sha... | evolcodegolf |
When exploring the depths of online encyclopedias, you often encounter a snippet indicating the number of entries for a searched term, like "Approximately 2,450 entries found." The exact number varies depending on the term you query.
In this task, your goal is to develop a program that generates a linear ASCII histogr... | evolcodegolf |
Problem:
In chess, there exists a well-known rule concerning draw by repetition. When the identical position is manifested 3 times (or more), the player intending to execute the move causing this repetition may claim a draw. While an arbiter might easily detect this in cases where players alternate moves back and forth... | evolcodegolf |
Related: Counting factors in factorials
Today, we will explore the number of times a specific prime number \$p\$ divides \$n!\$ (the factorial of \$n\$) in terms of base \$b\$. In other words: For given integers \$n\$ and \$p\$, calculate the integer \$k\$ which represents the highest power of \$p\$ that divides \$n!\... | evolcodegolf |
Challenge
Given a comprehensive list of numeric values, calculate the population standard deviation of this collection. Utilize the following mathematical equation to compute the population standard deviation:
Input
The input will consist of a sequence of integers presented in any conceivable format (list, string, etc... | evolcodegolf |
We face a growing challenge: the scarcity of (semi-)easy tasks tailored for beginners, particularly as the pool of straightforward options becomes increasingly depleted. In response, I've endeavored to devise a task that strikes a balance between accessibility for novices and novelty, ensuring it is not a mere replicat... | evolcodegolf |
In Vernor Vinge's remarkable and intellectually stimulating narrative titled A Deepness in the Sky (which, incidentally, comes highly recommended for those who appreciate profound science fiction1), the Qeng Ho—a culture seamlessly interwoven across multiple star systems—operates under an entirely distinct temporal fra... | evolcodegolf |
Challenge:
Input: A strictly positive integer \$n\$
Output:
Construct an ordered list comprising the integers within the inclusive range \$[1,n]\$, then concatenate this list into a single string (e.g., for \$n=13\$, the resultant string will be 12345678910111213). Subsequently, we shall produce a triangular representa... | evolcodegolf |
Present two algorithms that appear to achieve a similar outcome, where one employs a straightforward approach, while the other utilizes an intricate method with additional steps. The challenge is to demonstrate that despite the complexity, the more complicated algorithm performs noticeably worse in terms of efficiency.... | evolcodegolf |
Inspired by this intriguing game that challenges one's ability to decode patterns in ASCII art, the task is as follows:
Challenge:
Given an ASCII art string that represents a numerical value, your objective is to decode and output that specific number, paying close attention to the variations in symbols and their ar... | evolcodegolf |
Here is my pet flower emoji, Daisy: 🌼
Flowers get very chilly in strong winds, so Daisy is feeling a bit cold... Let's create a cozy scarf to wrap around her to keep her warm!
\~~~~/
\ /
\/
🌼
This looks good! Daisy is snug and warm with her scarf. However, if the scarf is not wide enough, some par... | evolcodegolf |
Challenge
You have been tasked with manipulating a sequence consisting solely of numerical digits from 0 to 9. Your objective is to permute this sequence such that each position contains a distinct digit compared to its original placement prior to the permutation.
For illustration:
In : 287492
Out: 892247
If... | evolcodegolf |
Imagine you've encountered an intriguing device known as a "perpetual dice calendar":
Two 6-sided dice can be rearranged and rotated. One die showcases the numbers 0, 1, 2, 3, 4, and 5, while the other displays 0, 1, 2, 6, 7, and 8. This configuration allows any day of the month—from 1 to 31—to be represented on the ... | evolcodegolf |
In this TED-Ed presentation (recommended for preliminary viewing), a fascinating puzzle unfolds involving the painting of 27 unit cubes, each of which must be coated with one of three colors—red, green, or purple—on every face. The objective is to assemble these cubes into a singular 3x3x3 structure that exhibits only ... | evolcodegolf |
Background
Manufactoria is an engaging game centered around programming, where players must employ a two-dimensional programming language to successfully complete various tasks. If this concept is unfamiliar to you, the best way to grasp it is to play through the initial levels of the game.
Challenge
Your objective is... | evolcodegolf |
Your objective is to develop a sophisticated program designed to determine whether a given real number, confined within the range of 0 to 1, can be classified as irrational. As it stands, this task is evidently unattainable, so we will resort to the following operational definition:
Let p represent your program, whic... | evolcodegolf |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.