instruction_seed stringlengths 29 40.5k | source stringclasses 6
values |
|---|---|
Develop a solution that effectively outputs or returns the Stack Exchange favicon depicted below, ensuring to consider various programming languages for your implementation. Aim to achieve the minimal character count, as this challenge is rooted in code-golf principles, where brevity is paramount.
___________________... | evolcodegolf |
Welcome to my inaugural code-golf challenge! :) Let's dive straight into the task at hand.
Challenge:
You are to design a program that receives two floating-point vectors, designated as O (origin) and T (target), and subsequently outputs the coordinates L and R to STDOUT.
O corresponds to one vertex of the square
T de... | evolcodegolf |
You are required to develop a program or function that processes a 'map' of numbers, which can be represented either as a string with new line characters (\n) or as a 2D array of strings. Each map consists of 5 rows and 5 columns, where the characters can only be digits greater than 0 or spaces. Here's a sample map for... | evolcodegolf |
Create a succinct program that maximizes output while minimizing code length, ensuring that any submissions generating infinite output are excluded from consideration. The victor will be determined by the optimal output size to code size ratio. Note that the evaluation will be conducted on my specific setup, which cons... | evolcodegolf |
Sandbox
Adapted from exercise 4 of 100 little Keg exercises
The capacity to iterate through segments of code within a programming construct is a fundamental aspect of any programming paradigm. Equally vital is the capacity to implement conditional logic predicated on varying inputs.
The Challenge
I want you to ... | evolcodegolf |
Given a positive integer input N, systematically deduce and output two distinct non-negative integers, a and b, such that a < b, which together yield the minimal mean value in a recurring relation sequence defined as follows:
f(0) = a
f(1) = b
f(n) = f(n-2) + f(n-1).
In the event that multiple pairs exist yielding... | evolcodegolf |
Construct a continuous stream of non-negative rational numbers, ensuring that each number in the stream is uniquely generated, and every remaining non-negative rational number has a non-zero chance of being selected for future outputs. For instance, if the initial number is 2/5, that fraction cannot appear again, but a... | evolcodegolf |
Consider an infinite sequence derived from the Fibonacci series, starting with:
[0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, ...
Next, we compute the ratios between each pair of adjacent numbers, continuously:
[1, 1, 2, 1.5, 1.6667, 1.625, 1.625, 1.625, 1.61905, 1.61905, 1.61905, ...
[1, 0, 0.5, 0.1667, -0.0417... | evolcodegolf |
Develop a program that precisely outputs the following string:
jan ale o, toki!
("Hello, world" translated into toki pona to circumvent builtins.)
This output may conclude with an optional newline character. Furthermore, it is imperative that the program is designed such that the removal of any single byte from ... | evolcodegolf |
During my third-grade education, we were instructed in the fundamental technique of resolving an elementary mathematical issue, specifically the process of aligning the denominators of two or more fractions to facilitate their addition or comparison.
Consider the following two proper fractions:
$$
\frac{1}{2}, \frac... | evolcodegolf |
Envision a straightforward mathematical quandary. You possess a number, let’s say it’s 1000, and your task is to determine the subsequent multiple of 32 that comes after 1000. You would typically perform some basic calculations and arrive at the answer. The usual algorithm appears as follows:
int number = 1000, result... | evolcodegolf |
Certainly! Here’s a more complex version of the provided prompt:
It can be quite perplexing at times. Allow me to elucidate the process in a more comprehensive manner:
Given a textual string, extract the unicode code points corresponding to each individual character.
For instance, consider the phrase "Hello World!".... | evolcodegolf |
Introduction
For those intrigued by the intricacies of Befunge, a two-dimensional stack-based programming language conceived in 1993 by Chris Pressy, I have crafted a series of seven brain teasers designed to challenge your problem-solving skills in Befunge-93. This endeavor is quite experimental, yet I find it to be... | evolcodegolf |
Construct a complex variant of the renowned Eight Queens problem within the context of an n × n chess board, where n represents the size of the board and m is a non-negative integer constrained by m (≤ n). Your task is to explore and enumerate all viable configurations to position nm Queens on the chessboard, adhering ... | evolcodegolf |
For the purposes of this intricate computational challenge, we will delineate a postfix regex dialect utilizing the binary alphabet set {1, 0} along with the following defined operations:
1 and 0 denote literal self-matching characters.
_ signifies the empty string within this context.
! perpetually fails to yield a m... | evolcodegolf |
This intriguing challenge draws inspiration from the classic game of Flood, placing a greater emphasis on strategic maneuvering.
The Task
Given a matrix composed of various colors, your objective is to devise the most efficient sequence of operations that will transform the entire grid to a uniform color. To clarify,... | evolcodegolf |
Imagine constructing an intricate tapestry of words using a modified Scrabble board where the only rule is that letters can be reused across different words without restriction. You are free to use as many tiles as needed, and tiles with special characters are permitted in your design.
For example, the phrase "TO BE O... | evolcodegolf |
Given a 5x5 grid, represented as follows:
-ABCD
-A---
---C-
---BD
--E-E
Your challenge is to manipulate this grid by connecting the letters, ensuring that each letter (A, B, C, D, and E) appears exactly twice, eliminating all empty spaces in the process. The connections must form singular, unbranched lines... | evolcodegolf |
Related, but markedly distinct.
In the examples provided below, \$A\$ and \$B\$ are denoted as \$2\times2\$ matrices, with the matrices indexed starting from one. A Kronecker product exhibits the following characteristics:
A⊗B = A(1,1)*B A(1,2)*B
A(2,1)*B A(2,2)*B
= A(1,1)*B(1,1) A(1,1)*B(1,2) ... | evolcodegolf |
The primary function of the RGB (Red Green Blue) color model is to facilitate the sensing, representation, and display of images across various electronic systems, including televisions and computers. Conversely, HSL (Hue Saturation Lightness) serves as an alternative color model, conceptualized in the 1970s by compute... | evolcodegolf |
Your task is to print the hexadecimal times table in a structured format:
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
00 02 04 06 08 0A 0C 0E 10 12 14 16 18 1A 1C 1E
00 03 06 09 0C 0F 12 15 18 1B 1E 21 24 27 2A 2D
00 04 08 0C 10 14 18 1C 20 24 28 2C 30 34 38 ... | evolcodegolf |
It is a widely accepted notion that individuals possess the fundamental ability to perform arithmetic addition manually, correct?––I trust this is the case, but for those requiring a brief refresher on the process:
To sum the numbers 17282 and 1342, follow these detailed steps:
Begin by positioning the greater numer... | evolcodegolf |
You are required to develop a function or program that ingests input through the standard input stream or command-line parameters, performs character swapping within a specified string, and subsequently outputs the modified string through standard output. The input will initially consist of a non-empty string followed ... | evolcodegolf |
You possess a swimming pool brimming with water and find yourself at an impasse regarding an effective method to evacuate it. Opting for a red solo cup as your tool of choice, you'll systematically fill the cup to its maximum capacity and subsequently dispense its contents outside the pool.
Your task is to determine ... | evolcodegolf |
Sylvester's sequence, cataloged as OEIS A000058, is a fascinating integer sequence characterized by the property that each subsequent term is derived from the product of all preceding terms incremented by one. The sequence commences with an initial term of 2.
Your task involves devising a program that effectively com... | evolcodegolf |
Develop a program that implements ROT-128, a variant of ROT-13, by cycling through all 256 potential byte values. This program must not only output its own source code transformed by ROT-128, but it should also ensure that the outputted code remains valid and produces the original source when executed. Considerations f... | evolcodegolf |
Shifty-eyes ASCII guys like to shift ASCII Ii's:
>_> <_< >_< <_>
Given a string of shifty-guys, spaced apart or separate lines, shift the Ii's side to side, left the wall and right the skies:
Ii
The shortest shifter wins the prize, but ensure that the output adheres to the specified format and does not introduce any ... | evolcodegolf |
This minor computational challenge stems from my frustration upon realizing that the widely-utilized numpy library lacks an inherent function to address this specific task.
Input
An n by m matrix consisting solely of integer values.
Output
The highest integer within the matrix alongside the two-dimensional coor... | evolcodegolf |
Transform the string abcdfghjk. To initiate the overwrite process commencing from the character f, substitute it with the sequence wxyz, and proceed along the initial string, replacing each character with its corresponding one from the substitution sequence. The resultant string will be abcdwxyzk.
Now, consider a sce... | evolcodegolf |
This is the follow-up challenge from this one; if you're confused, please check that one out first.
First, let \$m(s, k)\$ represent the number of cache misses a sequence \$s\$ of resource accesses would incur, assuming our cache has a capacity of \$k\$ and utilizes a first-in-first-out (FIFO) ejection scheme upon rea... | evolcodegolf |
This is a somewhat proof-golf-like cops-and-robbers challenge. This is the cops' thread; the robbers' thread is here.
Cops
Your task is to intricately define an abstract rewriting system where the determination of reachability between one word and another proves to be a non-trivial endeavor. You will prepare the fo... | evolcodegolf |
Construct a program that accepts two non-negative integers, S and N, in sequence, where S denotes the length of a square grid consisting of the character . and N signifies the total count of these . characters that must be transformed into x characters. It should be noted that N is constrained such that it never exceed... | evolcodegolf |
In this intriguing programming challenge, you will engage with the well-known FizzBuzz problem, but with a twist that requires you to approach it from an inverse perspective. Specifically, you will be presented with the length of a FizzBuzz output string and must accurately deduce the corresponding positive integer tha... | evolcodegolf |
In the context of Javascript, it's fascinating how one can reconstruct the entirety of the language by utilizing merely the symbols ()[]!+. Below are some foundational representations:
false => ![]
true => !![]
undefined => [][[]]
NaN => +[![]]
0 => +[]
1 => +!+[]
2 ... | evolcodegolf |
**Challenge**
You are provided with an ASCII-art representation of distinct characters situated on a two-dimensional plane, input through any feasible mechanism. This representation will consist exclusively of:
[a-z], which denotes movable characters, with each letter appearing on the board no more than once.
# si... | evolcodegolf |
Produce or return the subsequent text output:
Greetings, universe! The agile, russet-hued fox vaults over a sluggish canine.
However, the evaluation of your submission will not be quantified in bytes. Instead, it will be predominantly assessed by the horizontal span in pixels of the rendering when presented in Arial... | evolcodegolf |
Introduction
Let us delve into the examination of the following numerical square, exclusively composed of the digits ranging from 0 to 9:
1034
4167
8414
3542
The external boundary of this square is represented as:
1034
4 7
8 4
3542
Upon inspection, it is evident that this configuration contain... | evolcodegolf |
Design a mathematical sequence where every positive integer appears infinitely but with a twist: as you progress through the sequence, the frequency of each integer must oscillate in such a way that no integer stabilizes its probability over time. This means that for any integer you choose, the limit of its occurrence ... | evolcodegolf |
In a recent instance of inadvertent typographical error, I found myself mistakenly writing "unicorn" instead of the intended "unicode." In an amusing turn of events, I took what any reasonable individual would consider an absurd path and created an esolang based on this mistake. Your challenge is to construct an interp... | evolcodegolf |
You are tasked with designing an intricate combinatorial puzzle. This challenge revolves around a transformation process where participants must navigate through sequences of symbolic representations to uncover hidden pathways. Here’s what you need to establish:
- A customized set of symbols that will serve as your un... | evolcodegolf |
Transform each individual word in a provided string of multiple sentences into their corresponding single-letter representations, with the letters separated by spaces or punctuation marks.
Example:
I'm a little teapot, short and stout. Here is my handle, here is my spout. When I get all steamed up - hear me shout! Ti... | evolcodegolf |
Your task is to display the letter "F" shaped ASCII art, given five inputs.
Examples:
Input: 9,3,@,|,- (Note: You don't have to follow this exact input format, and if you don't use it, then you must explain how your own input format works)
Explanation:
9 total width, including the left and right edge character... | evolcodegolf |
The task at hand involves constructing a program that systematically generates and presents all characters from the Unicode table within the specified range of n to z. Here, "0000" represents the initial entry in the sequence, and it is imperative to omit all blank Unicode entries from consideration. To illustrate, if ... | evolcodegolf |
Devise a program that accomplishes the following intricate task:
Accept as input a signed integer represented in either signed decimal or signed octal (as detailed below). If the input is a decimal number, the program should convert it to its octal equivalent; conversely, if it is in octal format, the program should t... | evolcodegolf |
I seek to achieve the most concise possible version of the provided Python 3 code, even if this results in reduced clarity. The task involves navigating a coordinate system where the current position is represented by (x,y) and the destination is denoted by (a,b). Movements are designated by the letters S for South, N ... | evolcodegolf |
This is Weekly Challenge #3. Theme: Data Transformation
Create a program or function that converts a data representation from a custom stack-based language, named Stax, into an equivalent program in a different stack-based language called Pocketh. The outputted program should maintain the same behavior, meaning it mu... | evolcodegolf |
Explore the concept of a "quasigroup," which is a set equipped with a binary operation satisfying the Latin Square property: for every pair of elements, there exists a unique solution to the equation a * x = b and x * a = b for all a, b in the set. Define a quasigroup of order n, where n is a positive integer, and prov... | evolcodegolf |
Given a positive integer \$m\$ and another positive integer \$p\$ (\$1 < p < 36\$), determine the sum of the digits of \$m\$ when represented in base \$p\$.
1537 10 -> 16
789 12 -> 30
1024 20 -> 7
512 18 -> 5
396 8 -> 21
2345 7 -> 26
1111 11 -> 5
876 16 -> 23
1456 14 -> 22
325 22 -> 14
2048 9 -> 1... | evolcodegolf |
Challenge:
Input:
A sorted list of positive integers represented as strings.
Output:
The count of integers that remain at their original index after shifting each digit in the integer downwards, based on the length of the integer itself, and then sorting the transformed list again.
Example:
Input: ["8", "49", "73", "10... | evolcodegolf |
Formulate a program or function that, upon receiving a positive integer \$n\$ alongside a non-zero digit \$d\$, constructs a representation of \$n\$ strictly utilizing operations such as addition, subtraction, multiplication, exponentiation, division, concatenation, parentheses, and the digit \$d\$. Ensure that your de... | evolcodegolf |
Your task is to produce an output that exactly replicates the following sequence of characters in a structured manner, ensuring the integrity of the format is maintained:
A
ABA
ABCBA
ABCDCBA
ABCDEDCBA
ABCDEFEDCBA
ABCDEFGFEDCBA
ABCDEFGHGFEDCBA
ABCDEFGHIHGFEDCBA
ABCDEFGHIJIHGFEDCBA
ABCDEFGHIJKJIHGFE... | evolcodegolf |
In the context of a computational challenge, you are provided with a sequence of binary digits represented as either space-separated values or within an array format, each comprising solely the integers 0 and 1. Your task is to compute the cumulative exclusive OR (xor) across all provided elements, ultimately yielding ... | evolcodegolf |
Given an input of a list of blocks to drop at certain points, output the height of the resulting "tower" while ensuring that the maximum height at any x-value does not exceed a specified threshold.
The best way to explain this challenge is by example. The input will be a list of 2n integers representing n blocks. The ... | evolcodegolf |
Design a unique identification number system for a fictional world that resembles PESEL but incorporates additional complexity. The identifier must consist of 15 characters in the format YYYYMMDD-SSS-XX where YYYYMMDD denotes the birth date, SSS represents a unique sequential identifier within the same birth date, XX i... | evolcodegolf |
A programming language known as Pyramid Scheme is being developed by @ConorO'Brien. In Pyramid Scheme, the syntactic structure you construct resembles the following illustration:
^ ^
/ \ /3\
/ \ ---
/ + \
^-------^
/9\ /3\
/123\ ---
-----
This syntax possesses two not... | evolcodegolf |
In the realm of various Super Mario video games, both green and red Koopa Troopa shells exhibit the fascinating ability to slide frictionlessly across flat surfaces, capable of demolishing brick blocks encountered in their path. Upon collision with a brick block, the shell shatters the block, converting it into vacant ... | evolcodegolf |
The Challenge
Given a non-negative integer, compute its score based on the specifications provided below. The score is determined by elevating each digit of the provided non-negative Integer to the power of its respective index n, where n signifies the position of the digit in the Integer (initiating from 1) as counted... | evolcodegolf |
Input
A string.
Output
The cumulative total of all integers contained within the line.
Constraints
1≤Length of line≤500
Sample test Case
Input
the 5is 108 seCONd4 a
Output
117
Elaboration
Calculate the sum of all integers found in the provided string, ensuring to extract each number while igno... | evolcodegolf |
A string qualifies as pairable if it can be segmented into distinct substrings, each of which represents a string duplicated consecutively two times. For instance, the string aabaaababbbaba can be expressed as:
aaba aaba
b b
ba ba
Provided a non-empty string comprised solely of characters 'a' and 'b', return a Truthy ... | evolcodegolf |
This is one of several challenges left for the community by Calvin's Hobbies. Take a "family tree describing" file with lines of the form:
[ID] [mother ID] [father ID] [gender] [full name]
such as this which describes the first family tree at http://en.wikipedia.org/wiki/Cousin:
1 ? ? M Adam
2 ? ? F Agatha
3 ... | evolcodegolf |
Task
Given a string of English names of digits “collapsed” together, like this:
zeronineoneoneeighttwoseventhreesixfourtwofive
Split the string back into digits while ensuring that each digit name appears in its standard form, maintaining a consistent delimiter, while also preserving the count of occurrences for... | evolcodegolf |
Develop a program or function that accepts two integers representing the X and Y coordinates of a point on a Cartesian plane, ensuring that the input format remains flexible yet consistent, with the X value preceding the Y. Acceptable formats include 1 -2, (1,-2), [1, -2], or 1\n-2, all correctly interpreted as X = 1, ... | evolcodegolf |
Please provide an input value, designated as x, and subsequently offer a mathematical expression formatted as follows:
ax^m + bx^n + cx^o ... where the variables m, n, o, and any subsequent terms can assume any numerical value, and coefficients can likewise be any real numbers. For instance, consider the expression 6x... | evolcodegolf |
The task is to create unique team pairings for a project based on a list of members and a list of roles, ensuring a different combination each time. Input consists of two lines: the first line has a semicolon-separated list of team member names, and the second line includes a semicolon-separated list of project roles. ... | evolcodegolf |
The Fibonacci sequence, a well-known series of numbers, initiates with two ones and generates subsequent values through the summation of its two preceding terms. In a similar vein, one can conceptualize the n-bonacci sequence, which begins with n instances of one and derives each following term from the sum of its n an... | evolcodegolf |
Your objective is to meticulously transform Chinese numerals into their corresponding Arabic numeral representations through a multi-step reasoning process that thoroughly considers the intricacies of numeral composition. This task mirrors the concept of converting Chinese numbers, yet it introduces additional complexi... | evolcodegolf |
The scenario
I find myself wandering through a lush forest after a gentle rain, and I begin to notice patterns on the leaves and ground. As I gaze down, I wonder which cluster of droplets is the most extensive.
The task
To simplify the challenge, envision the forest floor divided into a grid of 10*10 squares.
Yo... | evolcodegolf |
In various regions across the globe, the convention for phone number formatting tends to adhere to fixed lengths, which may come across as monotonous. Your objective for this task is to manipulate the digits of what is believed to be a legitimate phone number, adhering to an intricate set of simplified formatting rules... | evolcodegolf |
You are tasked with developing a program or function that analyzes a string comprised solely of brackets and determines whether that string is fully matched. Your program should output either a truthy or falsy value, with input/output allowed in any reasonable format, and it must also account for the maximum depth of n... | evolcodegolf |
Goal:
Given a list of phrases, generate unique identifiers for each phrase.
Specification:
An identifier is formed by the first N characters of a phrase, ensuring that no identifier can be confused with another. For instance, if a phrase starts with "hello", it can have identifiers such as "h", "he", or "hel", b... | evolcodegolf |
Context
Consider square matrices with n columns and rows containing the first n^2 (i.e. n squared) positive integers, where n is odd. The elements of the matrices are arranged such that the integers 1 through n^2 are placed sequentially in a counterclockwise spiral starting at the center and initially moving to the l... | evolcodegolf |
As an individual well-versed in programming concepts, you are likely familiar with the distinctions between forward slashes and backward slashes. However, have you come across the concept of downslashes? This term refers to the process of connecting the ends of multiple slashes and positioning them to extend downward i... | evolcodegolf |
Introduction
Craft a compact solver for the intricate Hitori puzzles while minimizing byte usage.
Challenge
Your task is to design a highly efficient solver for the Hitori (ひとり, signifying "alone" in Japanese; reflecting the game's essence of solitude) logical puzzles. The rules are delineated below:
You are pre... | evolcodegolf |
In the context of the classic word game Scrabble, where players collaboratively construct a board with letter tiles that form interconnected words, your task is to implement a function that rigorously evaluates the integrity of a given 2D grid of letters. Each word must connect to at least one other, either horizontall... | evolcodegolf |
In discussions surrounding the defense of perplexing decisions, it's common for individuals to assert that the decision-maker is engaging in a form of strategic thinking akin to playing "3-dimensional chess." Now, this scenario invites you to immerse yourself in a game of 3-dimensional chess with specific rules and mec... | evolcodegolf |
My stovetop is equipped with 10 distinct heat settings, ranging from 0 to 9, and features an unconventional mechanism for transitioning between them.
When I engage the plus (+) button, it increments the current setting unless I am at 9, in which case it wraps around to 0, or if I am at 0, it instead jumps to 9.
Conve... | evolcodegolf |
A quote from MO.SE answer:
Although it is well known that Conway was able to quickly calculate the day of the week of any given date, it is less well known that one part of the algorithm is easy to remember and useful in practice: In any given year, the following dates all fall on the same day of the week: 4/4, 6/6, 8... | evolcodegolf |
This challenge embodies the highly strategic king of the hill competition for Dots and Boxes, also known in certain circles as Pen the Pig. The gameplay mechanics are straightforward: during your allocated turn, you must draw a line on an unoccupied segment of the fence. Each time you successfully enclose a square, you... | evolcodegolf |
Challenge
Given the daily arrival and departure times of every train that reaches a railway station, determine the minimal number of platforms needed to ensure that no train experiences delays in waiting. In more complex terms, calculate the peak number of trains that can concurrently occupy the station without overl... | evolcodegolf |
After successfully navigating through the peculiar diamond-shaped keypad and entering the restroom, you discover yet another mysterious keypad, this time featuring an even more intricate design:
For those who can't visualize the layout:
```
+-----+-----+
|\ | /|
| \ A | B / |
| \ | / |
| C\ | / D |
| ... | evolcodegolf |
Background
BitCycle represents a two-dimensional Turing-complete programming language that centers around the movement of bits across a designated playfield. Due to my reluctance to manually create BitCycle programs, you will take on the task of generating these programs that produce outputs of BitCycle programs on m... | evolcodegolf |
Evaluate an audio file to ascertain whether it is encoded in a lossy format or a lossless format. For the purposes of this analysis, focus on classifying solely the formats listed below:
Lossy
- AC3
- AMR
- AAC
- MP2
- MP3
- Ogg Vorbis
- WMA
Lossless
- AIFF
- FLAC
- TTA
- WAV
Guidelines
If the input is provided a... | evolcodegolf |
Design and develop an advanced word generator that evokes a sense of nostalgia reminiscent of programming in the '80s. In that era, I crafted a rudimentary word generator that occupied less than 42kB (including both the code and working memory) which was capable of taking a diverse collection of strings to fabricate no... | evolcodegolf |
You will be provided with a String consisting of printable ASCII characters (excluding newlines). Your mission is to construct an intricate Stairway for my Castle that not only adheres to the specified format but also ensures that each rotation of the String must display an incremental increase in the number of leading... | evolcodegolf |
This presents an engaging yet straightforward challenge, while aiming to retain a sense of enjoyment.
Task
If, at the current moment, either the month is 4 and the day is 20, the hour (on a 12-hour clock) is 4 and the minute is 20, or the minute is 4 and the second is 20, print the following ASCII art:
... | evolcodegolf |
A cosmic calamity has unfolded: a rift in spacetime has unleashed a swarm of enigmatic entities known as the Synths, whose sole purpose is to harvest the energy of dying stars for their own survival. They are rapidly converting distant galaxies into black holes, leaving our Milky Way as their next target.
However, the... | evolcodegolf |
Consider a collection of positive integers d_1, d_2, ..., d_k to be classified as a factorisation of a positive integer n if the multiplication of these integers results in n, specifically d_1 * d_2 * ... * d_k = n.
It is important to note that while each positive integer possesses a unique prime factorisation, they a... | evolcodegolf |
Introduction
To mitigate the risks associated with keyloggers potentially capturing a user's sensitive authentication data, a particular banking application has instituted an intricate security protocol: during each login attempt, only a select subset of numerical digits is prompted for entry.
For instance, if your... | evolcodegolf |
This challenge is centered around the concept of Stacking Books. Imagine a scenario where you have a collection of books of various sizes, each with a spine that has either the cover facing up or down. The objective is to organize the books such that they are sorted by size from smallest to largest, with all covers fac... | evolcodegolf |
A numerical polynomial is defined as a polynomial \$p\$ characterized by a single variable and composed of rational coefficients, possessing the property that for each integer \$i\$, the evaluation \$p(i)\$ yields an integer result. The foundational structure of numerical polynomials is established through the binomial... | evolcodegolf |
Create a program that generates N (N >= 2) lines of a custom series based on prime numbers, following these rules:
- Start with the first two prime numbers:
2
3
- Each subsequent line is formed by concatenating the two previous lines.
2
3
23
Continue this pattern until you've printed N lines.
2
3
23
233
And that's t... | evolcodegolf |
Create a program that outputs the phrase And she said, 'But that's his.' using solely the characters: abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ. Punctuation and non-alphabetic characters are strictly prohibited. Feel free to utilize any programming language of your choice, ensuring whitespace is entirely per... | evolcodegolf |
Background
As many seasoned participants in programming puzzle communities are aware, a quine is a self-replicating program that generates its own source code upon execution; meanwhile, the Levenshtein distance quantifies the minimum number of insertions, deletions, and substitutions necessary to convert one string i... | evolcodegolf |
In this task, you will receive a sequence of strictly increasing positive integers that may contain some gaps in the data. Your objective is to identify these gaps and represent them appropriately in the output. If two consecutive numbers have a difference greater than 1, this indicates that values are missing between ... | evolcodegolf |
Craft a function that increments a number by employing only bitwise operations, loops, and conditional statements while ensuring that it maintains a concise structure without exceeding an additional five operations in the overall scoring.
Rules:
All entries must adhere to the language specifications delineated below.... | evolcodegolf |
Inspired by this intriguing challenge, devise a solution that generates 88 unique functions (in a chosen programming language) which each return the phrase "You complete me." The functions should be formatted in a manner that showcases their individuality, as defined by your design. However, every character output must... | evolcodegolf |
Your task is to process an incorrectly formatted SVG code and output it in a properly indented format.
Indentation space = 4
Assume the input will always be a valid SVG element, even if it is not properly indented.
Input can be received as a string or an array/list of lines.
Self-closing tags must remain on their own ... | evolcodegolf |
Design a plain TeX program that generates the Fibonacci sequence up to the 100th term, formatted in base-10. You are not allowed to include any external libraries or resources. The output may be directed to the terminal, log file, or a dvi/pdf file of your choice, but it must be easily legible for a human reader; ensur... | evolcodegolf |
The objective of this intellectual exercise is to derive the general formula for a specified arithmetic or geometric series.
Explanation
The mathematical expression for an arithmetic sequence can be articulated as follows:
\[ a_n = a_1 + (n-1)d \]
where \( a_1 \) denotes the inaugural term of the series, \( n \... | evolcodegolf |
Problem adapted from the book Fortran 77 by Donald M. Monro
Introduction
Digital plotting machines are widely used to produce various forms of drawings, graphs, and other pictorial results. Most such machines can move their pens only in certain directions, usually as single steps in the X and Y direction or both. A ... | evolcodegolf |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.