instruction_seed
stringlengths
29
40.5k
source
stringclasses
6 values
Design a function that accepts a non-negative integer (starting from 0 inclusive) as input, and subsequently returns a pair of positive integers representing the numerator and denominator, respectively, by utilizing diagonal traversal. Ensure that previously counted numbers are excluded from consideration, and implemen...
evolcodegolf
Examine the intricate sequence \$(a_n)\$ delineated by the following criteria. \$a_0=0\$ For every \$n=1, 2, 3, \dots\$, define \$a_n\$ as the smallest positive integer such that \$a_n-a_i\$ is not a perfect square, for any \$0\leq i<n\$ In essence, this represents the lexicographically first sequence in which no two...
evolcodegolf
A knight fill represents a unique form of flood fill algorithm leveraging the distinct movement capabilities of a knight chess piece. In this context, consider the following grid representation: ``` 1 1 1 1 0 1 1 1 1 ``` (where 0 designates the starting point, and 1s indicate the connected cells). **Challeng...
evolcodegolf
Task Given the pre-order and post-order traversals of a full binary tree, return its in-order traversal, while also ensuring that the output must reflect not only the correct traversal sequence but also maintain a specific ordering based on the evenness of the node values. The traversals will be represented as two li...
evolcodegolf
Your challenge is relatively straightforward: produce the preceding answer, but in a reversed format. However, in this instance, there exists an additional constraint: you are permitted to utilize only the characters found in the answer prior to the last submission. For instance, if the first response is structured as ...
evolcodegolf
A rigid transformation of a square array represents a sophisticated mapping mechanism that converts square arrays of a predetermined size into other square arrays of identical dimensions, meticulously rearranging their elements while maintaining the invariant distances among all constituent elements. If one were to vis...
evolcodegolf
In this intricate fewest-operations challenge, the primary aim is to transform a vector into an ordered sequence in ascending fashion using the minimal number of specified sub-vector reversals. Your algorithm is restricted to sorting the vector exclusively through "sub-vector reversals"1, while being allowed to incorpo...
evolcodegolf
Minesweeper is a widely recognized and engaging computer game that many individuals have spent considerable time enjoying, where the objective is to uncover the cells designated as mines within a rectangular grid, utilizing clues that indicate the count of adjacent mines surrounding each non-mine cell. Should you be un...
evolcodegolf
The rapidly escalating hierarchy serves as a systematic method for classifying the rate at which functions expand, defined in the following manner (for finite indices): \$ f_0(n)=n+1 \$ \$ f_k(n)=f_{k-1}^n(n)\$ where \$f^n\$ signifies the recursive application of the function f. Illustrative examples include: f0(5) =...
evolcodegolf
In the realm of advanced music theory, understanding compound intervals is crucial. A compound interval is one that spans more than an octave, and its definition builds upon the concepts of simple intervals. For every octave added to a simple interval, you can count it as 12 additional half-steps. Below is a list that ...
evolcodegolf
For this particular challenge, we define a mountainous string as one that adheres to the specific grammar rule M: x(Mx)*, where at each production stage, all instances of x must represent the same character. When visually represented with indentation, a mountainous string could resemble the following structure: A B...
evolcodegolf
It is in my humble opinion that standard text is boring. Therefore I propose a new writing standard, walking words! Walking words are words which will respond to certain characters. For the purpose of this challenge, the trigger characters are [u, d, r, l] from up, down, right, and left. Whenever you encounter such a c...
evolcodegolf
Design a sophisticated program that, upon receiving a name as input, will craft an intricate Valentine’s Day greeting card prominently featuring that name, while ensuring that the accompanying source code reflects a Valentine’s Day motif. The greeting may take the form of either elaborate ASCII art or a creatively gene...
evolcodegolf
Construct a function that generates an ASCII diamond pattern using the digits from 0 to 9, while ensuring that the output adheres to the following guidelines: - The input value \( n \) must strictly lie within the bounds of 0 to 9; values outside this range should yield an undefined behavior. - The diamond should be ...
evolcodegolf
Consider a sequence formed by the decimal representation of a positive integer n. Each digit in the integer contributes to its subsequences by allowing any number of deletions of digits without rearranging the remaining ones. For instance, the decimal representation of 123 yields subsequences like 1, 2, 3, 12, 13, 23, ...
evolcodegolf
In this engaging competition, two players strive to outscore each other by consuming the most valuable tokens, but there’s a strategic twist! Successfully eating consecutive tokens of the same color awards an escalating bonus, yet be vigilant, as your rival may disrupt your strategy by consuming your desired tokens bef...
evolcodegolf
Imagine orchestrating a mesmerizing visual narrative of nature reclaiming an abandoned urban landscape through a series of enchanting growth sequences. Our focus will be on a neglected park where flora gradually overtakes the remnants of human construction, with each day revealing new transformations. Your task is to d...
evolcodegolf
The undertaking presents a straightforward yet promising opportunity for generating exceptionally imaginative responses. The objective is to accept a sequence of characters as an input (via command line, function argument, or similar interface) and produce an iteratively concatenated transformation of that string. An...
evolcodegolf
Is there a programming language that supports single tape Turing machines specified in some recognized format? I am aware multiple formats for expressing them exist, but is there a standard one that adheres to a set of criteria allowing for acceptable publication on this site? If such a standard does not exist, could s...
evolcodegolf
Scenario A classmate of yours is having difficulty completing a project that requires generating the Fibonacci sequence up to the 15th term: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377 Your task is straightforward: create this program for them. However, due to a unique constraint, every time you send ...
evolcodegolf
The Chaos Game serves as an intriguing technique for generating fractals through a structured stochastic process. Commencing with a designated initial point, a length ratio r, and a specified collection of 2D points, the following procedure must be executed repetitively: 1. Randomly (uniformly) select a point from you...
evolcodegolf
In my explorations with Pyth's URL request capabilities, I observed that Google consistently provides responses with varying lengths, typically around ~10500 characters. Your challenge is to develop a program that accurately computes and displays the average length of the HTML responses obtained from numerous requests ...
evolcodegolf
The Challenge You are tasked with crafting a comprehensive program that ingests seven numerical inputs via STDIN and subsequently outputs the two-dimensional historical representation of a specific cellular automaton (CA) to STDOUT. This is a coding exercise that emphasizes brevity. Input Formatting The input con...
evolcodegolf
Consider a positive integer \$m\$. If we were to list all of its divisors in ascending order, the largest divisor will always be \$m\$ itself. However, if we only take the second half of the divisors (those greater than \$\sqrt{m}\$), it becomes increasingly challenging to identify the original integer based solely on ...
evolcodegolf
You are tasked with creating a unique higher-order function that operates similarly to the previously mentioned function, yet with a twist in the argument handling. The goal is to design a function that takes three arguments: a black box function, \$h\$, that takes a single integer and returns an integer; a black box f...
evolcodegolf
This challenge originates from the game "Keep Talking And Nobody Explodes." It resembles one of those childhood toys where you matched an emerging pattern, although this variant appears to be an inexpensive imitation likely acquired at a dollar store. – From the manual Objective The Simon Says module is equipped with ...
evolcodegolf
Motivated by this intriguing mathematical challenge and an ongoing project I am pursuing, I present the following scenario: Challenge: Given a non-empty collection of distinct points situated within three-dimensional Euclidean space, determine the diameter of the smallest enclosing sphere that encapsulates the enti...
evolcodegolf
In the realm of binary switches, I am faced with a scenario in which I can depict the state of these switches as a bit string. Unfortunately, the previous user has left them in a disordered condition, which is quite bothersome. I maintain a meticulous approach, adhering to one of four designated "tidy" configurations: ...
evolcodegolf
Create a program that, upon receiving a single argument representing the file path, meticulously processes the specified file by systematically replacing all occurrences of Windows-style newlines (\r\n) with Unix-style newlines (\n), subsequently ensuring that the modified content is accurately written back to the orig...
evolcodegolf
I thought it might be intriguing to transform a classic sliding puzzle into a number-crunching race. Here it is. Task Given a 4x4 grid of distinct integers, you need to determine how many moves it takes to sort the grid in ascending order by sliding tiles (numbers) into the empty space, which is represented by a 0....
evolcodegolf
In a competitive scenario, you and a companion engage in a challenge - who can surpass the limits of the maximum capacities of the most containers? There exists a total of n containers, distinctly numbered from 1 through n. Each of these containers is designed to hold a specified maximum volume of water, measured in li...
evolcodegolf
In the realm of educational techniques employed to impart multiplication skills to Japanese schoolchildren, there exists a visually engaging method [citation needed] that involves intersecting lines and their crossings to derive answers. Image Source Your assignment is to realize this technique using ASCII art. You wi...
evolcodegolf
For this intricate challenge, you will be tasked with the creation of three distinct code snippets: The initial code snippet must serve as a quine, effectively producing its own source code upon execution. The second code snippet should accept input and subsequently display it in its entirety. The third code snippet i...
evolcodegolf
To execute a perfect shuffle in a creative variation, imagine you possess a sequence of unique magical tokens arranged in a circular formation. Instead of cutting the array into halves, your task is to divide the tokens based on the number of symbols they represent; odd-indexed tokens will form one group, and even-inde...
evolcodegolf
During this festive season, countless individuals eagerly anticipate the arrival of their holiday-themed advent calendars! For those unfamiliar with the intricacies of an advent calendar, these unique countdown devices are traditionally employed to mark the days leading up to Christmas. Based on my childhood experience...
evolcodegolf
Super Mario Galaxy showcases two intricately structured rhombicuboctahedron-shaped* planets adorned with platforms that diminish in size as Mario traverses them. If Mario should inadvertently tumble into a triangular crevice or a gap left by a tile he has previously interacted with, he will be irrevocably engulfed by t...
evolcodegolf
Crossing Sequences Exploration Presented with a collection of positive integers A, we define an increasing sequence as one where each element is greater than or equal to its predecessor; conversely, a decreasing sequence is characterized by each element being less than or equal to its predecessor. Examples of increasin...
evolcodegolf
Design an intriguing task for you. Your objective Devise a program or function that takes a string input representing a polygon's vertices, given in the format of x1,y1;x2,y2;x3,y3;...;xn,yn, and computes the perimeter of the polygon formed by these points. For those needing a refresher on calculating the perimeter...
evolcodegolf
Curious about the intricate web of nations that share borders beyond mere adjacency? You’re not alone! Here’s an engaging task for you. I have compiled a list of countries along with their neighbors below in a structured format. Your challenge is to design a program that takes a specified country name and a given numbe...
evolcodegolf
To deviate from conventional binary representations, you are required to enumerate from 1 up to a specified integer in the negabinary number system concatenated with the negaquaternary system. Illustratively, present the results in a structured array format: [11, 1102, 1113, 100130, 101131, 11010132, 11011133, 1100012...
evolcodegolf
In particular, the second law of thermodynamics posits that within an isolated system, characterized as an execution environment for a program or function (hereafter referred to as "program"), the entropy associated with a non-reversible computational process, specifically the execution of code, tends to augment as the...
evolcodegolf
Given two integers, A and B, output A if A-B (A minus B) is in the inclusive range of integers from A to B, otherwise output B. Additionally, if A equals B, output the sum of A and B instead. "A minus B" is standard subtraction. "A to B" is the range of integers starting at A and ending at B, including both A and B. Fo...
evolcodegolf
When considering the challenge of shuffling a deck of cards, it often proves to be a complex task for younger individuals. Consequently, they must devise methods to achieve a reasonably well-shuffled deck with minimal effort. One effective technique that yields satisfactory results is: 1. Extract the top card from t...
evolcodegolf
Develop a program or function that accepts a positive integer N and generates a scaled pattern of circles fitting within an N×N pixel image: This image exemplifies a valid output for N = 946. For clarity, all small light-blue circles share an identical radius and are arranged within the four dark-blue circles consiste...
evolcodegolf
During the course of my exploration pertaining to an alternative challenge I'm conceptualizing, I encountered an intriguing Cayley graph, particularly the one illustrated here. As a recognized leader in crafting ASCII art challenges, I felt compelled to design an ASCII art task centered around this graph. Your mission ...
evolcodegolf
The task at hand entails calculating and displaying the disparity between the timestamps associated with ICMP originate and receive packets. The objective is to accurately pinpoint which segment of an asymmetric internet pathway contributes to the observed packet delay. To facilitate this process, one can employ hping ...
evolcodegolf
Given an input array of dimensions m*n, where each cell is filled with either a 'P' or a 'T', the sole permissible operation involves flipping entire columns. This operation entails switching the values in every cell of the affected column (e.g., transforming 'P' to 'T' and vice versa). Your objective is to devise a mu...
evolcodegolf
Create a matrix for two positive integers N >= 2 and N <= 100, ensuring that the matrix adheres to the following stipulations: The First Number is positioned at [0,0] while the Second Number occupies [0,1]. The Third Number is located directly beneath the First Number at position [1,0]. Subsequent numbers should be ar...
evolcodegolf
How thoroughly acquainted are
evolcodegolf
Your objective involves developing a highly proficient bot capable of playing the intricate game of Atomas, aiming for the maximum achievable score. To comprehend the mechanics of the game, consider the following details: The initial gameboard is composed of a circular arrangement featuring 6 "atoms," with numeric v...
evolcodegolf
Let us delve into the intricacies of the sequence presented below: $$9,8,7,6,5,4,3,2,1,0,89,88,87,86,85,84,83,82,81,80,79,78,77,76,75,74,73,72,71...$$ This sequence represents the \$9\$'s complement of a numerical value, defined mathematically as \$ a(x) = 10^d - 1 - x \$, where \$ d \$ signifies the total number of di...
evolcodegolf
You find yourself in a vibrant marketplace where colorful stalls are overflowing with a variety of goods. However, there is an organization issue that needs your attention! Your mission is to develop an algorithm that organizes the items into designated sections based on their type. The marketplace is represented as a...
evolcodegolf
Given a meticulously arranged collection of distinctive positive floating-point numbers (none of which are whole numbers) such as: [0.1, 0.2, 1.4, 2.3, 2.4, 2.5, 3.2] Distribute the values uniformly that exist in the intervals between two successive integers. Thus, in this scenario, you would achieve: [0.333, 0....
evolcodegolf
Devise a program capable of generating a diverse drum fill pattern, utilizing the characters 'L' for left-hand hits, 'R' for right-hand hits, and 'K' to denote kick drum strikes. Guidelines The resulting pattern must not exhibit more than two consecutive identical hits at any point. When the pattern loops, it should...
evolcodegolf
Your objective is intriguing: unravel the riddle of the elemental clash. The Elements There are four distinct "elements" in this contest, detailed in the following chart. name | health | damage Fire 30 15 Water 80 8 Earth 50 10 Air 40 12 You may choose a...
evolcodegolf
**Context** As a child, I often found myself engrossed in animated tales where wise characters shared peculiar yet profound observations about life, much like Yoda's adage, "Do or do not. There is no try." **Rationale** Drawing inspiration from that saying, let’s explore the concept of decision-making under uncer...
evolcodegolf
You are presented with a pair of strings, each representing the English word for a number within the range of one to thirteen: one, two, three, four, five, six, seven, eight, nine, ten, eleven, twelve, thirteen. Your task is to devise a program or function that determines whether it is feasible to construct at least o...
evolcodegolf
Your challenge is to receive two strings that represent numbers in different bases (ranging from base 2 to base 36) and output the combined product of their digit sums. To clarify, the digit sum is calculated as follows: 1. Convert each character of the strings to their respective integer values based on their base (e...
evolcodegolf
Your objective is to develop a program that emulates the iconic chime of Big Ben as seen on Twitter. Task The program should continually monitor the local time on your computer or UTC, and when a new hour commences, it must generate the output BONG, repeated a number of times corresponding to the current hour in the ...
evolcodegolf
Prologue After noticing that your favorite coding tutorial platform has changed its URL structure overnight, you find yourself unable to link directly to specific articles in your coding group. While navigating the confusing web of their documentation, you discovered a peculiar settings feature: an input box where yo...
evolcodegolf
Your objective is to interpret and convert a specified string of text that employs a unique encoding scheme corresponding to a custom 1x5 pixel block font known as millitext. This font operates by utilizing the RGB color channels in a way that segments a single pixel into three subcolumns, allowing for a vivid represen...
evolcodegolf
Construct a solution where you are tasked with selecting a positive integer \( n \) that is strictly less than 1000, and subsequently produce a sequence that interleaves the integers from 1 to \( n \) with those from \( n \) down to 1. It is imperative to ensure that these numbers are concatenated seamlessly, such that...
evolcodegolf
Here’s a more intricate approach to the process of backspacing and retyping from one string to another: Commence with the initial string. Gradually eliminate characters from the end until the resultant substring becomes a prefix of the subsequent string in the list. (This process may require zero iterations.) Subseque...
evolcodegolf
The challenge is as follows: x, y, z, w, v are integers ranging from 0 to 500, with no restrictions on their equality; they can share values. You must utilize no more than 3 iterations (these can be 3 nested iterations, 2 nested with 1 flat, or any combination thereof). Your task is to identify all combinations of (x,...
evolcodegolf
I'm seeking a concise method to retrieve the most frequently occurring substrings from a large text string in Python. I've attempted several approaches, but none seem to yield a succinct solution. Here's what I've tried: Using regular expressions: ```python import re most_common = max(set(re.findall(r'\b\w+\b', text))...
evolcodegolf
Develop a program that not only accepts an index representing a sequence from the OEIS (e.g., A172141) and a specific integer n (e.g., 7), but also incorporates error handling for situations where the index exceeds the available indices in the B-files. Your program should be designed to extract the nth term of the sequ...
evolcodegolf
Summary Develop a program or function that does not accept any input parameters, and systematically outputs every integer value ranging from -1000 to 1000 in ascending order to the standard output, ensuring that each value appears on a separate line, formatted as follows: -1000 -999 -998 -997 ... Additio...
evolcodegolf
Your assignment involves devising a program or function that can successfully emulate the behavior of a word generator as described below. To begin with, you need to process two inputs. The first of these inputs pertains to categories, while the second is dedicated to syllable types. Categories are defined as groups ...
evolcodegolf
The Task The task at hand is straightforward yet intriguing: given an Alpha-2 country code, you are required to provide the corresponding Alpha-3 equivalent. The input may come in any case of your choosing, and the output should be presented in any consistent case of your preference. Additionally, ensure that your so...
evolcodegolf
This rapid-coding competition draws inspiration from a particular MSE inquiry and aims to broaden certain OEIS sequences while also generating new ones. In the event that I expand or devise sequences related to this competition, I will provide a reference to this challenge to ensure participants can trace the origins o...
evolcodegolf
Input: A sequence of integers where each integer lies between 3 and 25. Output: Calculate the product of the integers (as base 10), where each subsequent integer is interpreted in the base of the preceding integer (starting with a standard base 10). Example: Consider the input: [5, 10, 20, 15, 7] Then, the ...
evolcodegolf
We start with a blank 1-indexed sequence: _,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,... In the nth step, we fill in every a(n) blanks with the integers greater than 1 starting at the first remaining blank, where a(n) is the nth entry in the sequence. After the first step: 2,_,3,_,4,_,5,_,6,_,7,_,8,_,9,_,10,_,11,...
evolcodegolf
The task is to accurately count the number of disjoint 11 blocks in a 64-bit word, utilizing the minimum number of straight-line instructions possible, while ensuring that the implementation maintains clarity and readability. Specifically, determine how many nonoverlapping neighbored pairs of 1-bits can be identified w...
evolcodegolf
Construct a codegolf challenge focusing on the implementation of the Hamming code, specifically designed with a minimum distance constraint of three! The sequence manifests as follows: 0, 7, 25, 30, 42, 45, 51, 52, 75, 76, 82, 85, 97, 102, 120, 127, 385, 390, 408, 415, 427, 428, 434, 437, 458, 461, 467, 468, 480, 487...
evolcodegolf
Setup: A block is defined as any rectangular arrangement of squares, characterized by its dimensions \$(w,h)\$. A grid, on the other hand, represents a finite ordered collection of blocks. For instance, the expression \$\lambda = ((3,2),(3,1),(1,2))\$ illustrates a specific grid configuration. Consider two grids, \...
evolcodegolf
Introduction Often, people refer to dates as the "second Friday in August, 2018" or the "fourth Sunday in March, 2012". But it's hard to tell what date that is! Your task is to write a program that receives a year, a month, a day of the week, and an integer representing the occurrence, and output that date. Additiona...
evolcodegolf
In this intricate challenge, you are presented with a sequence of non-negative integers, each symbolizing a mushroom characterized by its cap radius centered at a specific location on a grid. A value of 0 denotes the absence of a mushroom, while a value of 1 indicates that the cap occupies space solely above its base; ...
evolcodegolf
Construct a sophisticated bot designed to select the smallest unique number, inspired by a psychology experiment that has eluded my research for years. Rules Each game will consist of 10 randomly selected bots participating in 1000 rounds. In each round, every bot must select an integer from 1 to 10 (inclusive). Any...
evolcodegolf
Given the language Sum-It, which was conceived for the Language Design Contest in TNB, themed "Range," where the interpretation reflects "Mountain Range," the objective is to analyze a specific structure formed by ASCII art representations of mountains utilizing only the characters / and \. Each mountain's representati...
evolcodegolf
We are tasked with transforming ASCII art representations of polygons into their corresponding GeoJSON formats while adhering to several specific constraints. The ASCII shape language In this transformation process, we only utilize three permissible characters: * denotes a vertex - represents a horizontal line | ind...
evolcodegolf
Considering a given numeric input alongside a specified operation of either addition or multiplication, your task is to produce a table representing the corresponding arithmetic operation, adhering to the dimensions defined by the initial numeric input. Important stipulations include that the input format must be str...
evolcodegolf
Construct a challenge Given an integer n ≥ 4, your task is to output a permutation of the integers [0, n-1] that fulfills the condition that no two consecutive integers (integers having an absolute difference of 1) are adjacent to each other, while also ensuring that the resulting permutation contains an equal number...
evolcodegolf
Background You may be aware that periods in between letters in Gmail addresses are ignored. Email sent to example@gmail.com, exam.ple@gmail.com, and e.x.a.m.p.l.e@gmail.com all end up in the same place! This is a great way to have multiple different email addresses for purposes such as signing up for free trials or...
evolcodegolf
Consider a square n by n grid graph that looks like this. It is important to notice that this graph is 11 by 11. At any given point, a man stands at an intersection and he only ever moves vertically or horizontally by one step at a time to the next intersection. Sadly, he has drunk a little too much, so he chooses the...
evolcodegolf
Imagine a scenario where we push the boundaries of data manipulation in programming. Presenting the adaptive echo generator! This generator requires two inputs: a float f and a string t. The output behavior is determined by the value of f. If f is greater than 1, output t repeated f times, each instance separated by a ...
evolcodegolf
Background Conway immobilizer problem is a puzzle that reads like the following: Three positions, "left," "middle," and "right," are marked on a table. Three cards, an ace, a king, and a queen, lie face up in some or all three of the positions. If more than one card occupies a given position then only the top ca...
evolcodegolf
The objective is to devise a program or function (hereafter termed "program") that accepts a nonnegative integer \$n\$ as its input and computes \$\frac{n}{\sqrt{2}}\$ (the input divided by the square root of two) as output, which must be rounded to the nearest nonnegative integer. Furthermore, you are required to inco...
evolcodegolf
Background During my formative years, I was introduced to an intriguing technique of sketching a peculiar "S" figure, which captivated my peers and me alike. In a delightful turn of events, I stumbled upon this method again, and given its systematic framework for crafting the shape, I perceived it as an engaging chal...
evolcodegolf
For every individual character present in your programming solution, it is imperative that the resulting program, upon removal of that specific character, yields a numerical output that is consistently smaller than the numerical output derived from the removal of the subsequent character in the ordered sequence. It is ...
evolcodegolf
Challenge: Given a visual representation of a (possibly cracked) vase created from any printable ASCII character except for whitespace and ~, fill it entirely with ~ characters. If the vase is cracked, fill the bottom row beneath the vase and a trail of liquid escaping from that crack with the appropriate amount of ~, ...
evolcodegolf
Despite the academicese-heavy name, the problem we're going to solve is almost unbearably simple. We have a list of numbers. [31, 41, 59, 26, 53, 58, 97] We're going to cut some contiguous snippet out of that list of numbers. [31, 41, 59, 26, 53, 58, 97] |41, 59, 26, 53| And then we're going to find the minimum of th...
evolcodegolf
Utilizing your preferred programming language, develop a self-replicating application that initiates a restart process exactly once, after a user-defined interval of n seconds. You must devise a mechanism that effectively reactivates the program after it has terminated. For instance, consider leveraging command-line op...
evolcodegolf
A rather unmotivated physicist has been tasked with executing the famed double slit experiment but, true to their nature, prefers to bypass the rigorous setup of intricate equipment and instead opts for a simulation of the phenomena. Unfortunately, they lack programming skills, necessitating assistance to create this s...
evolcodegolf
Introduction Local genius Calvin's Hobbies recently challenged us to trace the hue of an image. It is recommended to read his challenge beforehand, but to highlight the main points: The trace of hue in an image can be found by starting at one pixel, finding its hue angle (hue = atan2(sqrt(3) * (G - B), 2 * R - G - B...
evolcodegolf
Challenge: Count the total number of ones (1) present in the binary representation of all integers within a specified range while also determining the maximum value found in that range. Input: Two non-decimal positive integers Output: The sum of all the 1s in the range between the two numbers along with the hig...
evolcodegolf
Final Standings +----------------------------------+---------+---------+---------+----------------------------+ | Name | Score | WinRate | TieRate | Elimination Probability | +----------------------------------+---------+---------+---------+----------------------------+ | 1. SarcomaBot...
evolcodegolf
In the context of this computational challenge, participants are tasked with performing a series of arithmetic operations on a given array of integers, juxtaposing each element with its counterpart from the reversed array. To increase the complexity of this task, the operations are not limited to addition alone; instea...
evolcodegolf
In this engaging king-of-the-hill challenge, your task is to design a sophisticated Python 3 bot that participates in the intricate card game known as Judgement! **Sandbox** **Rules** Judgement is a hand-based game, drawing similarities to classic games like rummy. Each player receives 7 cards in every round, whi...
evolcodegolf
Design a unique challenge inspired by the principles of geometric packing. The task is to create a random generator for a 10x10 grid where players must fit pieces from the polyomino family (from monominoes to pentominoes) without overlapping. The output should be a list of required pieces, detailing how many of each ty...
evolcodegolf
The intricate game of xiangqi, commonly referred to as Chinese chess, holds a significant place in the cultural fabric of China, Vietnam, Taiwan, and various other East Asian nations. The opposing sides in xiangqi are represented by the contrasting colours of red and black. There are precisely 16 pieces for the black s...
evolcodegolf