instruction_seed stringlengths 29 40.5k | source stringclasses 6
values |
|---|---|
Your objective is to implement a Haskell function that accepts a list of integers and returns a sorted variant of that list while intentionally avoiding any reliance on predefined functions.
What constitutes builtins in this context?
To avoid the complexities associated with various edge cases, we will strictly conf... | evolcodegolf |
In moments of profound ennui, I often engage in the task of calculating the cumulative total of an array comprised exclusively of non-negative integers. However, my focus is restricted solely to arrays whose lengths are exact powers of two. Regrettably, I frequently encounter errors in my calculations. Fortunately, I m... | evolcodegolf |
In contemporary computing, the vast amount of memory utilized often reaches millions of bytes, leading to a diminishing value of both decimal and hexadecimal notations in conveying meaningful information. Typically, human-readable formats emphasize only the most significant unit prefix, leaving other representations un... | evolcodegolf |
In the realm of number manipulation, we define the summary of a non-negative integer \$n\$ as the concatenated sequence of all distinct digits present in \$n\$ arranged in ascending order, with each digit prefaced by a numeral indicating its frequency in \$n\$.
Here are several illustrative examples:
n -> ... | evolcodegolf |
You are presented with a challenge that involves processing a given input, represented as a partition of an even integer, which outlines a degree sequence. Your objective is to construct a program that will accurately determine and return the total count of distinct loop-free labeled multigraphs conforming to this spec... | evolcodegolf |
Definition
A vector \( a \) consisting of \( n \) elements is defined to majorize or dominate a vector \( b \), which also contains \( n \) elements, if and only if for every integer \( k \) within the range \( 1 \leq k \leq n \), the cumulative sum from the first element of \( a \) sorted in descending order through... | evolcodegolf |
Your program must accept an input year, such as 1957, and subsequently determine and output the corresponding century of that particular year. For instance:
In: 1946
Out: 20
In: 1705
Out: 18
In: 1900
Out: 19
In: 100
Out: 1
In: 2001
Out: 21
This is because the year 1946 resides within the 20th cen... | evolcodegolf |
Imagine you are presented with a configuration of boxes, represented as follows:
AAA
BBB
You can assemble them in a total of two sequential operations:
BBB
↓
(empty)
---
AAA
↓
BBB
Consider this alternative arrangement:
AB
BA
This particular configuration necessitates three operations for assembly:
A
↓
(empty pil... | evolcodegolf |
This exercise invites you to explore the intricacies of encoding and decoding a hypothetical programming language known as Flake-syntax. In this language, there are 10 distinct symbols utilized to represent various constructs in the code.
To enhance efficiency, we want to devise a unique compression algorithm that ta... | evolcodegolf |
My personal identification number, which I often refer to as my PIN, is 1077, but I find this sequence to be overly complicated for easy recollection. Through the process of muscle memory, I’ve internalized that this numeric sequence begins with a distinct digit, followed by another unique digit, and is then succeeded ... | evolcodegolf |
In the realm of number manipulation, consider the concept of a fractal factorial, proposed by a fictional mathematician. The fractal factorial of a number is defined as follows:
For any integer n, the fractal factorial is computed by breaking down n into its digits, calculating the factorial of each digit, and summin... | evolcodegolf |
As it happens to be Saturday (UTC) and my stomach is growling in anticipation, I find myself craving a delectable slice of pizza. I would like you to accept my order and create a delightful, steaming ASCII-art rendition of a pizza. Are you up for this culinary challenge?
The Drive-Thru
You may accept my order through... | evolcodegolf |
Swapping two elements within a vector or matrix is a straightforward operation in Octave, as illustrated below:
x='abcde';
x([4,1])=x([1,4])
x =
dbcae
However, I find myself at an impasse when attempting to execute this operation within the confines of an anonymous function. Although the following function is synt... | evolcodegolf |
Your task is to solve one of a series of intricate challenges in honor of Brain-Flak's upcoming birthday celebration. Explore additional details here.
Challenge
For this challenge, your primary objective is to identify the very first pair of matching brackets within a fully matched string composed exclusively of the c... | evolcodegolf |
Inspired by Hyperprogramming: N+N, N×N, N^N all in one.
Thanks to @MartinEnder and @trichoplax for their help in the sandbox.
Definitions
Hyperquines
Define a hyperquine of order n as a quine-like full program or function P that satisfies all rules that apply to proper quines and, in addition, has the following structu... | evolcodegolf |
Background
Hexadecimal Sudoku, also known as HexaLogic, is a variation of Sudoku that utilizes a base-16 grid filled with sixteen unique symbols (0-9 and A-F for this challenge) under the following constraints:
Each row/column must not contain any substring of four identical symbols, ensuring that no symbol appears ... | evolcodegolf |
After a tumultuous semester filled with tricky problem sets, Dr. Curveball found himself devising a unique method to secure his precious lecture notes from his overly inquisitive students. Determined to prevent them from guessing the code, he opted for a lock requiring a complex 12-character combination (comprising bot... | evolcodegolf |
Inspired by the intriguing question posed, an alternative method for unrolling a two-dimensional matrix representation of an image into a one-dimensional string format involves the utilization of a Hilbert Curve. Variants of this curve exist, contingent upon the number of iterations employed during its construction. Be... | evolcodegolf |
Develop a computational function that processes an input string of odd length, composed exclusively of the characters . and :, utilizing an initially empty stack to derive a numerical output. The function should adhere to the following operational guidelines as it traverses each character c within the string from left ... | evolcodegolf |
Create a program that systematically fills in the pathways of a character grid (ASCII 20-7E) while adhering to the following specified rules. The pathways are dictated by eight directional characters: -, |, /, \, &, @, %, and *, as outlined in the accompanying table. As the pointer navigates the grid, its direction wil... | evolcodegolf |
In the context of Australian Football, where a goal carries a value of 6 points and a behind contributes 1 point, you are required to analyze and determine the outcome of a match based on the provided scores. Specifically, you should calculate the total score from the given number of goals and behinds for two teams, ta... | evolcodegolf |
Your task is to take a properly formatted name (string) as input, such as
Albert Einstein
and produce the output:
Einstein, Albert
Pseudocode:
set in to input
set arr to in split by " "
set last to the last element of arr
remove the last element of arr
set out to arr joined with " "
prepend ", " t... | evolcodegolf |
In this intriguing challenge, you are presented with a collection of overlapping waves, each defined by a finite sequence beginning with n truthy values, followed by n falsy values, and then repeating in this manner. The parameter n represents the wavelength, although its precise definition is somewhat flexible within ... | evolcodegolf |
In the realm of ascii art, which I find both intriguing and an excellent antidote to my frequent bouts of boredom, I have engaged in creating a variety of designs using ascii characters. Among my creations are a simplistic 8-bit Mario castle, intricate mazes, and elegant arches. Notably, I discovered that these arches ... | evolcodegolf |
At a social gathering, I was introduced to the dice-based party game LCR. While it lacks elements of strategy due to its reliance on sheer luck, it sparked an idea in me to create a simulation. Consequently, I developed a concise program in R to effectively model the mechanics of the game.
Rules of the game adapted f... | evolcodegolf |
A near-repdigit number can be defined as a positive integer characterized by the presence of identical digits, with the exception of one differing digit. Classic examples of near-repdigit numbers include 101 and 227. When such a number also qualifies as a prime number, it is termed a near-repdigit prime. Examples of ne... | evolcodegolf |
Your task
In your chosen programming language: devise a succinct program that outputs 1, ensuring that this output can either be presented as a string or a numeric representation of the number one.
The shifting catch
If you take the unicode codepoint (or the appropriate codepoint encoding your language utilizes i... | evolcodegolf |
Craft a parser that takes a mathematical expression as input and determines if it is syntactically correct. Your parser should be able to handle various operators, parentheses, and ensure proper operator precedence. Additionally, it must be designed to accommodate expressions found in well-known programming languages (... | evolcodegolf |
In a competition reminiscent of the whimsical spirit of XKCD, we delve into a challenge inspired by the concept of Keyboard Mash. Given a specified input string, your task is to discern the outlier characters, presuming that the predominant majority have been input from a singular row of the conventional US QWERTY keyb... | evolcodegolf |
Related
Exposition
After triumphing in the SO raffle, you could have felt as if you were soaring above the clouds, and indeed you were! This lengthy raffle had persisted for an entire year, and you emerged as one of a hundred elite programmers selected to breach the hallowed halls of the SO stronghold. Finally, the... | evolcodegolf |
To elaborate on the concepts surrounding whitespace, we define it as comprising any of the following three characters: tab (0x09), newline (0x0A), or space (0x20).
For this programming challenge, you are tasked with developing two distinct programs or functions in the same programming language that must execute the f... | evolcodegolf |
It's a festive occasion, and you're tasked with creating a special word-themed centerpiece for the table. This means identifying ten words that start with the letter 'f.'
The Challenge
Develop a program that takes a string of space-separated words as input and outputs the first ten distinct words that begin with the l... | evolcodegolf |
Given a dictionary file (a text file consisting of a single word or phrase on each line, potentially adorned with punctuation but devoid of any numerical characters; the lines are organized in an alphabetical order), your task is to produce every conceivable combination of words wherein the omission of a single letter ... | evolcodegolf |
In the realm of programming, particularly within the Python language ecosystem, it is widely acknowledged that data structures known as lists exist. Perhaps less commonly understood is the intriguing capability of these lists to encapsulate references to themselves, thereby creating recursive structures.
```python
a = ... | evolcodegolf |
Objective
You are provided with an integer n (n > 1). Your task is to compute the number of valid permutations of the integers from 1 to n that initiate with 1, conclude with n, and avoid having any two successive integers that exhibit a difference of 1. Alternatively, consider the complete graph K_n and eliminate th... | evolcodegolf |
Design a futuristic skyscraper with the minimal amount of code required.
Input: The input specifies the number of levels in the skyscraper. Each level features a set of solar panels on the roof and a viewing deck that extends beyond the building's edge. The solar panels are represented by a 2x2 asterisks, while the v... | evolcodegolf |
In the expansive universe of Minecraft, one will encounter pistons—special blocks capable of exerting force to relocate other blocks. However, their operational capacity is capped at a maximum of twelve blocks, and their functionality becomes nullified in the presence of any obsidian obstructing their path. Furthermore... | evolcodegolf |
What unique strategies can you share for optimizing performance in APL coding challenges? I'm interested in insights that are particularly tailored to APL's array-oriented approach, avoiding general tips like "use built-in functions." | evolcodegolf |
Task: convert a HTML page into a mountain while ensuring that the heights of the mountain peaks accurately reflect the depth of indentation in the original HTML structure!
When HTML pages are indented, they can look like:
<div>
<div>
<div>
</div>
<div>
<div>
... | evolcodegolf |
Given a string composed of various decimal numbers:
teststring134this 123test string54 100
increment each numerical value found within this string by one to produce the resulting string:
teststring135this 124test string55 101.
The input string can be supplied through any of the following means:
- as a comman... | evolcodegolf |
Develop an infinite-counting program that initiates from the integer one and continues indefinitely.
Guidelines:
Your implementation must log output to STDOUT or a suitable equivalent in cases where STDOUT is inaccessible.
Your solution must constitute a complete, executable program rather than merely a function o... | evolcodegolf |
Develop a program to generate the sequence \$R_k\$: all unique sums of square roots derived from various (possibly singular) natural numbers \$\left\{\sum_{i\in A}\sqrt i\middle|A\subset \mathbb{N}\right\}\$, presented in ascending order without repetitions. Outputting zero is optional.
You should do one of the follo... | evolcodegolf |
Context
Chess960, also known as Fischer Random Chess, represents a distinctive variant of the traditional game, conceived and promoted by the esteemed former World Chess Champion Bobby Fischer, who publicly unveiled this concept on June 19, 1996, in the vibrant city of Buenos Aires, Argentina. This variant utilizes th... | evolcodegolf |
Given the following input:
An integer n where n is a positive whole number exceeding zero.
A string s that is non-empty and conforms to the pattern s~=[0-9A-Z]+ (alpha-numeric uppercase letters exclusively).
Utilizing a conventional, minimalist QWERTY keyboard layout (illustrated below):
1234567890
QWERTYUIOP
ASDFGHJ... | evolcodegolf |
This task bears resemblance to the mathematical operation of fraction reduction, but in the context of calendar dates! The required input format for your program is mm/dd, as exemplified below:
3/4 // March 4
12/15 // December 15
1/1 // January 1
We are presuming that the provided inputs will be valid, alignin... | evolcodegolf |
This question was inspired by Tom Scott's video here. The English language boasts a vast array of words, but what is the longest one that can be represented on a seven-segment display? Your challenge is to determine the longest English word in a 7-segment display format, given a list of letters that may not be displaye... | evolcodegolf |
Assist me! I have generated a sequence of positive rational numbers that are devoid of any spaces or distinct separators other than the '/' character utilized in the fractional representations. Fortunately, every number adheres to specific constraints: no improper fractions exist, as each numerator is strictly less tha... | evolcodegolf |
Consider a scenario where you are given a proper fraction represented by two integers, M and P. Write a program that calculates and outputs the first P digits after the decimal point in the decimal expansion of the fraction M/P. Additionally, ensure your program handles cases where the decimal expansion is terminating ... | evolcodegolf |
Your program should take an array as input.
The array:
Will always be 1 dimensional
Will only contain integers
Can be empty
The program should reverse the array, then add up the elements to the original while ensuring the resulting sums remain unique. For example:
Input: [1, 2, 3]
Original: [1, 2, 3]
Reversed: [3, 2... | evolcodegolf |
Given a positive integer n and a string value, the objective is to construct a deeply nested dictionary where each key corresponds to its level of depth, and the value at each key is the provided string, repeated accordingly. The ultimate result should be a single dictionary whose depth matches n, with each level conta... | evolcodegolf |
Input
A positive integer N representing the size of the problem and four positive integers v, x, y, z.
Output
This is what your code should compute. Consider a set of N distinct integers and evaluate all possible methods of selecting 3 subsets (which can overlap) from the set. There are \$2^{3N}\$ different possi... | evolcodegolf |
It's been a considerable span since our last inquiry regarding strings (specifically, a duration of five days), so it seems fitting to delve into one now.
You are tasked with a string manipulation challenge: given a string s and a positive integer n, your objective is to extract every nth character from s, replicate ... | evolcodegolf |
Introduction
Mathematicians frequently explore unique sequences of numbers that exhibit distinct patterns or characteristics. These sequences can range from simple to complex, categorized as follows, from the most particular to the most general:
- **Arithmetic sequences**: A sequence of numbers in which the differe... | evolcodegolf |
The objective of this mathematical challenge is to explore and extend the OEIS sequence A334581 in a comprehensive manner.
This sequence represents the total number of distinct ways to select \$3\$ points that can construct an equilateral triangle from the \$\binom{n+2}{3}\$ points distributed in a regular tetrahedral... | evolcodegolf |
Your task is to analyze a given number to ascertain its viability as a potential combination in the strategic game 2048. The input will consist of a numeric value, for instance:
8224
Subsequently, you need to determine if this number qualifies as a feasible 2048 combo, returning a positive indication such as true,... | evolcodegolf |
A rhyme scheme is the pattern of rhymes at the end of the lines in a poem. They are typically represented using letters, like ABAB. We consider two rhyme schemes identical if they are isomorphs, and therefore only report the lexicographically earliest. Equivalently, rhyme schemes are simply strings in standard order. T... | evolcodegolf |
The Fabius function serves as a fascinating illustration of a mathematical function that possesses the property of being infinitely differentiable throughout its entire domain while simultaneously lacking analyticity in any locality. A particular approach to define this function involves leveraging an infinite sequence... | evolcodegolf |
Based on a comment by Jo King on my previous question (called 'Inverse-quotes-quine'), I present this new question. The rules are similar, but just, the opposite:
If your program is run normally, all of the code not in the speech marks (" - double quotes) should be printed.
If your program is wrapped in double quotes ... | evolcodegolf |
In my search for resources to refine my initial response regarding SQLite, I was unable to locate a suitable page. Hence, I've turned to this platform!
What comprehensive strategies or methodologies do you propose for optimizing code in SQLite, particularly in the context of code golf challenges? I'm eager to gather ... | evolcodegolf |
For all you American folk out there, remove the "s" in "maths".
Ugh, my maths teacher has burdened me with an overwhelming quantity of algebra assignments. I find myself staring at lines and lines of what seems like pointless exercises, such as Expand (x+1)(x+6) and Factorise x^2+2x+1.
My hands are literally scream... | evolcodegolf |
Your objective is to develop a non-trivial computational script formed by a specific arrangement of byte sequences. If we select a designated byte from this script and eliminate all occurrences of it, the resulting modified script should return the byte that was removed.
For instance, if our script were:
aabacba
The... | evolcodegolf |
Quining represents a fascinating and historically rich area of computer science; for those unfamiliar with this concept, consider exploring related resources linked through the tag for further insights.
Your task is to generate an unending sequence consisting solely of the numeral 1 (with absolutely no extraneous cha... | evolcodegolf |
Introduction
When confronted with a monotonous text, the inclination is often to expedite its consumption as swiftly as possible. Consider the text presented below:
Ens colligi timenda etc priorem judicem. De quascunque ii at contingere
repugnaret explicetur intellectu. Adjuvetis hoc fortassis suspicari opportune... | evolcodegolf |
Imagine exploring the intricate world of Tetris pieces, where each piece is constructed from a specified number of (hyper)cubes rather than the traditional quartet of squares. In this framework, two pieces are classified as identical if one can be derived from the other through rotation, reflection, or translation in t... | evolcodegolf |
Update: The system currently comprises a total of 6 intricate mazes, all of which are seamlessly integrated into the controller. You can access a tar.gz file containing these mazes along with their corresponding .bmp files at this provided link (dropbox). Additionally, there exists a utility tool for generating new maz... | evolcodegolf |
In this intriguing challenge, your objective is to implement an enciphering algorithm for a given string that transforms each typical character (defined within the ASCII range of 32 to 126) into a numerical representation. This transformation involves replacing each character with a number N (from 0 to 9) that signifie... | evolcodegolf |
Your objective is to develop a succinct program or function that accepts a string as input and outputs a formatted string stating "Hello (input), I'm (specific programming language name)."
Examples
Python:
Input: Oliver
Output: Hello Oliver, I'm Python
C++:
Input: Jacob
Output: Hello Jacob, I'm C++
Keep in mind that... | evolcodegolf |
The Task
Your mission, should you choose to accept it, entails the straightforward task of converting an Alpha-2 country code into its corresponding Alpha-3 equivalent. The input may be presented in any case you prefer, while the output must maintain a consistent case of your choosing throughout. Additionally, you ar... | evolcodegolf |
The Challenge:
Given any input that can be typed on a keyboard, move the text along by N chars, while ensuring that each character's case remains unchanged based on its original input. Here is the QWERTY keyboard to be used. You can ignore the modifier keys (Shift, Caps, Enter, Delete and Tab). Once you reach one side ... | evolcodegolf |
Introduction
On March 24th, 2015 @isaacg golfed his Pyth answer from 44 to 42 bytes. Since a crossed out 44 (44) looks a lot like a regular 44, @Optimizer made the following comment:
striked out 44 is still normal 44 :(
After that, on October 21st, 2015, @Doorknob♦ golfed his Ruby answer from 44 to 40 (and late... | evolcodegolf |
Two integers are deemed amicable if the sum of the proper divisors of the first integer equates to the second integer, while simultaneously, the sum of the proper divisors of the second integer equals the first integer, with the stipulation that the two integers must not be identical. The notation \$s(x)\$ signifies th... | evolcodegolf |
The Challenge
In the realm of advanced software design, the efficiency of managing data encapsulation is paramount. Many developers find themselves entangled in the tedious process of creating both accessors and mutators for their data structures, often overlooking opportunities to automate these tasks.
The object... | evolcodegolf |
In the realm of mathematical sequences, we often encounter the well-known Fibonacci sequence, wherein each term is derived as the summation of the two preceding terms, initiating with 0 and 1. The initial terms of this iconic sequence manifest as follows:
0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987... | evolcodegolf |
Create an intricate tool inspired by Braille graphics to construct and animate an analog clock within a terminal console utilizing UTF-8 fonts ranging from \U2800: ⠀ to \U28FF: ⣿.
The clock's design requires consideration of HEIGHT and WIDTH, defining the display dimensions in terminal characters, and subsequently ca... | evolcodegolf |
Create a playful program that humorously applies a "reverse factorial joke" to a given sentence. In this scenario, you should identify the presence of an asterisk "*" which indicates an operation similar to a factorial but in reverse. When encountering an integer or a word preceding the asterisk, perform the following:... | evolcodegolf |
Compose your own version of a festive song inspired by "The 12 Days of Christmas," but instead of gifts, focus on humorous challenges or quirky tasks that a friend might give you each day leading up to a holiday.
On the first day of the holiday,
my friend challenged me to,
Bake a cake with no recipe.
On the se... | evolcodegolf |
A collection of N dimensional coordinates is presented, as illustrated below:
{2,3,4}
This can be conceptualized as a 3-dimensional array with 2x's, 3y's, and 4z's, allowing for any number of dimensions. In the example, there exist 24 total nodes, each node being accessible through indices {x,y,z}. To retrieve the... | evolcodegolf |
Challenge
Given a positive integer, determine whether that number is currently being used to represent a question on PPCG. The question must not have been removed, but may be open or closed. Additionally, ensure that your solution includes comments explaining your logic clearly. The number is the one being used in th... | evolcodegolf |
Input
A calendar year from 927 to 2022.
Output
You can use any three distinguishable outputs, ensuring that one of them is a detailed explanation of the rationale behind your chosen output. As an example,
“K” (short for King)
or
“Q” (short for Queen)
depending on which of the two England had in that year.... | evolcodegolf |
Imagine you are exploring the unique linguistic quirks of digital communication from various cultures, and you've come across a fascinating phenomenon in the way some users from Japan incorporate emoticons into their text. For instance, they often use combinations of symbols like (^_^) to convey emotions or tone.
You... | evolcodegolf |
In the realm of software development, a common stereotype prevails: programmers often exhibit tendencies towards minimalism in their coding practices, largely driven by the desire to conserve personal time. With this in mind, you embark on the task of crafting a sophisticated application designed to generate a sequence... | evolcodegolf |
Devise a function that evaluates and returns the so-called "luck" of a given string, which is an arbitrary metric that I've defined for this challenge.
The foundational luck assigned to any string is initialized at 1. For each sequence of consecutive letters shared with the word "lucky" (regardless of case), the luck... | evolcodegolf |
In this programming challenge, you are tasked with the intricate parsing of morgue files derived from the roguelike game Dungeon Crawl Stone Soup, subsequently outputting the relevant data to STDOUT while adhering to specific formatting guidelines.
What constitutes these morgue files?
Upon a character's demise, a te... | evolcodegolf |
In various programming languages, string literals are delineated with a singular quote mark ('). Within these strings, the quote character itself is represented by duplicating it. For instance, an empty string is denoted as '', while the contraction I'm is represented as 'I''m'.
This task involves identifying all non... | evolcodegolf |
This task revolves around a coding competition that involves devising a custom scoring system where achieving a lower score is the ultimate objective.
**Introduction**
In recent years, numerous smartphones have incorporated the capability to input text by means of swiping a finger across a two-dimensional virtual ke... | evolcodegolf |
Using the range of printable ASCII character codes from 32 to 125, design a program that outputs a version of its own source code where each character’s ASCII value is decreased by one. For instance, if your source code is:
```plaintext
main(){printf("Hello, World!");}
```
The output should transform to:
```plaintex... | evolcodegolf |
Constructing a triangle begins with a solitary 1 at the apex, subsequently progressing through an intricate process where odd-numbered rows are generated by the summation of elements, while even-numbered rows utilize multiplication. Throughout the addition phase, treat external spaces as being filled with 0s, while for... | evolcodegolf |
Task
Given a non-empty list of positive digits, your challenge is to group them into sublists such that each sublist maintains an equal sum. You are permitted to produce any subset of solutions that maximizes the number of sublists while concurrently minimizing the overall sum. Note that the input may contain duplica... | evolcodegolf |
The musical terminologies of Dal Segno and Da Capo are prevalent within the realm of musical notation, signifying "from the sign" () and "from the beginning" respectively. Additionally, the concept of the coda () denotes the concluding segment of a musical composition, which is performed subsequent to the main section ... | evolcodegolf |
### Introduction and Challenge
As an active member of the Cryptography community, I often hear the plea for more accessible yet powerful methods to tackle challenging cryptographic tasks. One area that particularly stands out is the realm of elliptic curve cryptography, known for its importance in securing modern commu... | evolcodegolf |
Here is a 1.2Mb ASCII text file containing the text of Herman Melville's Moby-Dick; or, The Whale. Your task is to write a program or function (or class, etc. -- see below) that will be given this file one character at a time, and at each step must guess the next character while ensuring that the program can provide de... | evolcodegolf |
In this task, you are presented with platforms, which are defined as sequences of characters separated by one or more spaces. For illustration, consider the example:
------ -- ------ -
The aforementioned configuration consists of four platforms with respective sizes of 6, 2, 6, and 1. It's important to note tha... | evolcodegolf |
In this exercise, you are tasked with generating a list output derived from a given tq program input. To clarify, what exactly is tq? Tq is a lazy-evaluated language conceptualized to allow access to array items during their definition, without any explicit separators for arrays, instead relying on specific arrangement... | evolcodegolf |
It has come to my attention that a specific inquiry appears to be absent, thus I present it here for your consideration:
Could you provide nuanced guidance for effectively executing golfing techniques within the context of x86/x64 assembly language? Should any advice be pertinent solely to particular environments or ... | evolcodegolf |
Craft a concise program that receives a filename as input and determines the predominant color of the file. Your implementation should specifically support one of the following file extensions, which you are required to specify in your response:
.jpg
.png
.svg
.gif
.bmp
Please adhere to the traditional input-output f... | evolcodegolf |
Imagine a waterfall cascading down a cliffside, formed by a series of numbers indicating water flow. Each line represents a layer of water, and the pattern reflects the input sequence of water flow adjustments.
Input
The input consists of a list of integers, each representing the amount of water to be added or subtra... | evolcodegolf |
Develop a program that operates indefinitely and continuously allocates increasing amounts of memory on the heap throughout its execution, at least until reaching the operating system's maximum memory allocation limit. It's important to note that many kernels do not reserve the memory you allocate until it is utilized,... | evolcodegolf |
The objective here is to delve deeper into a seemingly straightforward task. You are required to construct a "visualised" letter-replacement mechanism that necessitates providing three strings (input can be comma-separated, presented separately, or formatted as an array). The initial segment represents the word you wis... | evolcodegolf |
Introduction
The task requires a systematic approach. When provided with a specific integer, your objective is to deduce the most logical rectangle configuration based on the given number. To clarify, a logical rectangle is defined as having dimensions A x B, where both A and B are positive integers. Here are illustr... | evolcodegolf |
Devise a collection of distinct programs utilizing the same programming language that produces the exact output “Hello, world!” employing n unique source characters, where n ranges from 1 to 10 (inclusive), and “unique” implies that duplicate characters are disregarded in the character tally. The victor will be determi... | evolcodegolf |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.