instruction_seed stringlengths 29 40.5k | source stringclasses 6
values |
|---|---|
In a playful exploration of coding efficiency, I'm curious to discover the minimal number of lines necessary to solve this intriguing problem using Python. I have successfully streamlined my code to a mere 9 lines, which is quite a challenge in itself.
```python
size = int(input("Size: "))
a = [x for x in range(size-2... | evolcodegolf |
Objective:
Your objective is to output a sequence of integers contained within specified ranges (inclusive of the boundary values).
Input Structure:
The format of the input will be:
(int-int, int-int, ...)
... implying that the user has the flexibility to include an arbitrary number of int-int pairs.
Additional Gui... | evolcodegolf |
In this intricate challenge, your task is to partition a numerical array such that each segment adheres to defined constraints regarding maximum, minimum, and ideal lengths. The notation (min, pref, max) will serve to represent these length specifications throughout this exercise.
To elucidate the concept of partitio... | evolcodegolf |
Given the name of an HTTP status code, such as OK or Continue, output or return the corresponding number while ensuring your code also validates the input format to allow only uppercase letters and spaces. Your code is limited to 200 bytes, and the winner is the answer that correctly finds the number for the most statu... | evolcodegolf |
What is the most concise, syntactically correct C++ snippet that deliberately triggers undefined behavior according to the C++ standard? | evolcodegolf |
Your objective involves methodically reversing the sequence of executed print statements within a designated code structure.
Specifications:
Your code must adhere to the following format:
//some lines of code
/*code*/ print "Line1" /*code*/
/*code*/ print "Line2" /*code*/
/*code*/ print "Line3" /*code*/
/*co... | evolcodegolf |
Your task is to develop a program that efficiently calculates the minimal number of moves required to traverse from the lower-left corner of a defined rectangle to the upper-right corner directly opposite, while adhering to the constraints of non-diagonal movement. The program should accept input formatted as an ordere... | evolcodegolf |
Challenge:
Within the constraints of a programming language of your preference, accept an integer value represented in base 10 as input and subsequently convert and display it in the negadecimal format, also recognized as base -10.
Example algorithm:
Here is an algorithm derived from Wikipedia specifically design... | evolcodegolf |
A polygonal number is defined as the total count of dots arranged within a k-gon structure of a specified size n. Your objective is to devise a program or function that accurately computes and outputs the polygonal number corresponding to the provided values of n and k.
Scoring:
This is a code-golf challenge where t... | evolcodegolf |
Consider a list of subject, grade pairs along with the requirement to maintain the original input's order wherever possible. E.g.
[("Latin", "A"), ("French", "A*"), ("Math", "B"), ("Latin", "A*")]
The task is to return the same list but with each subject given at most once. Where a subject occurred more than once ... | evolcodegolf |
The challenge
Devise a function or an executable program that accepts a string consisting of one or more subjective personal pronouns, interconnected by + symbols, as its input argument. The expected output should be a singular pronoun that corresponds to the relationship outlined in the subsequent section. Naturally... | evolcodegolf |
I was engaged in a particularly intricate challenge that involved a multifaceted task, which I am currently addressing. I have devised a solution in JavaScript that spans 73 bytes, but I suspect this is excessive for the simplicity of the requirements.
Challenge
You are provided with two integers as input:
N represen... | evolcodegolf |
The sequence A090461 from OEIS pertains to the integers k for which there exists a permutation of the integers from 1 to k such that the sum of every pair of adjacent numbers results in a perfect square. This concept has also been discussed by Matt Parker in a Numberphile episode, as well as featured in a puzzle by Ale... | evolcodegolf |
Introduction
Wardialing was a particularly fascinating method of attempting to hack individuals during the '80s and '90s. In an era dominated by dial-up connections, enthusiasts would systematically dial an extensive range of numbers to uncover BBS's, computers, or fax machines. Should the call connect with a human o... | evolcodegolf |
(Influenced by the Keg utility of this challenge)
Given a non-empty ASCII string, for instance, s c 1= e(a"E"), segment the input into alternating even-odd groups based on character code points.
Example (Feel free to propose additional cases)
While I can only conceive this test case, do not hesitate to contribute... | evolcodegolf |
In this computational challenge, we aim to tackle two significant mathematical problems concurrently. These tasks are as follows:
Given integers \$a\$ and \$b\$, determine whether \$a^b-1\$ yields a prime number.
Given integers \$a\$ and \$b\$, compute the binomial coefficient \$a\choose b\$.
Specifically, you are r... | evolcodegolf |
In the context of this programming challenge, your task involves devising a function that accepts an integer N as an argument and subsequently generates the initial N prime numbers. Notably, you are required to achieve this in the maximal number of characters permissible.
You have the freedom to employ any algorithmic... | evolcodegolf |
This represents my inaugural foray into a competitive Code Golf challenge. Should there be any glaring issues or evident modifications needed, please do not hesitate to make the necessary adjustments.
The following elucidates the fundamental Dropsort algorithm in detail.
Dropsort operates on a sequence of integers by... | evolcodegolf |
Description
Previous challenges have tackled various aspects of these numerical concepts, and it is my hope that this particular inquiry remains distinct. The n-th triangular number is defined as the cumulative sum of all natural numbers up to n, which is quite elementary. For those interested in further exploration,... | evolcodegolf |
Formulate your response specifically around the context of JavaScript, which is one of the programming languages permissible for execution on StackExchange/StackOverflow. Although any programming language is acceptable for this challenge, it's important to clarify that this is not a traditional JS golfing exercise; rat... | evolcodegolf |
An arithmetico-geometric sequence can be understood as the result of performing an elementwise multiplication between a linearly progressing arithmetic sequence and a multiplicatively progressing geometric sequence. As an illustration, the sequence 1 -4 12 -32 exemplifies this concept as the product derived from the ar... | evolcodegolf |
In this intricate challenge, you will embark on constructing a program that evolves in complexity as it journeys through the ages, culminating precisely in the year 2017.
**Challenge**
In the context of this description, the term “program” may be interpreted interchangeably with “function.”
Your submission, when ... | evolcodegolf |
Your task is to construct a program (or function) that accurately determines the second half of a toast, based on the first half provided, which comprises the phrase leading up to and including "my friends." This request originates from a specific challenge inspired by a year-old XKCD comic, where the toasts exhibit a ... | evolcodegolf |
This inquiry is intricately derived from the previous query but incorporates a multitude of supplementary complexities.
Your Assignment
You are required to develop a program or function that, upon receiving a string input, generates and displays all conceivable anagrams of that string. For the scope of this task, an an... | evolcodegolf |
Your objective is to output the titles of the inquiries that have received the top five highest scores (determined by the difference between upvotes and downvotes) on CodeGolf.SE, while meticulously omitting any questions that are classified as closed, locked, or on-hold. The current notable entries are as follows:
1.... | evolcodegolf |
In the aftermath of an intergalactic diplomatic incident, you find yourself in a cosmic game of Cosmic Chess with five renowned alien ambassadors. Each ambassador is known for their unique strategy and has submitted a fixed sequence of moves that they will play throughout the game. Your challenge is to devise a sequenc... | evolcodegolf |
Given an input of a pair of nonnegative integers describing a chamfered mover in a grid, output a representation of the accessible cells the mover can reach.
A chamfered mover operates by a distinctive pattern, moving a combination of m steps in one direction and n steps diagonally. More specifically, the conditions ... | evolcodegolf |
Background
Numerous esoteric programming languages lack built-in numerical literals, necessitating runtime calculations for their representation; in many instances, these representations can exhibit unique characteristics. Previously, we tackled a challenge concerning number representation in Underload. This particul... | evolcodegolf |
As of 13/03/2018 16:45 UTC, the winner is answer #345, by Khuldraeseth na'Barya. This means the contest is officially over, but feel free to continue posting answers, just so long as they adhere strictly to the established rules, including avoiding common pitfalls.
As well, just a quick shout out to the top three ans... | evolcodegolf |
My fascination has always been drawn to displays filled with an array of randomly distributed color pixels. The visual experience is captivating, and observing the algorithms that generate these vibrant patterns is equally entertaining.
The challenge
Create a program that fills a screen or a dedicated graphical window... | evolcodegolf |
Craft a named function or program that meticulously calculates the quaternion product of two given quaternions while utilizing the least amount of bytes achievable. Ensure to implement this with a clear understanding of quaternion multiplication properties, following the distributive law, and pay close attention to the... | evolcodegolf |
Input:
A positive integer n that can be expressed as n=p^q, where both p and q are prime numbers.
Output:
Provide the value of q raised to the power of p, detailing each step involved in deriving this result.
Test cases (in, out):
4, 4
8, 9
25, 32
27, 27
49, 128
121, 2048
125, 243
343, 2187
13... | evolcodegolf |
Determine the value of the Riemann zeta function utilizing the highest available primitive precision offered by your programming language of choice (for instance, this would correspond to double or long double in C-family languages, or var in JavaScript, etc.). There is no requirement for employing BigDecimal or simila... | evolcodegolf |
Definitions
An algebraic number is defined as a number that satisfies a non-zero polynomial equation with integer coefficients. For instance, the square root of 2 is classified as algebraic because it serves as a root of the polynomial x² - 2 = 0. Conversely, a transcendental number refers to any real number that cann... | evolcodegolf |
Background
A checkered tiling of a rectangular grid is a specific type of polyomino arrangement where each area can be colored black or white, ensuring that no two adjacent polyominoes share the same color. In terms of graph theory, this implies that the chromatic number of the corresponding adjacency graph is precis... | evolcodegolf |
I have a colleague at work who telecommutes every Tuesday and Thursday. At approximately 8:00 AM, he sends us a message containing the following text:
Hello today I'm working from home
To alleviate the necessity of this daily notification while he is at home, we aspire to automate this task for him.
The challenge ... | evolcodegolf |
Our boolean operators are AND, OR, XOR, NAND, NOR, XNOR, and in conjunction with one of those operators, NOT. Notably, every expression must also incorporate at least one instance of XOR to ensure complexity. Our numbers are \$1\$ and \$0\$. The challenge is to write a program or function that calculates the results of... | evolcodegolf |
In this challenge you will receive as input a list of binary lists. The list represents a game board with each element representing a location on the board. The list at each location represents the tiles on the board, with a 0 being a white tile (□) and a 1 being a black tile (■). Each place can have any number of tile... | evolcodegolf |
Art stolen from What is the specific size of each digit represented in this configuration?
The representation of 7-segment digits in ASCII format utilizes the _| character structure. Below are the digits 0-9 as illustrated:
_ _ _ _ _ _ _ _
| | | _| _| |_| |_ |_ | |_| |_|
|_| | |_ _| | _| |... | evolcodegolf |
An intriguing challenge posed by platforms of this nature is the frequent ambiguity surrounding the gender identity of the individual engaged in conversation. Nevertheless, you have devised an innovative NLP methodology that could potentially unveil the gender of the author based on the linguistic characteristics of th... | evolcodegolf |
The task at hand involves developing a sophisticated program designed to determine the most succinct (least character count) command to traverse from a specified initial directory to a designated target directory, all while adhering to the conventions of a conventional Linux file system structure.
Consider the illust... | evolcodegolf |
Construct a function that, given a printable ASCII string signifying a file path on a POSIX-compliant system, returns solely the filename by eliminating everything leading up to and including the last slash (/). Additionally, the function should handle paths that include symbolic links and return the actual filename ac... | evolcodegolf |
A Pythagorean triple is defined as a triplet of positive integers \( a, b, c \), such that the sum of the squares of the two shorter integers equals the square of the longest integer, mathematically expressed as \( a^2 + b^2 = c^2 \). This triplet is often represented as \( (a, b, c) \), with a classic example being \(... | evolcodegolf |
In the comprehensive analysis of the decimal representations of any rational number expressed in the form p/q, it is essential to recognize the three distinctive components: a periodic tail, a non-periodic head, and a section preceding the decimal point, structured in the specific configuration:
(before decimal point)... | evolcodegolf |
The task at hand involves evaluating a set of four distinct coordinates, each presented in an x y format, to determine whether these specified points constitute a rectangle, ultimately providing a boolean output indicative of this classification.
Guidelines:
To facilitate clarity, it is important to note that squares... | evolcodegolf |
Your task
Given a sequence of digits ranging from 0 to 9 (which may include spaces or commas), translate them into a specific sequence of symbols according to these criteria.
Rules
Process the digits in order:
1. If you encounter a digit from 0 to 3, add the corresponding symbol from the set {@, #, $, %} based... | evolcodegolf |
Craft an intricate illusion of an infinite loop using any imperative programming language, ensuring that at first glance, the code appears to run indefinitely. The implementation must also incorporate an unconventional control structure that contributes to the misleading nature of the loop. For example:
int f(int x)
{... | evolcodegolf |
A Belphegor number is defined as \$(10^{n+3}+666)*10^{n+1}+1\$ (1{n zeroes}666{n zeroes}1) where \$n\$ represents a non-negative integer. A Belphegor prime, in turn, is characterized as a Belphegor number that also qualifies as a prime. The \$n\$ values corresponding to the initial Belphegor primes are 0, 13, 42, 506 (... | evolcodegolf |
In a variation of the Factor Tree encoding challenge, your task is to construct a mapping for a series of unique geometric shapes. Each shape is defined by its number of sides and vertices, with the following criteria:
- The empty set represents the basic shape with no sides or vertices, designated as 0.
- A shape wit... | evolcodegolf |
This is an intricate, proof-golf-inspired confrontation between law enforcement and outlaws. This section is designated for the criminal participants; the section for law enforcement officials can be found here.
Robbers
The law enforcement agents will present various abstract rewriting systems. Your objective is to ... | evolcodegolf |
Challenge
Your goal is to write a program that prints another program. That printed program should print another program, and the new program should print another program, until the end.
Rules
Each program must be less than 256 bytes. (If this needs to be changed, leave a comment)
The last program must be an ... | evolcodegolf |
Create a program or function that accepts two positive integers representing a width and a height, and produces an ASCII art representation of a houndstooth grid pattern according to the specified dimensions, utilizing the provided 25×26 text grid as the foundational cell. This grid design features the following charac... | evolcodegolf |
Your task is to encrypt the string! Now, what does encrypting entail, you might wonder?
Take an input string that consists solely of alphanumeric characters and punctuation marks. First, substitute each punctuation mark with a unique symbol of your choice from a predefined list. Then, separate the letters and digits, ... | evolcodegolf |
The goal is to engineer the most minimal SB3 file that can seamlessly be imported into Scratch 3.0, avoiding any "The project file that was selected failed to load" error message during the process. You may employ any necessary methods, such as manipulating the JSON structure or utilizing more efficient compression tec... | evolcodegolf |
In contemporary contexts, the term "Golfing" pertains to the activity of engaging in the sport of golf, while "golf" specifically refers to the compact vehicle produced by the automobile manufacturer Volkswagen. Thus, rather than the conventional golfing associated with coding practices, your task today is to create a ... | evolcodegolf |
Definition
Let us characterize an (infinite) integer sequence as universal if it encompasses every finite integer sequence as a contiguous subsequence. In other words, an integer sequence (a1, a2, …) is universal if, for each finite integer sequence (b1, …, bn), there exists an offset k such that (ak+1, …, ak+n) = (b... | evolcodegolf |
Inspired by Project Euler #17, this is your challenge. Write a full program or function that takes a number as input, then print or return how many letters it would take to count up to and including that number in English (starting at one). You do not include spaces, commas, or hyphens, but you should include the word ... | evolcodegolf |
In my previous challenge, your task was to identify all possible rectangles within an m x n grid constructed from intersecting lines. However, I discovered that the solution was quite elementary, as a mathematical formula existed that I was previously unaware of! To elevate the challenge further, I now propose an inqui... | evolcodegolf |
Background
Tetris is an engaging single-player puzzle game played on a rectangular grid where players manipulate various tetromino pieces, each consisting of four blocks. When a player successfully fills one or more horizontal lines with these tetrominoes, the filled lines are promptly removed, causing all blocks pos... | evolcodegolf |
This current calendar year aligns with my age, which is itself a prime number, and furthermore, this particular year is also prime. This intriguing coincidence will recur in exactly 10 years and again in another 12 years. If I manage to reach the remarkable milestone of 100 years of age, I will have experienced precise... | evolcodegolf |
In the tradition of playful coding challenges, create a script that engages in "pattern sprinting" with custom sets of strings. The goal is to devise a pattern that captures the essence of each list while striving for optimal brevity. This should not resort to basic alternatives like /(string1|string2|string3)/; instea... | evolcodegolf |
Inspired by the upcoming winter bash event, the goal is to add a hat ^,´ or ` to a single vowel in each word of the input while ensuring that the modified words form a coherent sentence with at least five words and maintains logical sense.
Objective
Add a hat ^,´ or ` to a single vowel in each word of the input.
... | evolcodegolf |
In the quest for the most succinct response, please provide a meticulously organized list that adheres to a 24-hour time format. Each entry should conclude without a comma, ensuring clarity in presentation. The output should encompass the following time increments:
'00:00',
'00:30',
'01:00',
'01:30',
'02:00',
'02:30',... | evolcodegolf |
Construct a detailed table from a provided string, ensuring the first column presents the unique characters in their order of first appearance. Subsequent columns should enumerate the indices of each character within the string, applying either zero-based or one-based indexing as specified. It is essential that the arr... | evolcodegolf |
In a quest for the elusive number sequences, I often find myself intrigued by the properties of prime numbers. One evening, while pondering their distribution, I imagined a game where I form a sequence by multiplying consecutive primes and adding a constant. It brings a sense of accomplishment when I can generate sever... | evolcodegolf |
This statement meticulously counts the occurrences of specific alphabetic characters within its composition: two instances of 'a', two instances of 'c', two instances of 'd', twenty-eight instances of 'e', five instances of 'f', three instances of 'g', eight instances of 'h', eleven instances of 'i', three instances of... | evolcodegolf |
Wheat Wizard has once tried to devise a parsing problem that would be unsuitable for regex applications; however, this endeavor failed due to Anders Kaseorg's enlightening Perl regex solution. This is the second attempt, and with an enhanced understanding of the extensive capabilities of Perl regex, the goal of this ch... | evolcodegolf |
In a competitive environment on CodingGame, there exists a specific challenge that requires you to decode a given string made up of words that have been reversed ('Hello world' transforms into 'olleH dlrow'), followed by converting each character into its corresponding ASCII value, separated by spaces:
>>> decode('11... | evolcodegolf |
I'm highly intrigued by the intricacies of manipulating tables, particularly focusing on the distinctions between shallow and deep copies, and I'm able to express this in 239 characters! However, I am curious to explore whether a more concise approach exists...
Constraints:
It must not exceed 239 characters.
You shou... | evolcodegolf |
In light of certain regrettable stipulations that have unfortunately transformed the initial task into a mere sorting exercise, I present a more intricate variant. Kudos to Luis Mendo for his insightful suggestion aimed at enhancing the original challenge.
You’ve inherited a server that operates several applications, ... | evolcodegolf |
My Alarm Clock Configuration
As an individual residing in the United States, my (digital) alarm clock operates under American timekeeping conventions. To adjust the alarm settings, it initializes from the last set time. Engaging the hour button advances the time by one hour, while activating the minute button increas... | evolcodegolf |
A Bit of Background
The exterior algebra is a central object in topology and physics (for the physics concept, cf. fermion). The basic rule dictating the behavior of the exterior algebra is that \$yx = -xy\$ (and consequently \$x^2 = -x^2 = 0\$). Applying this rule twice, we see that \$yzx = -yxz = xyz\$. The product... | evolcodegolf |
A matrix can be intricately conceptualized as representing the altitudinal variations of a surface within a three-dimensional spatial framework. Envision the eight neighboring cells (encompassing both orthogonal and diagonal adjacencies) of a specific cell arranged in a cyclic sequence, either in a clockwise or counter... | evolcodegolf |
You are tasked with developing a series of programs, specifically, at most 1024 programs that generate outputs of no less than 8524 bytes each. For program \$i\$ (where \$1 \leq i \leq 1024\$), let the \$j\$th byte of its output be denoted as \$a_{i,j}\$, while \$x_j\$ represents the \$j\$th byte of the provided file s... | evolcodegolf |
In light of the considerable amount of reputation I had accumulated several hours ago, which initially sparked the idea for this intriguing challenge:
Numbers composed entirely of a single digit repeated, known as repdigits, are quite captivating! Everyone would experience greater joy if their reputation amounted to a... | evolcodegolf |
**Introduction**
In a recent discussion on a data transformation forum, an engineer proposes a unique method for streamlining URL query strings. They aim to refine the format from “name1=value1&name1=value2&name2=value3” to “name1=value1,value2&name2=value3”. This technique promises a more concise representation of r... | evolcodegolf |
A self number, often referred to as a Colombian or Devlali number, is a unique natural integer, denoted as x, which satisfies the condition where the equation n + <digit sum of n> = x has no viable solutions for any natural integer n. For illustration, 21 does not qualify as a self number since the integer n = 15 yield... | evolcodegolf |
Reflecting on the nostalgia of Xeyes, an iconic demo program bundled with the X window system, your task is to intricately recreate the essence of Xeyes using ASCII art. Construct a program or function that visually represents two ASCII art eyes (detailed specifications below) at the precise location of the user's clic... | evolcodegolf |
Introduction
Recently, a user posed an intriguing question on a now-deleted thread, which I believe could serve as an engaging challenge, so here it is...
Challenge
Develop a comprehensive program or function that accepts two strings as inputs and systematically determines whether any permutation of the first str... | evolcodegolf |
Are you weary of programming languages that incorporate inherent quining methodologies? Your undertaking, should you wish to embrace it, involves integrating a built-in quine functionality into a selected programming language of your preference.
Task
Given a specific programming language X, you are to delineate:
... | evolcodegolf |
Your colleague is tasked with creating a program that determines whether a given number is a perfect square. They initially write a lengthy method that checks each integer up to the square root of the input. Eager to improve efficiency while reducing the time spent coding, they decide to leverage the power of mathemati... | evolcodegolf |
The celestial dance of our moon creates a captivating spectacle as it waxes and wanes, subtly influencing tides, nocturnal activities, and even our moods. However, determining the current phase of the moon from the depths of our cozy dwellings can be challenging. Thus, we require a dynamic lunar phase visualizer!
Requ... | evolcodegolf |
Introduction
In the context of Android Studio and similar integrated development environments (IDEs), various sophisticated code completion mechanisms are employed to facilitate the rapid and efficient insertion of code snippets, especially when dealing with lengthy class or method names, as illustrated in the accomp... | evolcodegolf |
A speed regulation system features a dial with three specific settings to adjust the velocity of a vehicle.
1. Clockwise: Increases the speed by 2 units.
2. Counter-clockwise: Decreases the speed by 2 units.
3. Reset: Returns speed to zero.
Input
Two integers: the initial speed and the target speed, both non-negativ... | evolcodegolf |
The Challenge
I find myself in a state of thirst and require a beverage, yet I am uncertain about what to order. Your mission is to either suggest a drink or provide me with a selection of options for one.
I/O
Input will consist of either a base or the name of a drink.
If a base is provided, your program should... | evolcodegolf |
Upon encountering this particular image, I found myself questioning its authenticity, leading me to consider submitting it for scrutiny to a community of skeptics. However, I soon realized that their feedback would likely focus on whether this singular instance holds true, prompting me to ponder a more comprehensive in... | evolcodegolf |
The task at hand entails a computational challenge where, provided with a sequence of numerical values designated as L and an integer denoted by N, you are required to devise a function that:
determines the sizes of buckets for the list L, ensuring that it is evenly distributed into N whole buckets of equal or approxi... | evolcodegolf |
A variable number of bits is an array of 0 or more bits. Therefore, [0, 1] qualifies as a variable number of bits, but so does [].
Craft a function or program that, given a nonnegative integer, produces a variable number of bits such that there exists a one-to-one (bijective) mapping with an array. While there are infi... | evolcodegolf |
Given an input of a 2-dimensional array of integers, rotate the array 90 degrees clockwise while ensuring that the function maintains the original input unaltered until the rotation process begins. It should work for rectangular arrays of all sizes and proportions. The rotated array should be printed at the end of the ... | evolcodegolf |
Stack Exchange currently hosts a diverse array of 134 specialized question and answer platforms. This collection encompasses all beta forums (including the likes of PPCG) but deliberately excludes Area 51 proposals and any meta discussions, aside from the primary "mother meta" site. To tackle this challenge, select one... | evolcodegolf |
Construct an intricate hyperquine chain inspired by Hyperprogramming: N+N, N×N, N^N, incorporating an additional requirement of providing a detailed explanation of the logic behind each hyperquine used within the chain, while ensuring that you credit @MartinEnder and @trichoplax for their contributions in the sandbox. ... | evolcodegolf |
Your task, if you choose to accept it, is to create a sophisticated string generator that produces strings based on a specified wildcard. You may develop either a function or a complete program that accepts a single argument and outputs a string that conforms to the given specifications.
Wildcard characters and sequen... | evolcodegolf |
Task
Given a non-negative integer n, output 1 if n is 0, output the value of n otherwise, and additionally return an error message if the input does not conform to the specified regex patterns.
Input
A non-negative integer.
If you would like to accept the string as input, the string would match the following r... | evolcodegolf |
Devise a mapping function g that transforms sequences of hexadecimal digits into sequences of hexadecimal digits, ensuring that applying g twice on any input sequence h results in a cycle that rotates the characters of h by three positions to the right. By "rotate," I mean that the last three characters of the string w... | evolcodegolf |
Flavortext
So...this is a bit embarrassing. It appears that I inadvertently transformed into a monkey last night after indulging in an excessive number of banana sundaes. This unexpected change has rendered numerous tasks quite inconvenient, particularly when it comes to typing. You see, monkeys are only capable of u... | evolcodegolf |
The Klyrasi are a unique group in a speculative fiction setting, known for their distinct method of communication that deviates from conventional language systems. Unlike other groups that adhere to logical syntax, the Klyrasi employ a complex system of tonal inflections combined with gesture-based expressions to conve... | evolcodegolf |
When engaging in various internet challenges, one typically encounters minimal issues regarding the specification of a user agent; however, the scenario differs significantly when interacting with Google. Google actively blacklists the Urllib user agent, likely as a countermeasure against spambots, necessitating the ex... | evolcodegolf |
Engage with the Greek Computer Puzzle Toy Challenge
Envision a compact toy comprising an intricate series of stacked dials, drawing inspiration from the famed Antikythera Device. This puzzle, crafted by Project Genius, necessitates the careful arrangement of dials into a specific configuration in order to achieve vict... | evolcodegolf |
Your objective is to process a 24 bits per pixel sRGB image and generate an output where the same image is enlarged to three times its original dimensions, utilizing individual red, green, and blue subpixels. The end result will consist exclusively of pure black, red, green, and blue pixels. Each pixel from the source ... | evolcodegolf |
Given an integer N > 1, output all other numbers whose prime decompositions share the same digits as the prime decomposition of N, while ensuring that the sum of the digits in each output number is also equal to the sum of the digits in N. For example, if N = 117, then the output must be [279, 939, 993, 3313, 3331], be... | evolcodegolf |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.