instruction_seed stringlengths 29 40.5k | source stringclasses 6
values |
|---|---|
In this intellectual endeavor, your objective is to craft a program or function that operates without accepting any input parameters and subsequently generates or returns a string with a byte count identical to that of the program itself. The stipulations are as follows:
You may exclusively produce bytes that lie with... | evolcodegolf |
Could you provide nuanced strategies tailored specifically for optimizing code golf challenges within the context of Forth programming and its derivatives? I am seeking insights that are applicable to coding efficiency and brevity, ensuring that the suggestions transcend basic advice like "eliminate comments." | evolcodegolf |
TL;DR
Record (left-right)/length for each pair of consecutive elements. If they're 0 or negative, don't record it.
Once this is done, take these actions. Don't update quotients:
Increment right and decrement left for (0, .3)
Remove from the array at >=.3
Print both elements for >.5
Print the remaining array. Have so... | evolcodegolf |
Prepare to embark on the intricate task of constructing a grid-based layout for a roguelike role-playing game, with specific constraints and details in mind!
Example Map:
##########
#### F#
#### ##
## C#C#
# ## #
# C #E #
#### # #
# #
#P #
##########
In this repres... | evolcodegolf |
Receive a single string as input, then produce one or more modified variants of that string with the following criteria:
1. No character occupies its original index.
2. No character is situated next to a character that it was originally adjacent to, considering the string's structure.
It is guaranteed that this rearr... | evolcodegolf |
**Contextual Overview**
You have once more been entrusted with the intricate task of quantifying the presence of landmines scattered across a specific terrain. However, this time, we find ourselves navigating the expansive flatlands.
Your objective is to derive the landmine score based on a detailed input comprisin... | evolcodegolf |
Engage in an intriguing computational challenge revolving around the discovery of the nth prime number with specific characteristics.
Challenge
Your task is to develop a succinct program that takes a single integer input, denoted as n, and returns the nth prime number whose decimal notation incorporates the numerical... | evolcodegolf |
Challenge:
Given a prime integer \$p\$, guaranteed to be \$\geq3\$, we are going to create fractal trees starting from a single trunk, where the first tree has a height of \$p\$; the second tree's height will be \$\frac{p-1}{2}\$; the third tree's height will be \$\frac{p-3}{4}\$; etc.; continuing until the height reac... | evolcodegolf |
Challenge
Given a quark composition of a particle as input, output the corresponding hadron's name while also providing a brief explanation of how the quark configuration relates to the resulting hadron. Quarks will be represented by a capital letter and antiquarks by a lowercase letter. The quarks may be in any orde... | evolcodegolf |
The challenge
How effectively can you manipulate the electoral boundaries of North Carolina into 13 voting districts while adhering to the principles of gerrymandering?
In this intricate task, you will utilize the provided datasets to create distinct maps favoring the Republican and Democratic parties.
File 1: NC... | evolcodegolf |
In this coding endeavor, simulated marquee text refers to a visual representation where characters are revealed incrementally, resembling a scrolling display effect. Below are some illustrative instances:
testing 4
t
te
tes
test
esti
stin
ting
ing
ng
g
hello 2
h
he
el
ll
lo
o
foobarz 3
f
fo
foo
oob
ob... | evolcodegolf |
Introduction
In the spirit of the holiday season, I have resolved that this Christmas, as a thoughtful "gift" to a cherished friend, I intend to acquire the various items enumerated in the beloved traditional carol "The 12 Days of Christmas". However, I find myself at a loss when it comes to determining the cumulativ... | evolcodegolf |
Compose a program that outputs the phrase "Hello, World!" to the console. Furthermore, if you extract and concatenate only the first, third, fifth, and so forth characters from your program, this new configuration must still yield the output "Hello, World!". Additionally, ensure that the program contains at least one c... | evolcodegolf |
In the entirely fictional realm of Rnccia, renowned for its abundance of treasures, the condition of its roads presents a challenge, rife with numerous pits, a mere fraction of which receive repairs, and even fewer done properly. Your mission is to creatively interpret and illustrate the flawed roads of this nation whi... | evolcodegolf |
In the context of a ragged structure comprising positive integers, your objective is to ascertain the dimensions of the most substantial sublist contained within. For illustration:
[1,[1,[8,2,[1,2],5,4,9]],2,[],3]
The result is 6, as it pertains to the largest sublist, which encapsulates six elements, surpassing a... | evolcodegolf |
Construct a bijection that correlates positive rational numbers with distinct sequences of integers. For a given positive rational number expressed in lowest terms as \$\frac{a}{b}\$, determine the unique sequence of integers it corresponds to. Note that sequences may include zeros and negative integers. | evolcodegolf |
It is quite astonishing that a specialized variant of linear regression has been suggested for a specific challenge, while the classic approach of ordinary least squares regression seems to have been overlooked, even though it stands as the preeminent method employed across various fields such as applied economics, bio... | evolcodegolf |
This challenge is designed to be intriguing. Given a number, produce an ASCII-art representation of the numeral, utilizing the Mayan Base-20 numeral system while ensuring that the output strictly adheres to the representation norms of each symbol defined below.
What constitutes the Mayan system?
The Mayans employed b... | evolcodegolf |
In the intricate process of translating genetic information, ribosomes play a crucial role by interpreting sequences of RNA nucleotides in triplet sets, known as codons. Each triplet specifies an amino acid, though multiple codons can encode for the same one, highlighting the genetic code's redundancy.
Among the codon... | evolcodegolf |
Embracing a sustainable resolution for the year 2015 encourages us to initiate our journey by focusing on the practice of recycling—specifically through the lens of code! Your mission is to output the number 2015 to STDOUT, with or without a trailing newline (and solely that). However, this must be achieved by creative... | evolcodegolf |
What constitutes the concept of Typoglycemia in the realm of cognitive linguistics? This term elucidates the intriguing phenomenon wherein individuals possess the capacity to decipher text even when the internal letters of words are scrambled, provided that the initial and terminal letters of each word are accurately p... | evolcodegolf |
**Introduction**
On 12 April 2021, the European Space Agency successfully launched its first Mars rover, a milestone for European space exploration. This mission marks the first time a rover equipped with an entirely solar-powered system has been sent to the Martian surface. The rover, named "Solarius," symbolizes a ... | evolcodegolf |
Task
You are required to develop a program or function in your preferred programming language that proficiently determines the quantity of distinct terminal cycles present within a simple directed graph structure. This specific type of directed graph is represented by an array containing n integers, each holding a ra... | evolcodegolf |
Consider the existence of a hash function \$\mathcal{H}\$ designed to accept strings of precise length \$2n\$ and yield outputs of length \$n\$, possessing the advantageous characteristic of being collision-resistant—meaning that it proves challenging to identify two distinct strings \$s \neq s'\$ that generate an iden... | evolcodegolf |
Given a string composed of 6 characters representing different types of fluids, calculate the interactions and flow dynamics among them. Each character is defined as follows:
A has a density of 3 (sinks)
B has a density of 2 (sinks)
C has a density of 1 (floats)
D has a density of -1 (rises)
E has a density of -2 (ris... | evolcodegolf |
Your assignment involves generating a 'depthmap'—specifically, a three-dimensional representation illustrating the height of an object as viewed from the frontal perspective rather than a bird’s-eye vantage point. For instance, consider the depicted object shown in the accompanying image. The height map is illustrated ... | evolcodegolf |
Input: you are provided with two integers, n and k, where n is a strictly positive integer (n ≥ 1) and k is an integer representing the permissible count of n's usage in mathematical expressions.
Output: generate and output all conceivable non-negative integers that can be created by utilizing at most k instances of n... | evolcodegolf |
Challenge:
Input: A positive integer \$n\$
Output:
Generate a comprehensive list that encapsulates all integers within the inclusive range \$[1,n]\$, subsequently concatenating this collection into a cohesive string (for instance, when \$n=13\$ the result would be the string 12345678910111213). Following this, we... | evolcodegolf |
Here’s a scenario:
A group of friends decides to create unique usernames for an online game. They all agree on a base word but can't remember the specific arrangement of special characters and numbers that they wanted to include.
The challenge is to take a base word and a list of special characters/numbers, then pr... | evolcodegolf |
Construct a program or function that systematically outputs to STDOUT a string featuring a dot . precisely at the current position of a walker, executing this for n iterations (each representing one distinct step). Additionally, this program must introduce a pause of s seconds after producing each output line.
A rand... | evolcodegolf |
Compose a comprehensive program whose source code does not exceed 256 bytes, capable of analyzing an image representing a flag and accurately identifying the corresponding country of origin. You may obtain a zip file containing the 196 distinct flags pertinent to this task from the provided link. These 196 flag images ... | evolcodegolf |
Develop a comprehensive program in a programming language of your choosing that, upon execution, outputs a positive integer N and subsequently alters its own source code to ensure that the next execution will yield N+1. For illustrative purposes, consider the following (ungolfed) Python 3 implementation that adheres to... | evolcodegolf |
It frequently happens that I lose track of my thoughts when called upon by the teacher to contribute to the discussion. Could you develop a utility that effectively addresses this issue?
Requirements:
The program must execute a loop with the following functionality:
1. Initially, prompt the user for input.
2. If the... | evolcodegolf |
Develop a program that generates a visually engaging representation of the Collatz sequence through various mediums such as ASCII art, images, or videos. Ensure that your implementation allows for dynamic adjustments to the graph's dimensions based on either the maximum number of nodes or the highest number present in ... | evolcodegolf |
The Challenge
Given a string that conveys the symbolic notation denoting UNIX file permissions alongside its ownership attributes (specifically the user ID and group ID), ascertain whether a specified user A is granted the permission to read, write, or execute the file in question.
Related.
Permissions in UNIX sy... | evolcodegolf |
The Onion (warning: many articles are NSFW) is a renowned satirical news organization that effectively parodies the conventions of traditional news media. In 2014, The Onion introduced ClickHole (warning: also frequently NSFW), a satirical website designed to mock "clickbait" platforms like BuzzFeed. Due to Poe's Law, ... | evolcodegolf |
In the aftermath of my previous KOTH characterized by serious narratives (such as fantastical warfare and a global health crisis), I return with a refreshingly whimsical game. You will engage in a "board game-like" scenario where an array of upside-down coins occupies the center of an expansive table, and you are resol... | evolcodegolf |
As is widely recognized in pop culture,
Chuck Norris has achieved the extraordinary feat of counting to infinity, not once but twice.
Moreover,
Chuck Norris possesses the unique ability to count to infinity in reverse order.
Additionally, while it may be less commonly known, Chuck Norris is capable of conversing in... | evolcodegolf |
In the context of early Game Boy games, users frequently encountered the necessity of inputting strings without the aid of a traditional keyboard interface. Instead, they interacted with a designated "keyboard screen" that was structured as follows:
The 'character pointer' initiates at the letter A. The user must util... | evolcodegolf |
Given an email address, the result of a transformation applied to that email address, and a second email address, return the output of the same transformation applied to the second email address, ensuring that all outputs are presented in a standardized format that begins with an uppercase letter and adheres to a stric... | evolcodegolf |
Non-associative operators, such as the subtraction operator, frequently exhibit left or right associativity, which allows for a reduction in the necessary use of parentheses. For instance, in the case below:
$$
a-b-c
$$
It is likely that most individuals interpret this expression as \$(a-b)-c\$, since subtraction is ty... | evolcodegolf |
Given an n-dimensional array filled with numbers, output which p-dimensional array has the largest sum while also ensuring that the returned indices must represent a contiguous segment of the original array.
Input
An n-dimensional array of numbers, or your language's equivalent. You can assume this is a rectangular ... | evolcodegolf |
Imagine the challenges of managing a multi-monitor workspace when you're juggling an array of applications. The frustration escalates if the displays are configured at varying resolutions. In a unique twist, consider a setup where two monitors have different resolutions, say 1366x768 and 1920x1080.
Your task is to an... | evolcodegolf |
Generate a function that utilizes each character from the Unicode Basic Multilingual Plane (BMP) in the range 0x2000 to 0x2FFF at least once, ensuring that the source code is irreducible. The function must demonstrate its ability to process or output these characters in some meaningful way, while remaining compact and ... | evolcodegolf |
Given a non-negative integer N, determine the smallest odd positive integer that qualifies as a strong pseudoprime with respect to all of the first N prime bases. This corresponds to the OEIS sequence A014233.
Test Cases (one-indexed)
1 2047
2 1373653
3 25326001
4 3215031751
5 2152302898... | evolcodegolf |
Background
This follows the inquiry regarding the ultimate demise of the Hydra.
In a perilous scenario, a malevolent Medusa has unleashed a formidable Hydra that resurrects unless an exact count of its heads is severed. The knights possess the ability to decapitate a specific number of heads through various attack ... | evolcodegolf |
In the English language, an intriguing and straightforward distinction exists between the articles 'an' and 'a': the former is employed when it precedes a term initiating with a vowel sound, whereas the latter is utilized when the term begins with a consonant sound. For the purpose of maintaining clarity in this task, ... | evolcodegolf |
As I delved into the intriguing concept of a reverse quine, specifically the idea presented in "Print your code backwards - reverse quine," it struck me that this challenge could be significantly enhanced by requiring the backward code to retain its executability. Therefore, the task at hand should encompass not only t... | evolcodegolf |
Devise an algorithm that calculates the total number of trailing prime factors in the factorial of a given positive integer n when expressed in base p, where p is another input prime number. Your function should effectively handle large values of n and p, producing an integer output for each case.
Example cases:
1 (b... | evolcodegolf |
I am delving into an innovative methodology for addressing the timeless challenge of Reverse Polish Notation as presented on code.golf. In contrast to traditional strategies, my concentration is centered on utilizing the eval function within GolfScript. This intriguing twist was spurred by a remark in an associated dis... | evolcodegolf |
Consider the intriguing concept of quines, specifically those that are both radiation-hardened and palindromic; it raises the question: has anyone ventured into creating a quine that fulfills both criteria simultaneously? I posit that such an endeavor remains unexplored!
To elaborate on the task at hand, the objectiv... | evolcodegolf |
A Latin square of order n is a text structure organized as a square comprising n rows and n columns, featuring n distinct characters, with each character appearing precisely once in every row and column. For instance, here is a Latin square of order 9:
```
Code gOlf
ode gOlfC
de gOlfCo
e gOlfCod
gOlfCode
gOlfCode
Ol... | evolcodegolf |
Goal
The objective of this intricate challenge is to process a string input by eliminating duplicate pairs of letters, specifically when the second letter in the pair exhibits opposite capitalization (i.e., transforming uppercase to lowercase and vice versa). Furthermore, you must ensure that any resulting letters ar... | evolcodegolf |
Given a collection of sorted lists containing positive integers, your task is to identify a subset of these lists such that the combined elements create a continuous and non-empty range without any missing integers. For instance, consider the provided input:
[
[1, 2, 3, 5],
[2, 4, 6],
[7, 9, 11]
]
The amalga... | evolcodegolf |
Introduction
I possess a chamber filled with enigmatic reflective surfaces.
These artifacts exhibit the unique capability to replicate any physical object, barring the replication of another reflective surface.
To elaborate, a duplicate manifestation of the object will materialize on the opposite side of the refl... | evolcodegolf |
The French language exhibits a distinctive and somewhat intricate method of spelling out numbers, which can be challenging to navigate.
The initial set of integers from 1 to 16 follows a "normal" pattern.
The numbers 17 to 19 are articulated as 10+7, 10+8, and 10+9 respectively.
From 20 to 69, the numbers revert to a ... | evolcodegolf |
Construct a function tasked with determining the total number of complete, non-overlapping repeats present in a specified collection of distinct, sorted integers. To clarify, repeats refer to sequences structured in the form of non-overlapping slices—such as [a1+an, a2+an, a3+an, ..., an+an], [a1+2an, a2+2an, a3+2an, .... | evolcodegolf |
A cruise control system features three distinct handle maneuvers to accurately adjust your driving speed to the desired level:
1. Pulling towards you: Increases speed by 1 unit.
2. Moving upwards: Adjusts speed to the nearest higher multiple of 10 (e.g., 20→30, 32→40).
3. Moving downwards: Reduces speed to the nearest... | evolcodegolf |
Backstory
As I was experimenting with the intriguing concept of the Evolution of Trust, a thought struck me that I felt compelled to explore further. I strongly encourage you to familiarize yourself with this concept prior to tackling the forthcoming task.
Summary for individuals who haven't engaged with it
Here’... | evolcodegolf |
Construct a program or function that takes as input two integers, \$n\$ and \$p\$, and systematically calculates the first \$p\$ elements of the Knödel Sequence, \$K_n\$, based on the definition of Knödel numbers for the specified \$n\$. The program must ensure that it identifies composite numbers \$m\$ such that all i... | evolcodegolf |
Kudos on your recent employment with a prominent Fortune 499 enterprise engaged in the intricate field of hydrocarbon extraction! Your primary responsibility entails developing an algorithm aimed at determining the most advantageous location for OilRUs' drilling apparatus (denoted by a single alphabetical character of ... | evolcodegolf |
Examine the characteristics of the Mongolian language, particularly the phenomenon known as "vowel harmony." This concept entails that specific vowels are prohibited from coexisting adjacently within a single word. Consequently, suffixes must consider the vowels present in the base words to ensure compatibility with th... | evolcodegolf |
Challenge
My challenge for you is to generate a Menger Sponge based on the level/iteration given, ensuring that you apply a color gradient to enhance its visual appeal in 3D, using any method you prefer.
Examples
Inputs: 0, 1, 2, 3
Outputs:
Background Information
What is a Menger Sponge
In mathemati... | evolcodegolf |
Task
Surprisingly, this hasn’t been explored yet: produce the name of the day corresponding to the current date.
Guidelines
The output must follow the convention:
Day of the week
For example, if the program runs on a Wednesday, it should simply display "Wednesday."
Your solution must account for the appropr... | evolcodegolf |
You find yourself in a culinary environment governed by an unusual stipulation: each time an ingredient is incorporated into a pot, you are mandated to introduce at least one novel component. This implies that while you can successfully combine pasta, oil, salt, and then pesto, you cannot sequentially add pasta, pesto,... | evolcodegolf |
In the spirit of a challenge reminiscent of foundational programming concepts, I present yet another intriguing task.
Input:
A positive odd integer n, where n is greater than or equal to 3.
Output:
Construct n lines composed of asterisks, initiating with n asterisks on the first line and decrementing by two asteri... | evolcodegolf |
I have always been captivated by screens that display a mosaic of randomly colored pixels, as they offer a fascinating visual experience, and the algorithms that generate them provide a captivating spectacle to observe.
The task at hand requires you to develop a program that continuously fills your screen or a graphi... | evolcodegolf |
To compute the determinant of a 2 by 2 matrix presented in the format:
a b
c d
we utilize the formula ad - bc. However, when provided with a matrix composed of digits arranged in dimensions of 2n by 2n, where n ≥ 1, you are required to iteratively and recursively deduce the determinant by calculating the determi... | evolcodegolf |
Given a binary representation of an image file, such as this one:
00000000: 8950 4e47 0d0a 1a0a 0000 0000 0c00 0000 .PNG............
00000010: 0000 0015 4948 4452 0000 0100 0000 0100 ....IHDR........
00000020: 0806 0000 0000 ff61 5970 0000 0d18 0f3e .......aYp....>.
00000030: 00a4 b09e 0000 0000 0000 0049 4441 54b3... | evolcodegolf |
While participating in a recent competitive coding event focused on succinct solutions, I encountered an intriguing pair of outcomes, measuring 69 and 105 bytes respectively. The coincidence holds particular significance as it relates to numerical representations in varying bases:
69 (in decimal notation) translates t... | evolcodegolf |
You’ve decided to dive into the world of concrete poetry, yet you're uncertain if your layout adheres to the unique visual structure that defines this art form.
Let’s explore the challenge together.
Assessing a concrete poem in its natural habitat
For this task, you’ll evaluate whether the provided poem meets these... | evolcodegolf |
Develop a compact program that effectively simulates the fundamental operations of various logic gates.
Input: A word presented in all capitals, followed by two single-digit binary numbers, delineated by spaces, such as OR 1 0. The program must accommodate the logic gates OR, AND, NOR, NAND, XOR, and XNOR.
Output: ... | evolcodegolf |
Introduction
In this TED-Ed video (which I'd recommend watching first), a puzzle is presented. 27 unit cubes must be painted with one of red, green, or purple on each face, so that they can be reassembled into a large 3x3x3 cube that shows only red on the outside, then a different arrangement that shows only green, a... | evolcodegolf |
Given a list of floating-point numbers, identify the shortest sub-array (contiguous subsequence) whose sum is closest to zero without being zero itself. If there are multiple candidates, return any one of them.
Input
Input a list of floating-point numbers.
Output
Output the shortest non-zero sum sub-array. If no ... | evolcodegolf |
Create a program or function that accepts a positive integer N as input and outputs the first N characters of your code. If N exceeds the length of your code, you should repeat your code cyclically. Additionally, ensure that your output format includes a prefix indicating the total number of characters printed. Reading... | evolcodegolf |
Given a collection of vectors, each possessing the same positive finite dimensionality, determine the linear independence or dependence of this set by returning a falsey value if they exhibit linear dependence, and a truthy value if they are linearly independent. A set of vectors v1, v2, ... is deemed linearly dependen... | evolcodegolf |
You are tasked with analyzing the position of a little robot equipped with four distance sensors, which has the capacity to recall the layout of a room but lacks any form of orientation other than the ability to align itself with a grid framework. Your challenge is to discern the possible positions of the robot based s... | evolcodegolf |
Your task is to develop an algorithm that accurately simulates an infinite grid game inspired by 2048, called "Endless Merge." This game utilizes a 4x4 board but has no upper limit on tile values or game progression. Instead of traditional tile spawning, each turn introduces a cascading mechanic where existing tiles me... | evolcodegolf |
I often find myself struggling to identify and account for various edge cases that may arise in competitive programming challenges or puzzle-solving scenarios, particularly when those cases are not immediately apparent. Consider the following example problem:
Determine the size of the smallest list of perfect squares ... | evolcodegolf |
Design a program or function that generates a maze-like structure using four distinct types of doors within a grid defined by two integers, width w and height h. The resulting layout will be represented in a 5*w by 5*h pixel image, where each 5 by 5 pixel cell can either be empty (white) or one of the four door types: ... | evolcodegolf |
Let's create a visually engaging representation using pipes and hyphens |-. By carefully selecting a subset of these characters, it is possible to form a rectangular block shape, which is defined by corners made exclusively of |- or -|. The focus of this task is solely on identifying these corners; both the vertical an... | evolcodegolf |
What is the most concise regular expression that matches the following collection of month names in various languages?
DECEMBER|DEZEMBR|DESEMBRE|DECEMBRE|DEZEMBRO|DECMBER|DEKEMBIR|DESIMBRA|DIZEMBRO|DEKEMBR|DEKMBR|DESEMBR|DESSAMBRE|DIZEMBAR|DIZEMBRE|DIAZEMBRO
The goal is to minimize the byte size of your regex. If yo... | evolcodegolf |
Description
A permutation of the integers {1, 2, ..., n} is designated as minimally interpolable if there exists no collection of k+2 points (alongside their indices) that aligns precisely with a polynomial of degree k. This stipulates that:
- No two points should coincide on a horizontal line (0-degree polynomial... | evolcodegolf |
Develop a concise program that generates the entirety of the lyrics for the traditional song "99 Bottles of Beer," ensuring that the output is accomplished using the minimal number of bytes feasible. The lyrics of the song progress through a numerical countdown, starting at 99 and concluding at 1, with the specific tex... | evolcodegolf |
The Question
Given a two-dimensional array, o[][], create a 2-dimensional graph where o[xCoordinate][yCoordinate] represents the hue of the point at (xCoordinate, yCoordinate), ensuring that the value and saturation remain consistently at 100. The hue should vary from -50 to 50, with -50 and 50 corresponding to value... | evolcodegolf |
Your objective today is to take an existing file and append a specific number of null bytes to it until it attains a defined size. You are required to construct a program or function that accepts the name of a file located within the current directory, denoted as f, alongside a specified byte count, b. While preserving... | evolcodegolf |
Develop a program that generates and outputs the string
:)
a random number of times, with the frequency being a random integer selected from the inclusive range of 1 to 255. Ensure that your printed output is free of any whitespace characters. Additionally, provide the following information:
The score:
The total co... | evolcodegolf |
I am facing a coding challenge that can be articulated as follows:
Given a positive integer \$N\$, generate and return a comprehensive list of all unique pairs of positive integers \$(x,y)\$ that satisfy the equation $$\frac1x+\frac1y=\frac1N$$
While I have successfully implemented a solution in Python, I am now seek... | evolcodegolf |
Transformational challenge on the horizon! Today, let's explore a fascinating linguistic modification technique.
Imagine a scenario where every vowel in a given string is replaced with its corresponding numerical position in the alphabet. For instance, the vowel 'a' would become '1', 'e' would transform into '5', and... | evolcodegolf |
Provide an input comprised of a sequence of integers that signify historical dates, and generate a corresponding ASCII art timeline in the following format:
<----------------------------->
A B C D E
The aforementioned timeline represents the output for the input array [1990, 1996, 1999, 2011, 2016]... | evolcodegolf |
Fermat numbers are positive integers expressible in the form of \( 2^{2^x} + 1 \) for some integer \( x \). We shall now introduce a concept referred to as "Fermat-ness":
The Fermat-ness of a number is defined as one less than the maximum length of a sequence formed by continuously applying powers of two, commencing f... | evolcodegolf |
The challenge is to transform a string that represents a number in decimal (base 10) format into sexagesimal (base 60). The input will be a string, and the output should be printed accordingly. The number can be positive, negative, integer, or fractional. The sexagesimal representation will have a limited number of dig... | evolcodegolf |
Enumerate the specific dates of every Sunday occurring in the calendar year 2017, ensuring the output adheres to the prescribed format of dd.mm.yyyy. To accomplish this, please implement a systematic approach that involves determining the total number of weeks within the year, identifying the first Sunday, and subseque... | evolcodegolf |
Design a function that takes an integer input and returns it only if it's a prime number, while doing nothing for composite numbers. The twist is that you may only utilize characters whose ASCII values are prime numbers. You may add a newline character at the end of the output if desired. The objective is to write the ... | evolcodegolf |
The task is to create the silhouette of a 'mountain range' based on a seed input.
Input (seed): a string of 8 characters (exactly) allowing only uppercase letters (i.e. ABCDEFGHIJKLMNOPQRSTUVWXYZ) - examples: 'MOUNTAIN', 'ABCDEFGH', 'XYZQRSTU'
Each seed should result in a distinct mountain range (i.e. no two seeds wil... | evolcodegolf |
Stackylogic is a novel programming language that I previously devised in a challenge: Run Stackylogic. For comprehensive details and illustrative examples, please refer to that post; however, here is a concise paraphrase of its functionality:
Stackylogic accepts binary inputs (0's and 1's) and produces a single binary... | evolcodegolf |
Description
Given a specified source path and a target destination path, your task is to compute and output the relative path to the destination based on the source provided.
Rules
The input can be obtained either from standard input (stdin) or as command-line arguments to the program or function.
It is imperat... | evolcodegolf |
You may have encountered brain-teasing puzzles similar to this one:
Identify the single differing character:
OOOOOOOOOOOOOOOOOOOO0OOOOOOOOOOOOOOOOOO
Your task is to devise a program capable of pinpointing the index of the unique character present in an image.
Input
The input will consist of an image containing a sol... | evolcodegolf |
I have encountered a fascinating combinatorial challenge that I would like to submit to the Online Encyclopedia of Integer Sequences (OEIS)—however, my current dataset lacks sufficient terms for this purpose. This coding competition aims to assist me in generating additional sequence terms, with the accolade awarded to... | evolcodegolf |
Assess the validity of a provided two-character string as a consonant cluster within the phonological structure of Lojban.
To do so, reference the guidelines delineated in CLL 3.6, which explicate the criteria for a legitimate consonant pairing, including, but not limited to:
1) Duplicate consonants are expressly pr... | evolcodegolf |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.