instruction_seed stringlengths 29 40.5k | source stringclasses 6
values |
|---|---|
Inputs:
current hour: an integer value ranging from 0 to 23 (inclusive)
delta of hours: an integer that represents the additional hours to be added to [current hour], resulting in a final value that must also adhere to the integer constraints.
Output:
delta of days: an integer that quantifies the difference in days ... | evolcodegolf |
In the spirit of programming challenges, it’s often said that mere displays of technical prowess can lack intrigue. Today, we will transform that perception! In this task, you are invited to delve into the fascinating world of flexagons, specifically focusing on the construction and manipulation of hexaflexagons.
Abo... | evolcodegolf |
This contest has officially concluded.
In light of the dynamics inherent to cops-and-robbers challenges, it becomes evident that the cops' task is substantially simplified when interest in the related robbers' task has waned significantly. Consequently, while you are permitted to submit hash functions, be advised tha... | evolcodegolf |
I'm in a bit of a bind! After successfully logging into Stack Exchange, I've encountered a problem: I've forgotten my password and need a strategy to recover it before I accidentally log out. Fortunately, I possess exceptional hacking skills, which have allowed me not only to retrieve the hash of my password but also t... | evolcodegolf |
For this challenge, you will receive a mixed string containing words, numbers, and special characters as input. Your task is to construct a set that includes all the unique alphabetical words extracted from the string. A word is defined as any continuous sequence of letters, and you must ensure that the resulting set i... | evolcodegolf |
Introduction
As an enthusiastic supporter of the intriguing SBU (Short But Unique) challenges frequently presented on PPCG, I find immense interest in the CUSRS system, which is specifically crafted to refactor strings. A function within CUSRS accepts two parameters and produces a single output string.
Challenge
D... | evolcodegolf |
As a young individual, I frequently engaged in this particular hand gesture-based competition.
Rules
There are two participants (designated as A and B), each employing their hands to mimic firearms. The game includes three distinct maneuvers:
1. **Hands raised** to load ammunition into the imaginary firearm.
... | evolcodegolf |
I propose an intriguing challenge centered around the development of a minimalistic key-logger. Drawing inspiration from the gentleman's discourse on "Are key-logger questions allowed?", it is imperative that stringent regulations are established to ensure the integrity of this undertaking within the parameters of PPCG... | evolcodegolf |
This year's UEFA Euro 2016 has concluded, and while there have been a few unfortunate negative headlines, a remarkable and uplifting surprise has emerged – the Iceland national football team. Let us now undertake the artistic task of rendering their national flag in a visually appealing manner.
Input
Well, evidently ... | evolcodegolf |
Following the public announcement of an examination result, the dissemination of this information unfolds over a structured timeline. Initially, after a span of 5 minutes, one individual becomes aware of the outcome. Subsequently, during the next 5-minute interval, an additional group of 8 individuals learns the result... | evolcodegolf |
Deliver the specific measurements of the output interface's width and height (in terms of columns and rows) utilizing a decimal format comprising two numerical digits. For instance, an example output may present as 80x25.
Inspiration. Prompt.
* The output should encapsulate both dimensions on either a single line or t... | evolcodegolf |
Imagine a structure built with triangular prisms instead of traditional bricks. Each triangular prism can be represented as /_\ and is stacked in layers, with every other layer slightly offset to create a stable arrangement:
/_\
/_\/_\
/_\/_\/_\
/_\/_\
/_\/_\/_\
In this construction, each tria... | evolcodegolf |
Devise an efficient program, function, or mathematical expression that accurately counts the total number of distinct Skolem sequences corresponding to a specified integer length, n. In this context, a Skolem sequence consists of 2n integers wherein each integer i from 1 to n appears precisely twice, with the stipulati... | evolcodegolf |
Your objective is to formulate the specified target string, commencing with an initially empty string. You will need to methodically add characters to this string until it precisely matches the desired outcome. There are two operations available: appending a character to the end of your string incurs a cost of x, or yo... | evolcodegolf |
Steiner Chains are a set of N circles where each circle is tangent to 2 other non-intersecting circles as well as the previous and next circles of the chain, as seen in the below images:
In this challenge, you will write a program/function that draws Steiner chains recursively, that is, circles of a given chain will b... | evolcodegolf |
The game BattleBlock Theater includes various puzzles, one of which is a sophisticated adaptation of the classic Lights Out game. In this variant, you are presented with three contiguous blocks, each displaying a level ranging from 1 to 4, represented with vertical bars as follows:
|
||||
||
Touching any block not on... | evolcodegolf |
A Shift matrix is defined as a binary matrix characterized by a singular superdiagonal or subdiagonal, which is exclusively composed of ones, while all other elements in the matrix are zeros. To clarify, a superdiagonal or subdiagonal refers to a diagonal that runs parallel to the principal diagonal but is not the prin... | evolcodegolf |
Considering the intricate relationships between synonyms, it's evident that they can range in similarity from closely aligned to those that only bear a semblance of connection. Dictionaries often utilize a "See also" notation to indicate entries that feature particularly relevant synonyms, while thesauruses (or thesaur... | evolcodegolf |
This challenge entails the formulation of code designed to address a specific problem. You are tasked with two strings, A and B, and your code should determine the starting and ending indices of a substring within A that possesses certain characteristics.
The substring extracted from A must correspond to a substring i... | evolcodegolf |
Complex Gaussian integers are intricate numbers expressed in the form a+bi, where both a and b are integers within the realm of complex analysis. Utilizing the unconventional base of -1+i, every Gaussian integer can be exclusively articulated through the binary digits 0 and 1, negating the necessity for a separate sign... | evolcodegolf |
The pyramid initiates with the row designated as 1 1, which we will refer to as row 1. For each successive row, one should take the preceding row and intersperse the current row number between every adjacent pair of numbers whose total equals the current row number.
$$
1\quad1\\
1\quad\color{red}{2}\quad1\\
1\quad\colo... | evolcodegolf |
This is a reformulation of a previously removed inquiry by ar kang. Should the original poster wish to reclaim this question or express any objections to my posting, I would be more than willing to make necessary adjustments.
Given a list of integers as input, determine the maximum possible sum derived from a continuo... | evolcodegolf |
Consider the task of determining the partitions of a given integer N, which encompasses all possible combinations of integers that are both positive and less than or equal to N, summing exactly to N. A particularly interesting subset of these partitions is the relatively prime partition, defined as an integer partition... | evolcodegolf |
In the realm of automated systems, captchas are specifically designed to be impervious to machine interpretation, which raises significant concerns. It is high time we address this unwarranted animosity towards algorithms that merely aim to inform users about exceptional offers on ṗḧ@ṛḿ4ćëüẗ1ċäḷṡ ƻđȺɏ.
Note: The capt... | evolcodegolf |
Intro
The Switching sequence is defined like so:
Start with n people standing in a circle (6 for this example).
1 2
6 3
5 4
Starting from person 1, the person that is to the left of the "chosen" person is removed.
1
6 3
5 4
The removed person can "switch" the removal method up:
If ... | evolcodegolf |
What can you decipher from the enigmatic messages hidden within the forum? Let's see if you can navigate the maze of challenges.
You are tasked with a mission in a high-stakes encryption contest. As a decoder, you need to:
Identify a current, active challenge on this platform that has not been deleted or marked as cl... | evolcodegolf |
Concept
The challenge of memorizing numerical sequences often surpasses the ease of retaining words. To facilitate the recall of extensive numbers, I devised a method that transforms these figures into a pronunciation format reminiscent of leetspeak.
Rules
Each digit undergoes a transformation where it is substi... | evolcodegolf |
Your task is to develop a program (or potentially two distinct programs) in any programming language that can perform the following functions:
1. Accept a fully completed Sudoku board presented in any logical and coherent format and transform it into a concise string of characters that captures all necessary informati... | evolcodegolf |
A singular bit traverses from the least significant bit (LSB) to the most significant bit (MSB), shifting one position at a time until it ascends to the apex of the container, represented as follows:
0000
0001
0010
0100
1000
Upon reaching the top, a subsequent bit initiates its ascent, ceasing its journey upon encount... | evolcodegolf |
Embark on an extraordinary API-driven Easter egg hunt adventure!
Access the dedicated API at http://easter_egg_hunt.andrewfaraday.com, which offers a tailored Easter egg hunt experience exclusively for you. Detailed API documentation can be found at the aforementioned link, or you may experiment with it from here.
T... | evolcodegolf |
Given an 8086 segmented ("logical") memory address, compute and present its corresponding linear physical address in a concise manner. A segmented memory address adheres to the structure xxxx:xxxx, where each x represents a hexadecimal digit in the range of 0-9A-F, and both segments must consist of precisely 4 hexadeci... | evolcodegolf |
Task
Given the x,y coordinates (coordinates are guaranteed to be integers) of the vertices of two simple polygons in clockwise or anti-clockwise order, including a constraint that all vertices must lie within a defined rectangular bounding box, output a Truthy value if both the polygons are similar; otherwise, output... | evolcodegolf |
Warning: This challenge contains some mild spoilers for The Secret of Monkey Island. As the game approaches its climax, a magically preserved navigator's head guides you through the catacombs, presenting a peculiar obstacle:
You are in need of its coveted eyeball necklace, yet the Head exhibits a strong reluctance to... | evolcodegolf |
You are tasked with calculating the volume of various geometric shapes based on specific dimensional inputs:
To ascertain the volume of a sphere, you need just one measurement, the radius (r).
For a cylinder, two measurements are essential: the radius (r) and the height (h).
A box's volume can be computed from three d... | evolcodegolf |
In the year 2010, an explosive geological event occurred with the Icelandic stratovolcano known as Eyjafjallajökull, leading to the unfortunate cancellation of my meticulously arranged flight plans. To mitigate future disruptions of this nature, I seek your expertise in creating an intuitive visual alert system that wi... | evolcodegolf |
It's time to explore the fascinating world of cellular automata in a unique way.
Background
A cellular automaton is a discrete model consisting of a grid of cells, where each cell can be in a finite number of states, typically two (alive or dead). The state of a cell at the next time step depends on its current stat... | evolcodegolf |
In response to here.
Unlike the previous iteration, this endeavor emphasizes a code-golf challenge alongside the creation of a refined logo, departing from the previous simplistic design characterized by six linear elements and a diminishing gray gradient effect corresponding to the depth of the sticks.
Construc... | evolcodegolf |
Formulate a method that accepts an integer value representing the number of human years a dog has lived, denoted as \$n\$, and subsequently calculates the corresponding age in dog years, \$d\$, ensuring the result is displayed to two decimal places. The input \$n\$ will range from \$1\$ to \$122\$ inclusive, represente... | evolcodegolf |
You will be presented with a String composed solely of the letters from the English Alphabet, including both lowercase and uppercase variants (ASCII values ranging from 65-90 and 97-122). Your challenge is to provide the Fizz-Buzzified transformation of this String by adhering to a specific set of rules that require ca... | evolcodegolf |
Create a program that meticulously rearranges the entirety of the printable ASCII characters! This program must yield a singular string consisting of all printable ASCII characters, each appearing exactly once. In this output string, the character positioned first is assigned a numerical value of 1, the second characte... | evolcodegolf |
Background
In our previous exploration, we tackled the intricacies associated with counting groups of a specified size, a task that proved to be quite challenging. This time, however, we will restrict our focus exclusively to Abelian groups, which are defined by their commutative operation. Formally, a group (G, ∗) i... | evolcodegolf |
Imagine navigating the intricacies of a two-dimensional Cartesian plane while attempting to ascertain your precise location therein. You possess information about three distinct points on this plane, along with your respective distances to each of them. While theoretically feasible, mentally calculating your exact posi... | evolcodegolf |
In this computational efficiency task, your aim is to methodically | evolcodegolf |
Your task is to decode a nested string format that involves color codes and repetitions as specified:
Identify a sequence of text enclosed in braces { and }, followed by a digit n. The sequence may contain other nested braces.
Remove the outer braces and replace the inner text with its content repeated n times. If n ... | evolcodegolf |
Create a program in the unique 2-D programming language Lost, which is characterized by its unpredictable starting position and direction of the instruction pointer (ip), making deterministic programming particularly challenging. In this instance, however, we are not focusing on determinism but rather on implementing a... | evolcodegolf |
Today, as I engage in this intellectual exploration, the date is March 31st. In the United States, this corresponds to the numerical representation of 3/31. During my contemplation, I experimented with the number 331 to devise an intriguing challenge, ultimately discovering that its residues, when evaluated modulo smal... | evolcodegolf |
In this intriguing challenge, your objective is to generate and display multiplication tables based on user input, with the following exemplars provided for clarity:
Input: 2
Output:
0 2 4 6 8 10 12 14 16 18 20
Input: 20
Output: 20 40 60 80 100 120 140 160 180 200
Rules:
The primary criterion is that t... | evolcodegolf |
Devise a quine that inherently defies the principles of golfing, whereby your score is determined by your byte count—wherein a higher count indicates a better score. In the event that another participant discovers a more concise iteration, their score effectively becomes your original byte count, resulting in a deducti... | evolcodegolf |
Definitions:
A palindrome is a string which reads the same backward or forward (not counting spaces or special characters), such as "madam" or "Sorel Eros".
A date is said to be a palindrome when its dd-mm-yyyy format is a palindrome (or any other local representation).
Two strings are said to be anagrams when th... | evolcodegolf |
As a time traveler with an insatiable fascination for the nuances of temporal progression, I am particularly captivated by those distinct moments when the hands of a clock coincide at 12, when I transition to a new page in my calendar, or when the jubilant chorus of "Happy New Year!" resonates around me.
I would like... | evolcodegolf |
Inheriting a server that operates multiple applications, each producing output to a shared log file presents a unique challenge: your objective is to systematically de-interleave the log entries based on their originating application. Each entry starts with a distinct tag that indicates its source.
Logs are formatted ... | evolcodegolf |
About a year ago on Dec 31, 2015, I had the idea that:
We should create a time capsule string. Each participant adds one character, and in the upcoming New Year, we will evaluate who can generate the most sophisticated program using the characters available at that time among the existing esoteric programming language... | evolcodegolf |
Every non-negative integer can be characterized through an endlessly recurring sequence of remainders derived from sequential modular operations. For instance, if we consider the integer 7, and apply modular reductions such as 7 mod 2, subsequently 7 mod 3, then 7 mod 4, and so forth, the resultant output yields the se... | evolcodegolf |
Task
Given two distinct positive integers, denoting the width and height:
Construct a hollow rectangle that adheres to the dimensions established by the two integers.
Iterate through the process defined in Step 3 until there is insufficient area remaining.
Draw and completely fill the largest square that interse... | evolcodegolf |
Create a list of 4 or more distinct prime numbers. For each number P in the list, if the product of P and any other prime Q in the list yields a prime result, remove both P and Q from the output. Ensure that pairs of numbers are evaluated simultaneously for removal. A product is considered prime only if it is greater t... | evolcodegolf |
In the realm of graph theory, a Cactus is defined as a specific type of connected graph wherein any pair of distinct simple cycles shares no more than a singular vertex. Presented below is an illustrative representation of a Cactus containing three simple cycles delineated by dashed lines.
In contrast, the subsequent ... | evolcodegolf |
In the realm of positive integers, there exist 31 unique positive integers that defy representation as the cumulative total of one or more distinct positive squares, which include but are not limited to the following numbers:
2, 3, 6, 7, 8, 11, 12, 15, 18, 19, 22, 23, 24, 27, 28, 31, 32, 33, 43, 44, 47, 48, 60, 67, 72... | evolcodegolf |
Recently, I initiated a playful challenge centered around the game Duck, Duck, Goose, which subsequently prompted numerous comments from Minnesotans discussing their distinct 'Gray duck' adaptation. Here are the stipulations for the task at hand:
Utilizing this list of colors:
- Red
- Orange
- Yellow
- Green
- Blue
- ... | evolcodegolf |
Engage in an imaginative exercise of code golf... through the medium of golf.
Input
Your input will be a string comprising various characters such as #'s, an o, an @, and .'s, structured in a specific format. For instance:
......@..
.....##..
.........
......o..
. - represents a navigable section of the ... | evolcodegolf |
Task
Given an input, meticulously evaluate it as a mathematical equation while adhering to the prescribed order of operations. However, instead of utilizing the conventional PEMDAS methodology, we will discard parentheses and exponentiation and instead employ a novel approach, SMDAS, which delineates spaces first, fo... | evolcodegolf |
You are about to embark on the task of planting pumpkins, and in preparation, you need to meticulously gather your supplies. Pumpkins vary significantly in size, each indicated by the corresponding number on their seed bag. A pumpkin labeled with size n will attain a width of n units when fully grown. However, it is cr... | evolcodegolf |
Develop a program that, given an array and a positive integer, requires you to partition the array into segments where each segment's size corresponds to the specified integer.
Guidelines:
Your function should take an array A and an integer n as inputs. The array must be divided into sections of length n. If the tota... | evolcodegolf |
Background
Throughout history, various cultures have crafted unique number sequences that represent significant events or personal milestones. One such fascinating concept is the Fibonacci sequence, where each number is the sum of the two preceding ones. However, let's add a twist: embedding a personal date into the ... | evolcodegolf |
Given \$k\$ arrays of length \$n\$, output the maximum sum possible using one element from each array such that no two elements are from the same index, and each selected element must be greater than zero. It is guaranteed that \$k\le n\$.
Input
A nonempty list of nonempty arrays of integers.
Output
An integer that rep... | evolcodegolf |
In this intricate challenge, your task is to engineer an innovative algorithm specifically designed for compressing image previews. The primary objective is to condense a given image file into a succinct 4 KiB preview representation, enabling swift identification of images while utilizing minimal bandwidth resources.
... | evolcodegolf |
Two sticks of lengths a and b, which are both positive integers, have been provided by Mary to John. Intrigued by the possibilities, John seeks to explore the mathematical realm of triangles. Specifically, he wishes to determine the total number of distinct triangles that can be formed with integer perimeters by introd... | evolcodegolf |
Challenge:
A peculiar riddle is making the rounds online that states:
7 + 3 = 1870
6 + 2 = 145
8 + 5 = ?
Design a function or operator that, given two distinct positive integers a and b where a > b > 0, generates the correct output as an integer. The result should consist of the digits of a - b followed by the digits ... | evolcodegolf |
Design a vertical quine that not only adheres to the principles outlined in "Take a stand against long lines" but also incorporates a unique character set, such as emojis or special symbols, to enhance its complexity. Your task is to achieve the vertical quine with the shortest possible line length. Scoring will consid... | evolcodegolf |
Scenario
I love experimenting with different types of bread, but I often encounter some recurring issues. To help refine my baking skills, I decided to create a program that verifies the structure of my bread loaves.
Valid Bread
A valid bread loaf is
At least 6 columns wide
At least 3 layers high
Excludin... | evolcodegolf |
Also referred to as the [analog root] (the converse of the digital root!) ;) The concept of digital root involves a repetitive summation of a number's digits until only a single digit remains. For instance, the digital root of 89456 is derived through the following steps: 8 + 9 + 4 + 5 + 6 = 32, followed by 3 + 2 = 5, ... | evolcodegolf |
Background
Inspired by this captivating presentation by mathematician Matt Parker, the Faro shuffle represents an idealized riffle shuffle in which a deck of playing cards is meticulously interleaved with its precise counterpart. The process for executing one is as follows:
1. The complete set of 52 unique cards is ... | evolcodegolf |
In light of the temporary disabling of MathJax, the rendered MathJax content in this query has been substituted with images for the time being. However, you are still encouraged to contribute your answers; just be aware that you will need to view the properly rendered MathJax on a different site.
PPCG has now integra... | evolcodegolf |
Your objective is to engage in the multiplication of two single-variable integer polynomial expressions, executing a detailed first-term-major left-to-right expansion (commonly referred to as FOIL for binomials). It is imperative that you refrain from simplifying the result by combining like terms or reordering any ele... | evolcodegolf |
Challenge
Given a positive integer, transform it into its equivalent Roman numeral representation, while adhering to specific constraints.
Requirements
Input
A positive integer (1 to 3999). Numbers outside this range are invalid.
Output
The Roman numeral representation of the input number. The output shou... | evolcodegolf |
Introduction:
Typically, we discuss four dimensions: three spatial dimensions represented by coordinates in the x, y, and z axes, and a singular dimension of time. However, for the purposes of this challenge, we will further decompose the time dimension into three distinct segments: past, present, and future.
Input:
T... | evolcodegolf |
In the realm of vintage role-playing games, one of the most intricate systems introduced in the early 1990s was the magical incantation mechanism in *Shadow Sorcerer*. This game employed a unique combination of glyphs, requiring players to skillfully combine them to conjure spells.
For your challenge today, design a p... | evolcodegolf |
This challenge revolves around the determination of the smallest disk that encompasses a set of specified points in a two-dimensional space. The complexity is heightened by the stipulation that both the coordinates of the disk's center and its radius must be expressed as integers.
Your input will comprise a collectio... | evolcodegolf |
The Game
Many enthusiasts are familiar with Frogger, the classic arcade game from the 1980s, wherein the primary goal is to navigate a frog successfully across a heavily-trafficked roadway and a perilous pond to reach its cozy home safely.
Several months back, a challenge was introduced to create a replica of Frogger. ... | evolcodegolf |
Challenge
Imagine a hexagonal grid as shown below. Let's call such a grid has size \$n\$ if it has \$n\$ dots on one side. The following is one of size 3:
- - -
- - - -
- - - - -
- - - -
- - -
Then, pick as many dots as possible on the grid so that no two dots are adjacent, ensuring that the patter... | evolcodegolf |
Poke is an intriguing incomplete-information game, akin to "Poker" but with simpler mechanics. At the onset of each round, players receive a hand represented by a uniformly distributed random number ranging from 0 to 1. Crucially, each participant is only aware of their own hand, and the objective is to determine the p... | evolcodegolf |
As part of the Code Golf Advent Calendar 2022 event, detailed information can be found in the linked meta post.
Fen is a magician Elf renowned for his ability to cast spells on arrays of numbers, generating another number or array from them. One particular enchantment he holds dear is the Wick spell, which he has care... | evolcodegolf |
Imagine a compilation of distinct entities and their resultant interactions when a specific non-commutative operation is executed on them. For instance, we will consider the elements Rock, Paper, and Scissors, along with the outcomes Win, Lose, and Tie, and an operator * such that X*Y represents the scenario encountere... | evolcodegolf |
The Challenge
Given two vertexes and a point, calculate the distance to the line segment defined by those points while ensuring that your implementation can accurately handle edge cases such as coinciding vertices. This can be calculated with the following pseudocode:
```
def dist(point, v1, v2):
direction ... | evolcodegolf |
To explore the fascinating world of linguistics and word formation, consider the definition of a compound word, which is a lexeme comprised of two or more distinct words merged together. However, we challenge you to enhance this understanding by devising a single nonsensical lexeme that encompasses every item in a spec... | evolcodegolf |
This challenge is inspired by the mechanics of a classic puzzle game that involves gravity and shifting blocks. You are provided with a side view of a vertical grid of tiles, represented by letters indicating different types of tiles: W (water), S (sand), B (block), and E (empty). Your task is to drop a rectangular pie... | evolcodegolf |
Your task is to construct a graph with 48 vertices, each representing a unique piece on a standard chessboard. An edge exists between two vertices if the corresponding pieces can threaten each other based on standard chess rules.
Rules
You may choose to output an adjacency list, adjacency matrix, edge list, or any r... | evolcodegolf |
Task
Given an input string composed of one or more ASCII characters, where each character's codepoint falls between 0 and 128 (exclusive), perform the following multi-step processes:
1. Convert each character into its corresponding 7-bit ASCII representation (ensuring that any representation needing fewer than 7 bit... | evolcodegolf |
There exists an abundance of inquiries regarding Conway's Game of Life, yet there is a notable deficiency in discussions centered on its customization (Refer to: 2-Player Life). Given a specific input, ascertain the resultant state on a 100x100 cellular automaton grid after a designated number of iterations. The provid... | evolcodegolf |
Inspired by @AviFS.
Given a sequence of characters interspersed with various types of brackets, such as
[xyz]]abc[[def]hij[
You can navigate through this sequence using a structured stack mechanism tailored for bracket management. Upon encountering an opening bracket, you will push its corresponding index onto the s... | evolcodegolf |
Transform a given string input by substituting each character with its corresponding number or letter from the specified list, ensuring that the output meets additional criteria of maintaining the original string's length while providing the result in a formatted manner.
List
1 = a
2 = b
3 = c
4 = d
5 = e
... | evolcodegolf |
Consider the construction of an advanced set of dice capable of displaying not only numbers but also any desired combinations of letters, with an emphasis on optimal arrangement and rotation akin to Boggle. The objective is to determine the minimal number of N-sided dice necessary to represent a series of provided word... | evolcodegolf |
You have M collections
X = [12, 15, 25, 30]
Y = [7, 2, 12, 18]
Z = [45, 50, 30]
W = [8, 15, 20]
V = [1, 12, 5]
Your task is to merge them in such a way that:
Collections sharing at least one common element should be positioned consecutively. In this example, one possible arrangement is:
X,Y,W,V,Z
[12, ... | evolcodegolf |
In light of the established consensus on Meta regarding the appropriateness of challenge-writing questions, I found myself contemplating the intricacies of formulating challenges that hinge upon the random generation of specific types of objects. There are occasions when I aspire to create a code-golf challenge focused... | evolcodegolf |
Given the power series defined by \$f(x) = x + \sum_{i>1} a_ix^i\$ and \$g(x) = x + \sum_{i>1} b_ix^i\$, the task at hand is to derive a composite power series \$f(g(x))\$ that maintains this same structure. The objective is to identify the compositional inverse \$f^{-1}\$ such that the condition \$f(f^{-1}(x))=x\$ hol... | evolcodegolf |
Inspired by the referenced discussion. For those designating this inquiry as a duplicate, I strongly encourage a thorough reading of my query, which presents a nuanced variation of the one cited. The cited post merely requests the vertical arrangement of the alphabet without any user input.
The Challenge
Given a nume... | evolcodegolf |
Devise a comprehensive program that constructs a two-state checkbox, which users can interact with via mouse engagement, incorporating the following detailed specifications:
Establish a minimum clickable area for the checkbox of 8×8 pixels, though larger dimensions are permissible if desired. This region will be refer... | evolcodegolf |
In this engaging challenge, participants are tasked with devising a recursion-based program or function that effectively generates an integer series based on a specified single integer, n. The cunning robbers will simultaneously endeavor to uncover a more succinct non-recursive solution in their own designated thread. ... | evolcodegolf |
Devise a program or a sophisticated function that visually constructs a tree of trees, thereby generating a forest-like structure. The trees are represented in a pyramid stacking style. The apex row comprises a single tree, the subsequent row accommodates two trees (yielding a cumulative total of three), followed by th... | evolcodegolf |
Consider the following table for the function d(n), which calculates the number of factors that n is divisible by without a remainder:
n | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | ...
d(n) | 1 | 2 | 2 | 3 | 2 | 4 | 2 | 4 | 3 | 4 | 2 | 6 | ...
Going from left to right, it is possible to determine the "c... | evolcodegolf |
As this marks my inaugural venture into a code golf challenge, I find myself somewhat uncertain about its appropriateness for such an endeavor; nevertheless, every experience is a chance for growth. The task at hand is to produce a code snippet that, utilizing your preferred programming language, achieves the following... | evolcodegolf |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.