instruction_seed
stringlengths
29
40.5k
source
stringclasses
6 values
Craft a function that accepts a single argument: a non-negative integer t. This function must implement a mechanism to halt the execution of your program for a duration of precisely t seconds, emulating the behavior of time.sleep(t) in Python or WAIT t in BBC BASIC. However, you are explicitly prohibited from utilizing...
evolcodegolf
Given an integer matrix, your task is to determine whether it qualifies as a rank-one matrix, which is defined by the property that each row is a scalar multiple of a singular vector. For instance, consider the following matrix: ``` 2 0 -20 10 -3 0 30 -15 0 0 0 0 ``` In this example, every row can b...
evolcodegolf
In a moderately sized classroom setting, certain lectures are allocated for collaborative group work. The educators prefer that students do not consistently form groups with the same peers; hence, they proactively assign group compositions ahead of time, ensuring that every student has the opportunity to collaborate wi...
evolcodegolf
The Challenge There are N distinct urban centers arrayed linearly along a one-dimensional axis. The i-th urban center is positioned A[i] kilometers to the right of a defined origin point. It is stipulated that no two urban centers occupy identical coordinates. Your task involves establishing an electrical distribution ...
evolcodegolf
I'm exploring a way to optimize a solution for a competitive programming challenge that requires returning either 'yes' or 'no' based on the presence of a keyword within a predefined string. I've condensed the logic into a simple keyword match, testing if the input argument, $1, is found within a specific constant stri...
evolcodegolf
The challenge Given a specified input string alongside an integer n, your task is to systematically truncate any sequences of consecutive characters to a maximum length of n. These characters can encompass any type, including special characters. The function must be case sensitive, and the value of n can vary from 0 ...
evolcodegolf
Given that there are already 30 distinct challenges centered around the mathematical constant pi, yet none specifically require you to ascertain the nth decimal, it prompts a unique task... Challenge For any integer within the specified range of 0 <= n <= 10000, systematically compute and display the nth decimal of pi...
evolcodegolf
In moments of casual contemplation while attempting to factor arbitrary integers that cross my path¹, I occasionally discover that the process is far simpler than my initial assumptions led me to believe. For instance, consider the number 2156: it dawns on me that both 21 and 56 are multiples of 7, thus confirming that...
evolcodegolf
In-Depth Analysis Considering a sequence of individual numerals, determine the minimum number of mathematical operations required to achieve a total of exactly 100. Input A string comprising various digits, which may appear in a random or non-sequential arrangement. The sequence of these digits remains fixed; how...
evolcodegolf
Please delineate a comprehensive strategy to generate a sequence that initiates from the character 'a' and systematically progresses through the following order: a, b, c, d, ... , y, z, aa, ab, ac, ... , ay, az, ba, bb, bc, ... , zy, zz, aaa, aab, aac, ... , zzy, zzz, aaaa, aaab, aaac, ... To achieve this, you will b...
evolcodegolf
In this sophisticated variation of a quine, your program is required to produce its own source code transposed diagonally from the top left to the bottom right while also including comments that describe the process for each output line. For example: your program on four lines outputs yof ono u u r r      p l r...
evolcodegolf
Craft a solution that, upon receiving two non-negative integers \( a \) and \( b \) (where \( a < b \)), meticulously determines and enumerates all the nations from the list of the Top 100 Countries by Area provided below, such that their geographical area falls inclusively within the defined range: \( a \leq \text{are...
evolcodegolf
Inspired by the educational content provided by tecmath, we delve into an intricate method for approximating the square root of any specified number x. The approach entails initially determining the integer square root s (the largest integer satisfying s * s ≤ x), subsequently employing the formula s + (x - s^2) / (2 *...
evolcodegolf
In this context, it's important to clarify that we are not dealing with a mere duplicate of this particular challenge. When referring to an array, I mean a structured, nested list that maintains a uniform composition and is "not ragged," indicating it comprises either a singular list of elements or uniformly shaped arr...
evolcodegolf
Challenge: Sort the vowels (only vowels) in the given string while ensuring that each unique vowel retains its original count within the result. Note: Vowels are the following characters: A, E, I, O, U Vowel sorting is cyclic i.e. After rearrangement, the first vowel of the sorted string goes where the origina...
evolcodegolf
Given a list of mathematical expressions that universally hold true and consist of modulo remainder calculations involving two numbers and a resultant value, your task is to derive the initial n numbers that satisfy all the expressions within the provided list, ensuring these numbers also fall within a specified range....
evolcodegolf
On November 11th, many nations observe a day of remembrance, but could there be another date that holds even greater significance for honoring peace and heroism? Your challenge is to write a program or function that takes a date (month and day) as input and returns the number of occurrences of the term "Veterans" on th...
evolcodegolf
Task Elaborate a rudimentary regular expression that constitutes a non-empty series exclusively formed from characters 0 and 1, grouping parentheses ( and ), one-or-more repetition quantifier +. In the context of a non-empty string comprised solely of 0s and 1s, your program should ascertain the most succinc...
evolcodegolf
Your task is to meticulously render or display this intricate arrangement of text as outlined below, ensuring that formatting and alignment are precisely adhered to, while also accounting for the correct positioning and any potential whitespace variations: _____ ...
evolcodegolf
Executive summary Given a positive integer k, your task is to identify a comprehensive partition of integers ranging from 1 to n into k sum-free subsets for the maximum n feasible within a time limit of 10 minutes. Background: Schur numbers A set A is classified as sum-free if the self-sum A + A = { x + y | x, y ...
evolcodegolf
Pip is an imperative golfing language with infix operators that also integrates elements from functional and array programming paradigms. What general tips do you have for golfing effectively in Pip, considering both syntax nuances and optimization techniques? I'm particularly interested in approaches and tricks that a...
evolcodegolf
Create a function that evaluates the relationship between three integers, x, y, and z, to determine if the difference between any two of them results in the third. The function should involve a multi-step reasoning process to ascertain all possible combinations and return the correct boolean output based on the followi...
evolcodegolf
Your challenge is to construct a visual representation of a geometric shape inspired by the concept of infinity. The dimensions must be at least 60x60 pixels (vector graphics are acceptable). You may select which infinite shape you wish to depict. Axes, grid lines, and labels are permitted. Ensure that your design inco...
evolcodegolf
Develop a program or function that, when provided with a positive integer n as input, accurately computes and returns Mills' Constant up to n digits, employing a sequence of mathematical reasoning steps to derive the value. The Definition Mills' Constant calculated to six thousand digits can be accessed here. Exampl...
evolcodegolf
The collection of non-negative integers has grown weary of being confined to the same two immediate companions, prompting them to initiate a slight reshuffling of their arrangement. However, due to their inherently relaxed nature, they are keen to remain as proximal as possible to their original positions. They devise ...
evolcodegolf
Your Task Devise a program utilizing ASCII characters, in which five alphanumeric (0-9, A-Z, a-z) characters will be inserted at random into your program's source code. Your objective is to effectively detect and output these characters as they appear within your program. Additionally, your implementation should ensu...
evolcodegolf
DEFINITION Given a set of n elements, generate all possible groupings of those elements such that each grouping contains a unique number of elements. For instance, the output for the set {x, y} would be: 1-element groupings: x y 2-element grouping: x y The output for the set {x, y, z} would be: 1-element gr...
evolcodegolf
Background The Collatz Conjecture is quite well-known. Take any natural number. Triple and increment if odd; cut in half if even. Repeat, and it will reach 1 eventually. This famous conjecture, however, is only that, for it is yet unproven. Little-known to the world, that was not Lothar Collatz's first attempt at f...
evolcodegolf
Consider a stream/file with one integer per line. For example: 123 5 99 Your code should output the sum of these numbers, which totals 227. The input format is strictly one integer per line; you cannot, for example, assume the input is on one line as an array of integers. You can take input either from STDIN, in...
evolcodegolf
I would greatly appreciate any general strategies or nuanced recommendations you could share for effectively golfing in S.I.L.O.S. Specifically, I'm seeking insights that not only relate to coding golf challenges but also uniquely pertain to the functionalities and idiosyncrasies of S.I.L.O.S (for instance, a suggestio...
evolcodegolf
In the intricate realm of ASCII art, we encounter various elements including water sources, designated hash walls, and intricate letter configurations. You find yourself within an enclosure characterized by hash walls represented by the following structure: ``` ####### # # # # # # # ### # # # ####### `...
evolcodegolf
Task Your task is to develop a script that will accept user input and then generate a parody of the song "Twinkle, Twinkle, Little Star," modifying certain words. The input will contain pairs of words where the first word appears in the original lyrics and the second word is its replacement. Input The input will ...
evolcodegolf
This framework illustrates the concept of representing even integers through a recursive definition. In this model, the smallest even number, 0, is denoted as the empty set, and each subsequent even integer, 2n, is defined as the union of the set containing 0 and the set containing the previous even number, 2(n-1). For...
evolcodegolf
Context A significant number of users access various web pages that necessitate the utilization of specialized web browsers due to their inherent incompatibilities. Consequently, you are tasked with devising a script (either client-side or server-side) that outputs solely the name of the web browser being utilized. G...
evolcodegolf
This tweet delineates the myriad potential combinations for ordering Wings from a Chinese restaurant: In the context of ordering Pizza, I typically perform a straightforward analysis to determine which size provides the most advantageous Pizza-price ratio. Yet, the task of minimizing the overall expenditure at this pa...
evolcodegolf
Imagine you have a sequence of Fibonacci numbers starting from the first term, where each number is the sum of the two preceding ones. Let's take the sequence [1, 1, 2, 3, 5, 8, 13, 21, 34, 55]. Step 1 1 1 2 3 5 8 13 21 34 55 ----+----+----+----+---- Step 2 55/ 34/ 21/ 13/ ...
evolcodegolf
You will receive a pair of inputs: a string formatted in run-length encoding that delineates the layout of a racing track, along with a single uppercase character indicating the lane from which the race begins. For instance, the string "3a4A6b5B" translates to the expanded version "aaaAAAAbbbbbbBBBBB". Subsequently, yo...
evolcodegolf
We don't have a single challenge about drawing a real 3 dimensional cube, so here it goes: Challenge Your task is to draw a rotated cube with perspective, ensuring that the color of each face differentiates based on its orientation. It can be in a separate window or as an image. Input Your input is 3 separate n...
evolcodegolf
Your task is to assess the volumetric capacity of a rectangular swimming facility, specifically a pool. You are required to develop a computational algorithm that ingests an input manifested as a 10 by 10 matrix of integers, where the heights are denoted by the letters A through Z, representing values from 1 to 26 in t...
evolcodegolf
Intro This problem is inspired by a recent experience I encountered while developing a computer game, and I believe it provides a compelling scenario for an engaging code-golf challenge. Within the astronomical realm, there exist seven primary spectral classes of stars, each emitting diverse intensities of heat. The ...
evolcodegolf
I possess a manually operated music box designed to produce a specific sequence of four distinct musical notes. Upon cranking, the mechanism selects one of the four strings to pluck, determined by both the crank's position and the rotational direction chosen. When aligned with true north, the orientation of the box (wi...
evolcodegolf
Design a brainf*** program that embarks on a sequential search through memory, meticulously identifying the very first NON-zero cell encountered. The program should initiate its operation within a relatively low range of memory, allowing for potential overhead, counters, and similar elements. Once the scanning of cells...
evolcodegolf
There exists a perplexing element within the 'Curious' badge, specifically pertaining to the "Positive question record." The formula utilized to calculate this record is as follows: (total questions - negative questions - closed - deleted) / total questions. It is crucial to note that the negative, closed, and deleted ...
evolcodegolf
It's been a while since I posted here, so here we go another day another challenge. Challenge: Given a number (n), decompose it meticulously into its constituent prime factors. Input: A positive non-zero integer greater than 2. Output: Elucidate the number into its prime factors, while also detailing the freq...
evolcodegolf
Construct a Numeric Expression: while it inherently pertains to Aheui, it exclusively generates numerical expressions, thereby yielding authentic Aheui code. Aheui is a unique esolang comprised solely of Hangul characters. Due to its linguistic structure, Aheui is incapable of utilizing Arabic numerals. Nevertheless, ...
evolcodegolf
You have been commissioned by the government of North Dakota to develop a secure method for encrypting the state's communications. Your task is to create two distinct programs: one responsible for encrypting a given message and the other for decrypting that message back to its original form. Since the government offi...
evolcodegolf
Goal This is a moderately intricate challenge. Your objective is to unscramble a string by swapping each letter with the subsequent letter of the same case, all the while preserving the positions of non-letter characters unchanged, and ensuring that every alteration you make maintains the overall parity of letters. ...
evolcodegolf
In the high-octane environment of Rocket League, there exist designated controls for utilizing rapid chat functionalities. For PC users, the control mappings are assigned as follows: 1, 2, 3, and 4. To initiate a quick chat, it is imperative to engage two controls simultaneously. For instance, activating the first opti...
evolcodegolf
We are already familiar with the technique of eliminating spaces from a string. However, in the spirit of refinement and decorum, we should consider a more nuanced approach to this task, which can be likened to the act of undressing a string rather than merely stripping it. The process of undressing a string, akin to ...
evolcodegolf
If \$R\$ participants were to engage in a competitive race, what is the total number of distinct sequences in which they could conclude their performance, given that precisely \$T\$ of those participants reach a tie? Challenge Given a positive integer \$R\$ representing the total number of participants and a non-nega...
evolcodegolf
Goal: Develop a program or function that visually represents a given input string in a sinusoidal pattern, adhering closely to the ASCII art format. The ASCII sinusoid Here is one period of the sinusoid: ....... ... ... .. ...
evolcodegolf
There exists a specific category of n×n matrices, identified as the foundational Weyr canonical representation. This particular matrix form can be characterized by its constituent blocks and adheres to the following defining attributes, illustrated in the accompanying reference diagram: - The primary diagonal blocks, ...
evolcodegolf
In the English language, there exists an intriguing and straightforward distinction between the articles 'an' and 'a': the former is utilized before words commencing with a vowel sound, whereas the latter is applied when the initial sound is consonantal. For the sake of maintaining clarity within this challenge, 'an' i...
evolcodegolf
You possess an expansive digital art gallery powered by the latest WebGL technology. Within this gallery lies a unique vertex shader, known as dynamicVertex.vert. The exhibits have been pre-loaded from an artistic JSON format. Your mission is to seamlessly integrate the vertex shader into every 3D model in the gallery ...
evolcodegolf
One of the captivating aspects of contract bridge lies in its intricate "artificial" meta game, which encompasses a complex system of scoring hands as a pivotal component. Bridge is fundamentally a trick-taking card game where each participant is dealt a hand of 13 cards, initiating the game with an essential phase kno...
evolcodegolf
Background You are currently the devoted apprentice of a formidable wizard, whose ongoing project involves the intricate design of a spell intended to generate an inter-dimensional labyrinth capable of ensnaring his adversaries. In this critical phase, he requires you to meticulously program his steam-powered computa...
evolcodegolf
In the context of receiving a set of words alongside their corresponding abbreviations, please determine the systematic method through which these abbreviations can be derived from the original terms. For instance, let us consider the following input: potato ptao puzzle pzze Here, the abbreviation for 'potato' i...
evolcodegolf
Goal Develop a function or a sophisticated program that, upon receiving an input string—such as "The quick brown fox jumps over the lazy dog"—produces the following output: T h e q u i e r t h e c v k o l a b s z r p ...
evolcodegolf
Challenge The challenge is to craft a program that takes the coefficients of any n-degree polynomial equation as input and returns the integral values of x for which the equation holds true, ensuring to check that these values fall within a specified range. The coefficients will be provided as input in the order of d...
evolcodegolf
Conway's Game of Life is a cellular automaton "played" on an infinite grid, composed of cells that can either be in a state of being alive or dead. Once presented with an initial configuration, the board will evolve without end based on the following governing rules: Any live cell with 2 or 3 living neighbours continu...
evolcodegolf
Challenge: Given a character sequence that embodies a complex mathematical expression, return the computed numerical result. Input: A character sequence embodying a mathematical expression: '1 + 2 - 3 * (2/3 * 1)'. Output: The computed numerical result after executing all arithmetic operations. Operators: Possible op...
evolcodegolf
In a whimsical kingdom, a clever wizard has constructed a unique maze of mystical portals connecting houses numbered from 1 to N. Each house corresponds to a different dimension where his friends reside. The portals between the houses create a structure resembling a tree, meaning there are no loops in the connections. ...
evolcodegolf
There exists substantial discourse on the meta-discussion forum concerning the appropriateness of crafting challenge-writing inquiries that maintain relevance to the main topic, contingent upon those inquiries being both highly specific and capable of yielding definitive answers. Nonetheless, we currently lack any such...
evolcodegolf
A renowned archaeologist has uncovered a series of ancient ruins, and you have been tasked with reconstructing the temple structures using a precise, repeatable layout. Below is the blueprint to follow for the temple: /\ /__\ | | |____| __|____|__ | | |________...
evolcodegolf
In discussions aimed at justifying an individual’s perplexing decision-making, it is often remarked that this individual possesses a strategic acumen akin to engaging in “3-dimensional chess,” transcending conventional thought processes. Now, you are presented with the opportunity to immerse yourself in this intricate ...
evolcodegolf
The code available on this platform is diminishing at an alarming rate. To address this pressing issue, we must prioritize investment in sustainable strings. Consequently, your task is to craft a program that accepts a string input and transforms it into a windmill representation. The Challenge Let’s consider a stra...
evolcodegolf
Introduction The challenge that I encountered emerged unexpectedly during my exploration of a personal project aimed at enhancing my problem-solving skills. In an effort to broaden my understanding, I subsequently reached out to various family members, soliciting their insights and suggestions for an equation that wo...
evolcodegolf
...Ordinal numbers, also known as ordinal numerals, serve to denote a position or rank within a sequential arrangement, offering a foundational understanding of order. As referenced from Wikipedia, your assignment involves developing two distinct programs in two different programming languages, each tasked with produc...
evolcodegolf
I have a colleague at work that works from home every Tuesday and Thursday. At around 8:00 AM he sends us a message with the following text: Hello today I'm working from home In order to relieve him from the burden of doing this every day he stays at home, we would like to automate this task for him, taking into acco...
evolcodegolf
Your task is to generate ASCII art that depicts a configuration of a ten-pin bowling setup, where only a selective subset of the pins remains visible, adhering to the principle of minimizing byte size in the representation. The standard arrangement of the ten pins is depicted in a triangular form as follows: O O O O ...
evolcodegolf
Input: Integer n which is >=0 or >=1 (f(0) is optional) Output: The n'th number in the sequence below, OR the sequence up to and including the n'th number. Sequence: (0),1,-1,-3,0,5,-1,-7,0,9,-1,-11,0,13,-1,-15,0,17,-1,-19,0,21,-1,-23,0,25,-1,-27,0,29,-1,-31,0,33,-1,-35,0,37,-1,-39,0,41,-1,-43,0,45,-1,-47,0,49,-1,-51,0...
evolcodegolf
In the realm of number theory, a special category of primes known as "sieve primes" can be defined as prime numbers that remain unfiltered by a specific sieving method applied to their smaller counterparts. In simpler terms, a sieve prime p is one that does not get eliminated when applying the Sieve of Eratosthenes up ...
evolcodegolf
Bailey–Borwein–Plouffe Iterations Exploration While numerous challenges regarding the computation of pi have surfaced on PPCG, very few explicitly instruct participants on the specific algorithms to be utilized. I would like to see detailed implementations of the Bailey–Borwein–Plouffe algorithm across any programming ...
evolcodegolf
Introduction The relentless downpour has finally come to an end. Unfortunately, a critical flaw in @user12345's code has led to the demise of the majority of humanity, leaving only a few survivors dispersed across a vast network of islands. With radio communication now reestablished, there exists a glimmer of hope fo...
evolcodegolf
The TAK function is defined for integers \$x\$, \$y\$, and \$z\$ in the following manner: $$ t(x, y, z) = \begin{cases} y, & \text{if $x \le y$} \\ t(t(x-1,y,z), t(y-1,z,x), t(z-1,x,y)), & \text{otherwise} \end{cases} $$ It can be established that it consistently terminates and resolves to the simplified function depic...
evolcodegolf
Construct a comprehensive solution for the placement of a minimal quantity of designated chess pieces on an mxm chess board, ensuring that every square is either occupied by a piece or is under attack from at least one piece. Input: The input will encompass two parameters: m, representing the number of squares on eac...
evolcodegolf
You are to approximate the value of: $$\int^I_0 \frac{\sin(x^2)}{x + e^{-x}} dx$$ Where your input is \$I\$. Rules You may not use any built-in integral functions. You may not use any built-in infinite summation functions. Your code must execute in a reasonable amount of time (< 20 seconds on my machine). ...
evolcodegolf
While browsing through various social media platforms, one may stumble upon a statement akin to the following: It is evident that, adhering to the PEMDAS hierarchy of operations, the resultant value is unequivocally 11.9. For the purposes of this intellectual exercise, it is essential to note that within this context,...
evolcodegolf
Challenge: There's a perplexing puzzle circulating on social networks that reads: 8 + 2 = 16106 5 + 4 = 2091 9 + 6 = ? Implement a function or operator that, when given two positive integer numbers x and y such that x > y > 0, yields the correct answer as an integer, where the answer's digits are the digits ...
evolcodegolf
The objective is to obtain all possible combinations of hold'em starting hands (every distinct two-card combination) while ensuring the solution is optimized for brevity and clarity in the code. A valid hold'em hand comprises two unique cards drawn from a standard deck of 52 cards, where the order of dealing does not m...
evolcodegolf
Background Information Inspired by this enlightening discussion on Arqade SE In the realm of Minecraft, there exist various types of rails designed to facilitate the transportation of players, entities, and items through minecarts. Among these, regular rails, notable for their ability to curve, hold particular sign...
evolcodegolf
Introduction A decimal is terminating if it has a finite number of decimal digits. For example, 0.4 (2/5) is terminating because it has one decimal digit. A decimal is purely periodic if it has an infinite number of decimal digits and has no decimal digits before its repetent (the part of the decimal that repeats.)...
evolcodegolf
The Setup You are presented with a basic web page that consists of 11 distinct elements: 10 input elements identified by IDs i1 through i10, arranged sequentially one output element designated as out Each input element has value attributes stipulated in the HTML source. The values of any given input can be an...
evolcodegolf
You are tasked with a miniature autonomous robot equipped with four proximity sensors capable of measuring distances to nearby obstacles. While the robot possesses an internal map of the room's layout, it lacks an intrinsic sense of orientation, aside from its ability to align itself strictly along a grid structure. Yo...
evolcodegolf
Create the most concise code snippet that intentionally triggers an error as a result of excessive recursion depth, ensuring to include distinct examples illustrating this in both Python and C languages. Example error in Python: RecursionError: maximum recursion depth exceeded Example error in C: Segmentation fault ...
evolcodegolf
In light of the existing Brainfuck interpreter question from 2011, which lacks clarity and does not adhere to the current site standards, I propose a refined and contemporary version, which has been positively received in discussions. Below are the details for this challenge. Objective Given the Brainfuck code along...
evolcodegolf
Formulate a function capable of accepting a positive integer \( k > 1 \) alongside a non-negative integer \( i \), which produces a k-tuple (or k-dimensional vector) composed exclusively of non-negative integers. The function must establish a bijective mapping from \( \mathbb{N} \) to \( \mathbb{N}^k \); thus, every di...
evolcodegolf
Devise a program or function that accepts an array of individual digits as input and computes the maximum possible aggregate by arranging these digits within a perfect square formation. The input will invariably consist of a count of digits that is a perfect square. An illustrative square configuration for the input 9 ...
evolcodegolf
The MU puzzle presents a challenge where you are required to determine the feasibility of transforming the string MI into MU through a set of defined operations: 1. If the string concludes with I, you may extend it by adding a U at the end. (e.g., MI -> MIU) 2. If the string initiates with M, appending a duplicate of ...
evolcodegolf
In this competitive programming challenge focused on the efficiency of code execution, you are presented with a collection of \$n\$ identical cubes, and your task is to ascertain the total number of distinct architectural structures that can be formed using these cubes under specific constraints: 1. Each cube must be ...
evolcodegolf
Your task, if you choose to accept it, is simple yet intricate. Objective You must craft a program that, upon execution, outputs several (as many as you desire) terms from a sequence of your choosing. This sequence must be a valid OEIS sequence, and additionally, it should have an associated formula expressed in cl...
evolcodegolf
The PGP Word List is a carefully curated collection of 512 English words designed specifically for the verbal communication of byte strings, including but not limited to authentication codes or hashes. This list finds application in secure VoIP software as well as in critical operations, such as the DNSSEC Root KSK Cer...
evolcodegolf
As we are all acutely aware, today marks a pivotal occasion—election day! Your objective for today is to generate a ballot representation based on the provided input. Should the input specify Hillary Clinton, you are to display the following format: Hillary Clinton ===-----===> Donald Trump === ===> _______...
evolcodegolf
Imagine a world where alchemical transformations are not only possible but governed by whimsical rules. Given an input of various elemental symbols, create a composite element through the process of elemental fusion, if feasible. For this challenge, although it is purely imaginative, the fusion process between two el...
evolcodegolf
While in the process of relocating, I accidentally damaged my lamp beyond repair. Consequently, I'm in need of a replacement, and I have a specific request: create a lamp that features a squiggly design! However, I am unsure about the size preferences. Your program/function should accept a numeric input that determines...
evolcodegolf
An analog clock features two distinct hands*: the hour hand and the minute hand. These hands rotate around the clock's face in a continuous manner, with each complete rotation of the minute hand leading to an angular displacement of 1/12th of a rotation for the hour hand. Additionally, two full rotations of the hour ha...
evolcodegolf
OUTPUT: Calculate the total number of seconds that have elapsed since midnight on January 1, 1 A.D., providing the result as an integer value. INPUT: None; you are required to independently derive the current timestamp. TASK: This is a code-golf challenge, where the objective is to achieve the shortest solution ...
evolcodegolf
Challenge Premise Consider a mosaic of \$m\times n\$ tiles, in \$k\$ unique colours designated by integers. Example (\$3\times6\$, four colours): 4 1 3 2 4 2 1 2 4 2 1 3 4 3 2 1 4 4 My poor man's mirror is a pane of glass of width \$\sqrt{2}\cdot\min(m,n)\$. I stand it diagonally on the mosaic, like so: ...
evolcodegolf
The random Fibonacci sequence is defined as follows: $$ f_n = \begin{cases} f_{n-1}+f_{n-2} \text{ with probability } 1/2 \\ f_{n-1}-f_{n-2} \text{ with probability } 1/2 \\ \end{cases} $$ $$ f_1 = f_2 = 1 $$ i.e. whether the next term is the sum or difference of the previous two is chosen at random, independently of ...
evolcodegolf
Gazing from the vantage point of my attic window into the expanse of my neighbor's meticulously maintained yard, I notice a canine companion tethered to a sturdy post situated precisely in the center of the plot. The dog energetically traverses the yard, its movements constrained by the length of its chain, which inevi...
evolcodegolf