instruction_seed stringlengths 29 40.5k | source stringclasses 6
values |
|---|---|
Fibonacci
The Fibonacci numbers are one of the more well-known sequences in mathematics, where each number is composed by adding the two previous numbers together. Below is a definition of the zero-indexed sequence:
f(0) = 0
f(1) = 1
f(n) = f(n-1) + f(n-2)
This results in the sequence 0, 1, 1, 2, 3, 5, 8, 13, 21, ... ... | evolcodegolf |
This sentence employs two a’s, two c’s, two d’s, twenty-eight e’s, five f’s, three g’s, eight h’s, eleven i’s, three l’s, two m’s, thirteen n’s, nine o’s, two p’s, five r’s, twenty-five s’s, twenty-three t’s, six v’s, ten w’s, two x’s, five y’s, and one z. Such sentences are called autograms. Your task is to write a pr... | evolcodegolf |
You are presented with a non-empty list comprising positive integers as input. For instance:
[1,2,2,2,1]
Your objective is to generate a ragged list that encapsulates this as its "depth map." This resulting list must retain the same elements in the original order; however, each element n must be positioned at a de... | evolcodegolf |
Challenge:
To ascertain the coordinates of a point situated on the linear segment that connects two specified points within a two-dimensional Cartesian plane, ensuring that this new point is equidistant from both of the original points.
Example:
(0,0), (3,3) -> (1.5,1.5)
(-1,-1), (1,1) -> (0,0)
(-7,3), (2,-... | evolcodegolf |
You are provided with a selection of English words representing prime numbers from one to twenty, specifically: two, three, five, seven, eleven, thirteen, seventeen, and nineteen.
Your task is to determine whether it is possible to form at least one additional prime number from the same set without utilizing any of th... | evolcodegolf |
Golf Me An OOP with Class Dynamics!
Two critical facets of object-oriented programming involve both inheritance and composition, which collectively empower developers to construct intricate yet efficient class hierarchies tailored for nuanced problem-solving. Your assignment is to meticulously analyze a sequence of d... | evolcodegolf |
I recently engaged in a delightful session of the board game Sorry! with a group of friends, which prompted me to ponder the potential for creative challenges inspired by the game itself. One particular task stands out as relatively straightforward yet intriguing.
Your objective involves generating an ASCII-art rendi... | evolcodegolf |
Engage in this intricate cops-and-robbers puzzle, for which the cops' thread is accessible here. Your challenge involves not only identifying an anagram of the given programs in the cops' thread but also ensuring it effectively functions as the left inverse. As you deduce the solution, be sure to post your findings as ... | evolcodegolf |
Given a series of events along with their durations and locations, create an ASCII-art timeline that visually represents these events over the course of a week. The timeline should display each day horizontally, spanning from Monday to Sunday, and include all events in chronological order. Each event must be represente... | evolcodegolf |
In the context of a specified string and a predefined set of characters utilized for its encoding, your task is to systematically compress the string by deploying only the precise number of bits requisite for each character involved. Ultimately, your goal is to return the character codes necessary for generating the re... | evolcodegolf |
The task at hand requires you to implement a comprehensive conversion system that facilitates the transformation of numbers between the factoradic numeral system and any specified integer base, extending beyond the limited range of decimal integers from 0 to 10!-1. Additionally, you will need to adeptly handle conversi... | evolcodegolf |
Consider a given lower case string composed solely of alphabetical characters. For instance, let us examine the string: s = 'abcdefghijklmnopqrstuvwxyz'.
The primary objective is to transform every alternate vowel within the string into its uppercase equivalent while retaining the original order of the consonants. Sp... | evolcodegolf |
**Background**
During a lively workshop on artificial intelligence, the instructor presented a fascinating puzzle involving an array of random characters. She claimed that by continuously merging adjacent characters into their alphabetical average, something extraordinary would emerge. As the workshop progressed, my ... | evolcodegolf |
Develop a sophisticated program capable of losslessly compressing and decompressing ASCII text while exhibiting a particular proficiency in handling palindromes. This includes consideration for case insensitivity and the disregard of punctuation in palindromic structures. The challenge lies not only in achieving the be... | evolcodegolf |
Your task presents an intriguing challenge: Given a positive integer N, generate and output every possible combination of positive integers that cumulatively sum to N, exploring not only the different combinations but also the various possible sequences of those combinations. For instance, should the input be the integ... | evolcodegolf |
Develop a program that, at one-second intervals (beginning immediately upon initiation), accurately outputs the cumulative elapsed time from the moment your program was executed, adhering to the following stipulations:
Regulations
- The time format must be hh:mm:ss, ensuring that single-digit representations have lea... | evolcodegolf |
The Task
Develop a computational program or a mathematical function which, upon receiving a specified positive integer n as its input parameter, yields Mills' Constant with precision up to n digits.
The Definition
A detailed exposition of Mills' Constant, calculated to a precision of six thousand digits, can be ... | evolcodegolf |
I'm working with the following Haskell implementation that generates the infinite list of even Fibonacci sequence values:
```haskell
z=zipWith(+)
g=z((*2)<$>0:0:g)$z(0:g)$(*2)<$>scanl(+)1g
```
This approach initiates the sequence with 0 and 2, then defines each subsequent term as the sum of:
- twice all preceding te... | evolcodegolf |
Many people find themselves puzzled by the emoticon *^_^*, often interpreted as a joyful face. Let's take this interpretation a step further.
Task
Given an integer m between 0 and 3 inclusive, output or return
chirp
if m = 0,
*^_^*
if m = 1,
^ ^
*^_^* ^ ^
^ ^ ^
*^_^* ^ ^ ... | evolcodegolf |
Your Programs:
You'll write two programs (both in the same language). The storage program must take a string from STDIN and securely store it in a persistent manner (see below), then exit without error. The retrieval program will accept no input, retrieve the string that was stored, and print it to STDOUT, ensuring tha... | evolcodegolf |
UPDATE : isaacg's Pyth submission is the winner!
It has come to the attention of many that a more refined iteration of JavaScript (specifically, ES6) has introduced an intriguing method known as String.prototype.repeat, which allows one to execute an expression such as
"Hello, World!".repeat(3)
resulting in the outp... | evolcodegolf |
Considering two distinct numerical values, generate a printed page that showcases an "X" positioned precisely within the designated area (with a tolerance of ±10%). The values must represent either proportions or fractions of the overall dimensions of the printable area of the page, such as [25,75] or ["15%","0%"] or [... | evolcodegolf |
Consider a scenario in which we utilize the following established rules to extract a single string from another, with the originating string composed solely of ASCII printable characters and designated as an *-string. Should the string be depleted before the process reaches completion, it will result in an error, leadi... | evolcodegolf |
In the year MDLXVII, within an alternate reality where the Roman Empire sustained its grandeur without succumbing to the dark ages, the extended duration of Pax Romana has catalyzed an unprecedented economic stability that fosters rapid technological advancements. The Romans have embarked on the exploration of circuitr... | evolcodegolf |
Given an integer array consisting of a minimum of two elements, your task is to output the Matrix-Vector (defined below) that corresponds to the provided array. To compute the Matrix-Vector, you should initially rotate the input array of size n through its elements to construct a square matrix of dimensions n x n, ensu... | evolcodegolf |
Your task is to develop a program that accepts a one-dimensional array as input. The specifications for the array are as follows:
- It is guaranteed to be one-dimensional.
- It exclusively contains integer values.
- It has the potential to be empty.
The program is required to reverse the array and subsequently calcul... | evolcodegolf |
For the context of our inquiry, a trend is defined as a contiguous subsequence derived from an array, which can be categorized into one of three distinct types:
1. Increasing, such as [1,2,3,10,239]
2. Decreasing, such as [8,5,0,-3,-50]
3. Stable, such as [7,7,7,7]
It is crucial to note that the sequence [1,1,2,3] d... | evolcodegolf |
Background
There exists a captivating inquiry on MathSE regarding certain conjectures that have been refuted by exceedingly vast counter-examples. An engaging response narrates the tale of a specific sequence of numbers known as Gijswijt's sequence, now cataloged as A090822. This sequence is defined through the follo... | evolcodegolf |
In this coding challenge, we will engage in an intricate code golf exercise, assessing our creativity and conciseness. Envision a 3x3 matrix populated with digits ranging from 0 to 8, structured as follows:
0 | 1 | 2
---+---+---
3 | 4 | 5
---+---+---
6 | 7 | 8
Your task is to derive the neighboring indi... | evolcodegolf |
Challenge:
Your objective is to devise a multitude of programs, functions, or snippets, ensuring that each distinct one outputs, prints, or returns a specific integer sequentially. The initial program must yield the integer 1, the subsequent one 2, and so forth, continuing this pattern. It is critical that you do not d... | evolcodegolf |
Assistance needed! I have generated a sequence of rational numbers without any whitespace or other separators apart from the slashes (/) used in fractional representations. However, there's a silver lining! All these values are strictly positive, and none of the fractions are improper; in fact, each numerator is less t... | evolcodegolf |
Construct a positive integer n and use it to generate a JSON array (which can either be a string or your language's built-in JSON representation, provided it results in valid JSON, noting that your code does not need to focus on displaying the string, as you can utilize the inherent JSON representation). Begin with two... | evolcodegolf |
Challenge
Premise
Euler diagrams consist of simple closed shapes in a 2-D plane that each depict a set or category. The manner in which these shapes intersect or overlap serves to elucidate the intricate relationships between the sets.
I'm an overly pampered individual who harbors the belief that Euler diagrams are rat... | evolcodegolf |
A bit migrates sequentially from the Least Significant Bit (LSB) to the Most Significant Bit (MSB), progressing one position at a time until it reaches the apex of the container:
0000
0001
0010
0100
1000
Upon reaching the top, a subsequent bit embarks on its expedition, ceasing when it encounters another b... | evolcodegolf |
In various stages of our academic and professional journeys, we've encountered the assertion that executing a division by zero is fundamentally infeasible. While this proclamation holds substantial validity across conventional mathematical contexts, one might ponder the existence of an alternative framework that enable... | evolcodegolf |
## Language Name, N bytes
In the realm of interactive storytelling and gaming, dice play a pivotal role in determining outcomes. Your task is to represent a unique six-sided die (commonly referred to as d6) in a novel way. Instead of just generating a random number between 1 and 6, your challenge is to create an algor... | evolcodegolf |
In: Sufficient memory allocation and a positive integer N must be provided, alongside a requirement that the output must have a specified dimensionality level to be determined by a secondary positive integer M.
Out: N-dimensional N^N array filled with N, where N^N indicates N terms of N-by-N-by-N-by..., but the structu... | evolcodegolf |
Sometimes I make bad jokes... And a bad joke I like to make involves interpreting exclamation marks in sentences as the factorial sign.
Task
Your task is to write a program that receives a sentence and applies the factorial joke to the sentence. The "factorial joke" consists of looking for exclamation marks "!" and... | evolcodegolf |
Sequel of this extraordinary challenge
You, an exceptionally gifted technological sleuth, have successfully neutralized the explosive device and are now intent on infiltrating the computer system. The authorities discovered the intricate password 67890-=yuiop[]hjkl;'\vbnm^&*()_+:"| inscribed on a fragment of paper; h... | evolcodegolf |
Implement this key cipher with an additional feature to support varying character sets
Goal
Utilize the algorithm (explained in the Algorithm section) to implement a specified cipher while also accommodating an extended character set.
The program must read input from STDIN or the closest available equivalent, use the a... | evolcodegolf |
For a programming language, a reserved word signifies a term that cannot serve as an identifier, such as variable names, function titles, or labels. In various programming languages, keywords are regarded as the collection of language instructions.
Challenge
Employing your selected programming language, construct a co... | evolcodegolf |
Goal:
Given a hand of 5 cards, determine its value in the game Cribbage while also ensuring that at least one card in the hand is a face card.
Input a string through any reasonable means. You can assume the string will always be in this format:
[Card Value][Card Face],[Card Value][Card Face],[Card Value][Card Fac... | evolcodegolf |
Objective/Restrictions:
May only be addressed using a programming language that supports function definitions, including constructs such as procedures, methods, lambdas, macros, statement grouping, and labeling.
Devise a function with a minimum of two parameters that generates an array composed of 7 random strings, w... | evolcodegolf |
Programs frequently present outcome metrics in statistical formats, exemplified by the following data:
54% of participants were awarded recognition
69% of participants attained a career advancement
85% of participants experienced a salary increase
These metrics are derived from the equation a/x, where both a an... | evolcodegolf |
While exploring the fascinating properties of the Fibonacci sequence represented in binary format, I've compiled the following data (with binary representations displayed from the least significant bit to the most significant bit for clarity):
1 1
1 1
01 ... | evolcodegolf |
Introduction
Let's delineate a novel arithmetic operation, which I will refer to as zipper multiplication. To execute zipper multiplication on two nonnegative integers, you will need to append leading zeros to ensure the lengths are equal, perform a digit-wise multiplication on the corresponding base-10 digits of the... | evolcodegolf |
Untouchable Numbersα
An untouchable number is a positive integer that cannot be expressed as the sum of all the proper divisors of any positive integer (including the untouchable number itself). For example, the number 4 is not untouchable as it is equal to the sum of the proper divisors of 9: 1 + 3 = 4. The number 5... | evolcodegolf |
In this challenge, the objective is to determine the total count of characters found in the English representation of a specified integer. Given that this is a code golf contest, the primary aim is to achieve this with the smallest possible code length.
GUIDELINES
The integer provided will always fall within the ran... | evolcodegolf |
Utilizing ASCII mode for transferring binary files via FTP is notoriously detrimental and can lead to severe data corruption. Let’s delve into simulating this corruption phenomenon! Your assignment is to craft a program that accepts a file as input and generates a distorted version of the file. Since the specifics of h... | evolcodegolf |
Introduction:
I have compiled a diverse array of ciphers into a document during my childhood, selecting a few that I believe offer intriguing challenges—ensuring they are neither overly simplistic nor excessively difficult. Most of these ciphers remain untested in practical scenarios, and I'm currently deliberating whe... | evolcodegolf |
Background
Alice and Bob are engaged in the ambitious task of creating an intricate golfing language designed to consistently conquer every conceivable PPCG challenge. Alice envisions a two-dimensional language similar to the simplistic ><>, whereas Bob is inclined towards a more sophisticated prefix-infix syntax aki... | evolcodegolf |
Your input is a sequence of 3-100 floating-point numbers, which may include both positive and negative values. You may assume the input format is flexible, allowing for any standard representation of these numbers. The aim is to output the same sequence, retaining the same format, but transformed into a circularly shif... | evolcodegolf |
Analyze the following computational challenge presented on hackerrank:
https://www.hackerrank.com/challenges/flatland-space-stations
You are tasked with determining the number n, where cities are represented by indices ranging from 0 to n-1, alongside a disordered collection of indices corresponding to the location... | evolcodegolf |
Background
"The Taming of the Tides" (OEIS A174529) is a sequence of integers, defined by the following rules:
\$b_0 = 2\$
\$b_n = b_{n-1} + 2n\$ if \$n\$ is even
Otherwise, \$b_n = b_{n-1} - n\$
In pseudocode:
b[0] = 2
if n % 2 == 0 then
b[n] = b[n-1] + 2 * n
else
b[n] = b[n-1] - n
The res... | evolcodegolf |
# <language for H, <language for Q>, <language for 9>, <language for +>, n characters
Create a program that can be run in 4 different languages such that:
One language prints "Hello World!"
One language outputs its own source code
One language outputs 99 bottles of beer on the wall, that is:
99 bottles of beer on the... | evolcodegolf |
Create a visually intricate ASCII art quilt comprised of a text block precisely 24 characters wide and 18 lines tall, featuring the characters =-<>/\ arranged in a quilt-like design that exhibits both horizontal and vertical symmetry.
Illustrative example of such a quilt:
========================
--------------------... | evolcodegolf |
You are given a grid represented by a matrix of size n x m, where each cell contains a value that indicates the weight of the connection to its neighboring cells in the four cardinal directions: North, East, South, and West. The weight is denoted by a positive integer, and a weight of 0 indicates no connection in that ... | evolcodegolf |
Consider a single-digit integer x (ranging from 0 to 9, inclusive) and a positive integer n. Compute the cumulative sum of the initial n elements from the specified sequence:
\$x,10x+x,100x+10x+x,\dots\$
For instance, in the scenario where x is 6 and n equals 2, the resultant sum is computed as 6+66, resulting in 72. B... | evolcodegolf |
For those who might be unaware, Sigma serves as a Greek letter that plays a significant role in mathematical notation, particularly representing the summation operation. Given a string that encapsulates an expression contingent upon the variable \$k\$, referred to as \$E(k)\$, please compute the cumulative total of the... | evolcodegolf |
This challenge pertains to a programming endeavor I undertook last year utilizing the Ruby language. To enhance the enjoyment factor, I aimed to accomplish it using the minimal byte count feasible. At the time, I was unaware of the concept of code golf; however, upon discovering this community, I am eager to learn if a... | evolcodegolf |
It is merely the second day of the week, how frustrating! I have certainly earned a reward. Create for me a grand fortress. The submission with the minimal byte count is the victor!
Take no input and produce this exact visual representation:
/\ /\
/ \ / \
---- ----
| |^^^^^^^^^| ... | evolcodegolf |
Given a number, ascertain its status as a folding number with an added requirement that it must also be greater than 100. A folding number is defined as a number such that if you take its binary representation and "fold" it in half, meaning you perform XNOR multiplication of the first half of the number and the second ... | evolcodegolf |
Description:
In the realm of mathematical representations, a non-integer framework for expressing numerical values employs non-integer quantities as the foundational bases of a positional numbering system.
For instance, utilizing the golden ratio (the irrational number represented as \(1 + \frac{\sqrt{5}}{2} \appro... | evolcodegolf |
Devise a sophisticated algorithm that effectively interprets a given sequence of letters as a Roman numeral according to the specified Roman numeral rules outlined below. Each individual letter corresponds to a unique Arabic decimal value, which is not predetermined; thus, the values can range widely, such as {A=10, I=... | evolcodegolf |
In the realm of data representation, numerous encoding schemes exist, each catering to specific needs and constraints. Among these, the concept of "bit packing" emerges as a fascinating strategy, wherein multiple values are crammed into fewer bytes to minimize space usage. This is particularly intriguing in the context... | evolcodegolf |
Construct a regular polygon with a specified positive integer N as its number of vertices, ensuring the distance between each adjacent vertex equals 1 unit. Subsequently, connect each vertex to every other vertex with straight lines, while additionally calculating the angle subtended at the center of the polygon by eac... | evolcodegolf |
See Also: Recognition
Introduction
Due to concerns regarding the adherence of your previous work to production code standards, you have now transitioned from the speed camera development team to a new task: crafting a program that extracts detailed information regarding vehicles based on their number plates. In tru... | evolcodegolf |
Imagine a world where sorting is not just about organizing numbers but involves a whimsical dance of mystical creatures representing each element in the list. Your task is to devise a strategy for these creatures to pair off and swap positions until they form a harmonious sequence.
Instead of choosing indices blindly,... | evolcodegolf |
xxd is a command-line utility, included with the vim editor, that has been utilized to encode responses for code golf challenges on this platform. It transforms a binary file into a hexadecimal representation and can revert this process seamlessly. Your task is to implement the xxd command alongside its reverse operati... | evolcodegolf |
Challenge
This challenge revolves around the intricate dynamics of the domino effect:
Initially, each domino stands upright in a linear arrangement, and it can topple either to the left or the right along this same trajectory. Once a domino falls, it will inevitably cause the next one to fall, which could potential... | evolcodegolf |
As this is my inaugural foray into the intricacies of codegolf inquiries, I extend my apologies if the question falls short of expectations, and I am open to constructive criticism. I possess a file formatted as follows:
a | rest of first line
b | rest of second line
b | rest of third line
c | rest of fourth li... | evolcodegolf |
From http://en.wikipedia.org/wiki/Triangle:
Compose a program that accepts three distinct 2D coordinate tuples (in Cartesian format) and determines the geometric shape these points collectively represent. In most instances, the specified points will yield a triangle of various classifications, while in certain degener... | evolcodegolf |
Craft a program that accepts a single input through a standard input/output mechanism (specifically as an integer), subsequently computing and displaying the cumulative total of all possible permutations derived from that integer (with repetitions allowed). For instance, the integer 10 would yield a result of 11, as th... | evolcodegolf |
Background
In many regions, food manufacturers are required to provide detailed nutritional information on their packaging, including caloric content, serving sizes, and the distribution of macronutrients. While specific values are often given, some items may list ranges for certain ingredients based on their variabi... | evolcodegolf |
Given a nonnegative integer, ascertain whether it qualifies as a three-digit number terminating in one when expressed in any integer base greater than zero. To clarify, the number must be representable in base-N, where N is an integer that exceeds zero and does not include unary systems.
Rules
This is a code-golf ch... | evolcodegolf |
As a newcomer to the art of code golfing, I recently embarked on a project involving a space invader clone titled "Invas!on." This compact piece of code is just shy of 500 bytes, entirely comprised of ASCII elements, and allows for character movement and interaction by shooting at the approaching extraterrestrial foes.... | evolcodegolf |
Design and implement a function that processes an array of decimal numbers by sequentially identifying and subtracting the minimum value from each element, ensuring that once a minimum has been utilized, it cannot be employed again in subsequent calculations.
Your output should reflect the results after each subtract... | evolcodegolf |
In accordance with the comprehensive information sourced from Wikipedia,
In the realm of number theory, a natural number \$n\$ is identified as a Blum integer if it can be expressed as \$n = p \times q\$, where \$n\$ is a semiprime composed of distinct prime factors \$p\$ and \$q\$ that are congruent to \$3 \bmod 4\$.... | evolcodegolf |
Background
The world of cryptography is always evolving, with new challenges emerging regularly. Recently, a cryptographic algorithm has been proposed that claims to securely transmit messages using an intricate network of nodes, but it faces scrutiny over its actual security proofs. Central to the algorithm’s functi... | evolcodegolf |
Given a positive integer n >= 1, generate and display the initial n rows of the following intricate structure:
#
# #
###
# #
# # #
## ##
#####
# #
# # #
# # # #
# ### #
## ##
## # ##
### ###
#######
The n-th row, indexed from one, represents the binary equivalent of n, mirrored while excluding the... | evolcodegolf |
Your task involves generating the current time (formatted in a 12-hour clock style) represented through ASCII art. The characters permissible for your output are as follows:
___ __ ___ ____ _ _ _____ __ ______
/ _ \ /_ | |__ \ |___ \ | || | | ____| / / |____ |
| | | | | | ) | ... | evolcodegolf |
Consider a sequence \$A = (a_1,\dots,a_k)\$ where \$k\ge2\$ consists of distinct positive integers. Commencing from \$i=2\$, iterate while \$a_i\$ remains a member of the set \$A\$ (until reaching the final element).
If the value \$d=|a_i-a_{i-1}|\$ is not already included in the set \$A\$, append \$d\$ to \$A\$.
Subs... | evolcodegolf |
Your task is to format an address provided entirely in lowercase into a more polished and user-friendly format, while adhering to specific guidelines that exclude the use of regex. Additionally, the formatted output must ensure the presence of a complete stop (period) after the street name when applicable. Addresses wi... | evolcodegolf |
This challenge resembles the intriguing concept found in "Can you Meta Quine?" A quine is a program that generates a replica of itself on STDOUT. The task at hand is to develop a program A, which when executed, outputs a program B on STDOUT. Program B, upon execution, must yield program A on STDOUT. Notably, both progr... | evolcodegolf |
Balanced binary search trees are essential to guarantee O(log n) lookups (or similar operations). In a dynamic environment where a lot of keys are randomly inserted and/or deleted, trees might degenerate to linked lists which are horrible for lookups. Thus there are various kinds of self-balancing binary trees that cou... | evolcodegolf |
The concept of quote notation[1] provides a sophisticated method for representing rational integers in a finite yet precise manner, drawing upon the foundation of \$p\$-adic numbers. This notation is characterized by a string of digits (\$0123456789\$) that must include exactly one "quote" (denoted as \$\newcommand{'}[... | evolcodegolf |
The universe of computational languages comprises numerous Turing-complete programming languages. Almost all practical languages, alongside a plethora of ineffective ones, fall within this Turing-completeness category. Intriguingly, some of these languages achieve Turing completeness through serendipitous means. While ... | evolcodegolf |
Design a function that accepts a non-negative integer M. Generate a list of all unique representations of fractions that can be represented using exactly M characters, utilizing digits (0123456789), slashes (/), and negative signs (-).
The representation should maintain standard mathematical formatting while being as... | evolcodegolf |
This challenge aims to elevate the morale of our friend Alex A., who often struggles with logic.
Imagine you have a friend named Alex who requires assistance with foundational concepts of logic and mathematics, particularly in the realm of mathematical equivalence. He presents you with a sequence of equations formatte... | evolcodegolf |
Challenge description
Recursive concatenation is an imaginative procedure that combines two positive integers: x and y, to create a new integer that consists of x repeated in a unique pattern defined by y. For instance, if y is an odd number, x is repeated y times in the standard sequence (e.g., 4 and 3 yields 444), ... | evolcodegolf |
I'm tasked with identifying the speediest racer in existence. Please illustrate your quickest lap around the 18x14 track depicted below, ensuring that the car’s orientation is changed for each position and a distinct color is assigned to each segment.
______
/ \
/ \
/ ____ \
/ / ... | evolcodegolf |
As we learned from The Holy Numbers, there are 5 holy digits (0, 4, 6, 8, 9), and positive integers consisting solely of those digits are deemed holy. Moreover, the holiness of a number is determined by the cumulative sum of the holes in each digit (+2 for every 0 or 8, and +1 otherwise). However, an additional nuance ... | evolcodegolf |
Formulate a codegolf solution that generates the hamming code with a specified distance of 3! The sequence initially presented is: 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, 505, 510, 642, 645, 667, 668, 680...
Your task is to... | evolcodegolf |
Drawing inspiration from the Codewars Kata challenge, your objective is to transform an input string, such as the example below:
"'Twas a dark and stormy night..."
into a string that reveals the sequential position of each alphabetic character within the English alphabet, with individual positions separated by spa... | evolcodegolf |
Challenge:
Given an input string containing characters that represent different colors of dry erase markers on a white board, output the order in which they were drawn, from first to last. Additionally, ensure that the function you write adheres to the principles of code-golf, minimizing its byte size while maintaining... | evolcodegolf |
The Challenge
Your objective is to construct a program that adeptly evaluates the following mathematical function:
f(x, t) = d^x / dt^x (sin t)
This represents the x-th derivative of the sine function with respect to t. Should you require additional clarity on calculus concepts, the following table provides a ref... | evolcodegolf |
Statement
Given an input formatted as "35 15 0 0 10" that aligns with the subsequent constraints:
- Width in characters of the grid (ranging from 5 to 50)
- Height in characters of the grid (ranging from 5 to 25)
- Initial X position of the ball (0 through Width-1)
- Initial Y position of the ball (0 through H... | evolcodegolf |
To effectively articulate the concept of a dual graph, we begin by stating that a dual graph is constructed such that for each distinct "face" within a graph G, there exists a corresponding vertex in the dual graph. Moreover, for every edge present in graph G, there exists an edge in the dual graph that links the verti... | evolcodegolf |
The challenge
This challenge will unfold as a classic king of the hill competition in the form of Rock-Paper-Scissors (RPS). You are tasked with devising a program that accepts two command line arguments: a string encapsulating all the moves you have executed and another string detailing all the moves your opponent has... | evolcodegolf |
This scenario presents a 3x3 ASCII jigsaw puzzle represented in a structured format:
```
_____ _____ _____
| _| |_ |
| (_ _ _) |
|_ _|_( )_|_ _|
| (_) |_ _| (_) |
| _ _) (_ _ |
|_( )_|_ _|_( )_|
| _| (_) |_ |
| (_ _) |
|_____|_____|_____|
```
In addition, another variati... | evolcodegolf |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.