instruction_seed stringlengths 29 40.5k | source stringclasses 6
values |
|---|---|
This inquiry marks the initiation of a series of intricate Brain-Flak Birthday challenges, meticulously crafted to commemorate the inaugural anniversary of Brain-Flak! Further details regarding the celebration of Brain-Flak's Birthday can be found here.
Last summer, the Brain-Flak Integer Metagolf proved to be an inva... | evolcodegolf |
Given the widespread understanding of the legacy BIOS, it is well recognized that the smallest bootable disk image is confined to 512 bytes, a limitation imposed by the 2-byte magic at offset 510. In the realm of creative computing, there exists a bootsector demoscene where enthusiasts strive to condense an entire demo... | evolcodegolf |
Your objective is to craft a floor function in as few bytes as conceivable. A floor function is defined as a mathematical operation that takes a real number and returns the greatest integer that is less than or equal to the specified input. Your implementation must accommodate both positive and negative values. Given t... | evolcodegolf |
Inspired by this remarkable structure (United States Air Force Academy Cadet Chapel, Colorado)
Your task is to create an intricate representation of a spiked building given a positive integer n, while ensuring that the output maintains symmetry across both vertical and horizontal axes. Additionally, output the spiked ... | evolcodegolf |
Given a string of printable ASCII text (including newlines and spaces) that contains at least one character that is neither a newline nor a space, output a truthy value if the string is rectangular, and a falsey value otherwise. Additionally, the source code for your solution must be rectangular, and it must be formatt... | evolcodegolf |
### Legendary Pac-Man Challenge
In an unprecedented milestone, a gamer achieved the longest continuous run in the classic arcade game Pac-Man, surpassing all previous records without losing a single life. This is the moment Pac-Man navigates through the infamous maze at its peak.
**Challenge**
Represent the legenda... | evolcodegolf |
In the context of a positive integer \( n \) characterized by its prime factorization \( n = p_1^{e_1} \times p_2^{e_2} \times \ldots \times p_k^{e_k} \), where \( p_1, \ldots, p_k \) represent distinct prime numbers and \( e_1, \ldots, e_k \) are their corresponding positive integer exponents, we introduce two analyti... | evolcodegolf |
A variation on a recently posed query, you are presented with a series of mathematical operators along with a resultant integer, and your task is to discover integers that, when processed sequentially by those specified operators, yield the target result.
Example 1
input
+ + * / 13
possible output
4 8 2 2 4 ... | evolcodegolf |
In this intellectual endeavor, you are tasked with the computation of values derived from a peculiar numerical series. Your provided input consists of a singular nonnegative integer expressed in decimal notation. The challenge lies in reversing the bit representation of this integer and subsequently squaring the result... | evolcodegolf |
A number is considered an enigmatic number if it cannot be expressed in the form \( n + \text{(product of digits of n)} = x \) for any natural number \( n \). For instance, 28 is not an enigmatic number because \( n = 24 \) satisfies \( 24 + (2 \times 4) = 28 \). Conversely, 30 is an enigmatic number since no such \( n... | evolcodegolf |
Given a jagged array structure, your task is to determine the maximum length of any subarray that also incorporates its corresponding depth value. The base level of the array is assigned a depth of 0.
Consider this example:
[1, 2, [3, 4, [2, 5]], 0]
In this instance, the inner subarray [2, 5] has a depth of 2 and a ... | evolcodegolf |
Background and Motivation:
In the world of gaming, particularly in role-playing games (RPGs), players often create characters with unique attributes and histories. One fascinating element is the concept of character evolution or transformation, where a character can shift from one identity to another by adopting new tr... | evolcodegolf |
Definitions
Euler Phi Function (also referred to as the totient function): a mathematical function that accepts a positive integer and yields the count of positive integers less than the specified integer that are co-prime with the given number. This function is symbolized as φ(n).
Reachable number: a positive integer... | evolcodegolf |
Create a "qruine," if you will!
Design a QR code that not only encodes its corresponding text but also visually manifests it through the arrangement of its pixels (or the gaps between them). For instance, this particular QR code encodes the character A while also depicting A in a contrasting hue:
There are four disti... | evolcodegolf |
Here is a more intricate ASCII art snowman creation challenge:
_===_
(.,.)
( : )
( : )
As we expand his social circle, let us adhere to the overarching pattern for our ASCII art snowpeople:
HHHHH
HHHHH
X(LNR)Y
X(TTT)Y
(BBB)
The leading spaces and the parentheses are fixed across all snowpeople. Each character rep... | evolcodegolf |
Design a sophisticated program or function that accepts an integer input N, meticulously examines if N pairs of randomly generated integers are relatively prime, and consequently computes and returns the value of sqrt(6 * N / #coprime).
Summary
These programming challenges are emulations of algorithms that utilize fu... | evolcodegolf |
Given the input of one of the officially recognized names of the 50 U.S. states listed on the left, provide its corresponding two-letter postal abbreviation as demonstrated on the right side, while maintaining strict adherence to case sensitivity. The list of states includes, but is not limited to, Alabama, Alaska, Ari... | evolcodegolf |
Challenge
Forsyth–Edwards Notation (FEN) serves as a detailed codification method for articulating a specific board state within a chess match. Your task involves assessing the material score through the provided FEN string. An example of such a FEN string is as follows:
5k2/ppp5/4P3/3R3p/6P1/1K2Nr2/PP3P2/8
Ut... | evolcodegolf |
Introduction
Factorials serve as a quintessential illustration of programming language functionality. A factorial, represented as \$n!\$, is computed as \$1⋅2⋅3⋅…⋅(n-2)⋅(n-1)⋅n\$. Furthermore, the superfactorial, denoted by \$n\$ (with various interpretations, but the chosen definition closely resembles that of the f... | evolcodegolf |
Given two integers m and p, construct a list of p distinct m-sets of mutually coprime integers. Each m-set should represent a unique selection where all integers within the set share no common divisor greater than 1. Ensure that every possible m-set of mutually coprime integers appears at least once across the generate... | evolcodegolf |
BackStory
Given a square matrix of alphabets that contains English letters arranged in an arbitrary manner, you are tasked with searching for a specific word within it. The search can extend horizontally from left to right, vertically downwards, or diagonally both upwards and downwards. Additionally, you must ensure ... | evolcodegolf |
Challenge
Print the following characters:
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890
The catch is that you may not use any one of them in your code. You may print them in arbitrary order, with or without a leading or trailing newline, but you may not print any other characters. Additionally, ... | evolcodegolf |
Juggling enthusiasts often experiment with hybrid patterns that combine elements of traditional siteswap with unpredictable throws. This particular challenge explores the concept of "multilevel siteswap," where the height of throws can vary dynamically based on specific criteria. A multilevel siteswap sequence can be d... | evolcodegolf |
This challenge revolves around the development of unique computation models and establishing their computational power.
As a challenger, you will undertake two main tasks:
1. Devise an intricate description of a novel computational model, which could involve unconventional programming paradigms or non-standard archit... | evolcodegolf |
I refer to this particular series as "the Jesus sequence" due to its derivation involving the sum of modular arithmetic. In essence, this sequence involves computing the sum of the modulus of a specified positive integer n with every integer m that is strictly less than n. This can be mathematically expressed as follow... | evolcodegolf |
See also: Make a move on a Go board.
Task
Go is a strategic board game in which two players (Black and White) sequentially place stones on the intersections of grid lines on a 19×19 board, with Black making the first move—such as at D4:
In this challenge, you are required to take a Go board coordinate like D4 ... | evolcodegolf |
A binary relation on a set \$X\$ is simply a subset \$S \subseteq X \times X\$; in other words, a relation is a collection of pairs \$(x,y)\$ such that both \$x\$ and \$y\$ are in \$X\$. The number of different relations grows quickly with the size of the set: if \$X\$ contains \$n\$ elements, there are \$2^{n^2}\$ bin... | evolcodegolf |
The objective of this task is to carefully extract specific elements from a provided list based on a selection criterion and reposition them within that list according to a defined index.
To illustrate this process, consider the input values (indicated by black boxed integers) alongside a parallel list of truthy valu... | evolcodegolf |
Stolen from @Downgoat with permission
The core objective of this challenge is to engage in a lighthearted (not) resolution of the ongoing debate surrounding the pronunciation of "gif".
The pronunciation of gif is a subject of contention, and although it is intended to be pronounced as jif, this is frequently conte... | evolcodegolf |
Input:
A maze containing the characters:
-- (horizontal wall);
| (vertical wall);
+ (connection);
(walking space);
I (entrance);
U (exit).
I.e. an input could look like this:
+--+--+--+--+--+--+--+--+--+--+
I | | |
+ +--+--+--+ + + + +--+ +
| | ... | evolcodegolf |
The Fibonacci Sequence is a renowned series of positive integers wherein the initial two elements are designated as 1, while every subsequent element is derived from the summation of the two preceding numbers. This sequence begins as follows: \$1, 1, 2, 3, 5, 8, 13\$ and continues indefinitely. However, consider the im... | evolcodegolf |
A screen comprises a series of LED segments, illustrated as follows:
This screen can be subdivided into one or more components. Each component represents a segment, possessing various lengths, which can be utilized to display an arbitrary number of digits, including zero, provided the component is sufficiently large. ... | evolcodegolf |
CHALLENGE
For a series of distinct prime numbers, determine: Identify the highest possible integer, y, which aligns as closely as possible to the prime factors of each number in the series.
The series consists of m distinct prime numbers, all of which are ≤ 3000.
y must lie within the bounds of [50, 150]. A prime ... | evolcodegolf |
Fibonacci + FizzBuzz = Fibo Nacci!
Your challenge is to develop a Fibo Nacci program!
A Fibo Nacci program generates the initial 100 Fibonacci sequence numbers (commencing from 1). If the Fibonacci number in question is divisible by both 2 and 3 (that is, it is divisible by 6), then output FiboNacci instead of displa... | evolcodegolf |
In a peculiar game involving n seats in a theater, a situation is described as "Full House" when every seat is taken or has an occupied seat directly adjacent to it. For example, if a person is represented as P, then
P-P--P
is considered a full house. Note that a person cannot occupy a seat next to an already occupied ... | evolcodegolf |
The following is the diamond pattern sequence.
1
22
333
4444
55555
666666
7777777
88888888
999999999
Your task is to output this pattern, using standard output methods (STDOUT, arrays, etc.). However, there's a twist. You may only utilize a single function—no additional functions or methods are allowed. This is a codi... | evolcodegolf |
The Challenge
Given a positive integer y, based on the first digit of y, perform the following actions:
- If the first digit is 1: Return y - 1
- If the first digit is 2: Return y + 10
- If the first digit is 3: Return y * 3
- If the first digit is 4: Return y / 4 (rounded down)
- If the first digit is 5 or... | evolcodegolf |
The concept of the Ramsey number \$R(r,s)\$ is pivotal in understanding the minimum vertex count \$v\$ required in a complete graph \$K_v\$ such that any red/blue edge coloring will guarantee at least one red \$K_r\$ or one blue \$K_s\$. The determination of bounds for larger values of \$r\$ and \$s\$ presents consider... | evolcodegolf |
Imagine a pyramid number, P(N), structured similarly to triangular numbers, but instead, you form it by arranging blocks of increasing size in a pyramid shape. The first layer has one block of '1', the second layer has four blocks of '2's, the third layer has nine blocks of '3's, and so on, resulting in a total of P(N)... | evolcodegolf |
You possess a collection of n distinct coins, each exhibiting a weight of either -1 or 1, and each coin is uniquely identified by a label ranging from 0 to n-1. In addition, you are equipped with a singular, extraordinary weighing apparatus. During your initial weighing, you have the option to place any subset of coins... | evolcodegolf |
The task is inspired by the introduction of the What-If book and involves a rectangle filled with spaces represented as a string, list of strings, etc., which contains various non-intersecting and non-touching objects denoted by #'s:
########
# #
########
### ####
### ... | evolcodegolf |
Construct a challenging task: given an integer value, create a house of cards visual representation based on the specified number of stories, with an added requirement that any input must also include a character indicating whether the house should be upright or upside-down (e.g., "U" for upright and "D" for down). If ... | evolcodegolf |
><>, or Fish, represents an intricately designed two-dimensional esoteric programming language characterized by its unique capability for the instruction pointer (IP) to traverse the codebox in a toroidal fashion, seamlessly wrapping around when encountering any edge.
This language features a set of four fundamental ... | evolcodegolf |
Cops submission task
A riffle shuffle represents a method of shuffling playing cards whereby the deck is bifurcated into two approximately equal segments, which are interleaved in small batches. Below is the procedure for implementing a riffle shuffle on a string:
1. Partition the string into evenly sized segments. ... | evolcodegolf |
I think most people around here know what a 7-segment display for digits is:
_ _ _ _ _ _ _ _
| | | _| _| |_| |_ |_ | |_| |_|
|_| | |_ _| | _| |_| | |_| _|
We can define the 7-segment difference (7SD) between two digits to be the number of segments that ... | evolcodegolf |
The Challenge
Produce a comprehensive enumeration of years commencing from the present year and culminating 120 years prior. This compilation should encompass the birth year of every individual currently alive on the planet.
Details
The enumeration must be arranged in descending chronological order.
Utilization of all ... | evolcodegolf |
What better challenge could there be for PCG.SE than to devise an implementation of PCG, A Better Random Number Generator? This recent paper asserts it introduces a rapid, hard-to-predict, compact, and statistically optimal random number generator. Its succinct C implementation spans roughly nine lines:
```c
// *Reall... | evolcodegolf |
Have you ever wished you could ask the database "What now?" Many users have encountered moments of confusion when queries yield unexpected results. To address this, a whimsical function, whatNow, has been created to provide amusing responses. Here are a few examples from a SQL-like environment:
whatNow
The answer lies ... | evolcodegolf |
When conducting a search query on Google, users are presented with a results page showcasing a series of green hyperlinks, prominently displayed on the initial results page. Your task is to efficiently output these hyperlinks in the most concise manner possible, expressed in bytes, utilizing any programming language of... | evolcodegolf |
Let's define the "unwrapped size" function u of a nested list l (which exclusively contains lists) by the following rules:
If l is empty, then u(l) is 1.
If l is non-empty, u(l) is equal to the sum of the unwrapped sizes of every element in l, plus one.
In addition to writing a program (or function) that accepts a li... | evolcodegolf |
(Previously on "Print the __ without employing __" ... this one and this one)
The classic card game known as Hearts features a widely recognized scoring variant referred to as "Shooting the Moon," where instead of adhering to the conventional strategy of avoiding penalty cards (and, consequently, penalty points), the... | evolcodegolf |
In the fascinating realm of rational numbers and their decimal representations, we often encounter the unique phenomenon where non-terminating decimal expansions can exhibit various forms of periodicity. Consider a case where a rational number is expressed in decimal and presented as a hybrid of both terminating and re... | evolcodegolf |
During a family board game night, we stumbled upon a peculiar number on the game board:
Take the number $$739$$ which can be broken down into $$7-3-9$$ or $$3^3-3^1-3^2$$. Here’s a unique challenge: for any given non-negative integer input, return consistent truthy or falsey values that indicate whether the string rep... | evolcodegolf |
CODE GOLF & Coding Challenges: In today’s intellectually stimulating endeavor, participants will be tasked with the formidable challenge of outputting an exceptionally unique, intricate, AND rather elusive Prime Number...! Are you all prepared for this ultimate golfing test?
6779686932717976703238326711110010511010332... | evolcodegolf |
The process of tallying represents a fundamental counting mechanism that operates within the constraints of base 5 numeral systems. Globally, a plethora of tallying methodologies exist, yet the variant predominantly utilized in most Anglophone nations is arguably the most straightforward—quantifying discrete units thro... | evolcodegolf |
Delicate Textile Manipulation
Explore the intricacies of manipulating a textile material, presenting a challenge that inspires creativity and innovation. This task is designed to engage participants in reimagining how fabric can be folded, layered, or shaped to achieve unique forms while adhering to specific constrain... | evolcodegolf |
Meta-background
This topic originated from a question posed on Puzzling, which quickly prompted the response, "well, someone will inevitably use computational means to solve that." A discussion ensued regarding the exact level of complexity that would be required for a program to tackle this challenge. Hence, the inq... | evolcodegolf |
Introduction
Doppelkopf is a traditional German card game designed for four players, utilizing a deck composed of 48 cards (specifically, 9, 10, Jack, Queen, King, and Ace from each suit, with each card appearing twice), ensuring that each player receives 12 cards at the beginning of every round.
The formation of t... | evolcodegolf |
Please process an input URL like
http://examples.example.co.nz/abcdefg
and extract the specific name of the website, which in this case is example. To clarify further, I am particularly interested in identifying the Second Level Domain that directly comes before the TLD (Top Level Domain), but should also extract t... | evolcodegolf |
In the realm of combinatorial mathematics, the Ramsey number \$R(r,s)\$ signifies the minimum quantity of vertices \$v\$ necessary within the complete graph \$K_v\$ such that any red and blue edge coloring of \$K_v\$ guarantees the existence of at least one monochromatic complete subgraph \$K_r\$ or \$K_s\$ in red or b... | evolcodegolf |
In this intricate answer-chaining challenge, each subsequent answer is expected to build upon the previous one in a thoughtful manner. It is highly advisable to arrange the discussion thread by "oldest" to maintain clarity regarding the chronological sequence of the posts.
It is noteworthy that this challenge has evol... | evolcodegolf |
Here is the phonetic alphabet:
Alfa
Bravo
Charlie
Delta
Echo
Foxtrot
Golf
Hotel
India
Juliett
Kilo
Lima
Mike
November
Oscar
Papa
Quebec
Romeo
Sierra
Tango
Uniform
Victor
Whiskey
X-ray
Yankee
Zulu
In the fewest bytes possible:
Input will be these words in a rando... | evolcodegolf |
Background
The series of metallic means, commencing with the renowned golden mean, is precisely defined for each natural number (a positive integer), and it is important to note that each of these means represents an irrational constant (characterized by an infinite non-recurring decimal expansion). For a given natur... | evolcodegolf |
Challenge:
Input:
An integer n (> 0)
An integer-array a of size > 0 (which contains positive and negative values, but no zeroes)
Output:
Initially, output the first n items from the array. Following this, take the last item outputted (designate it as e), and proceed to move e steps forward if e is positive, or abs(e... | evolcodegolf |
While exploring the realms of esoteric programming languages, I stumbled upon an intriguing concept: could one devise a purely macro-based solution in C that outputs its own source code without relying on any conventional functions, such as `main` or `printf`? The challenge lies in the restrictions of the preprocessor ... | evolcodegolf |
Every citizen of Brazil possesses a unique national identification number, commonly referred to as the Cadastro de Pessoas Físicas (CPF), which comprises an 11-digit sequence formatted as XXX.XXX.XXX-XX. The validity of this sequence is determined through an established algorithm:
Begin with the 9 most significant dig... | evolcodegolf |
For the robbers' challenge, Cheapo Enigma machine (Robbers)
A law enforcement officer's submission will necessitate the development of a program or function that accepts a solitary byte of input data and yields a singular byte of output data. It is imperative that every conceivable input leads to a distinct output, t... | evolcodegolf |
Given a sequence consisting of 1s and -1s, evaluate if it can represent a valid set of balanced symbols in a structured manner (by returning a boolean value).
Balanced symbol sequences follow these criteria:
1. The sequence [1] is considered valid.
2. If Y is a valid symbol sequence, then the sequences Y ++ Y and Y ... | evolcodegolf |
Background
I play D&D on a regular basis with some friends. While discussing the intricacies of various systems and versions regarding dice rolling mechanics and the application of bonuses and penalties, we lightheartedly conceived of additional complexities for dice rolling expressions. Some of these ideas were quit... | evolcodegolf |
A meticulously defined lawn consists of a rectangular expanse characterized by a singular symbol enclosed within two layers of discernible whitespace. This stipulates two lines of whitespace above and below, coupled with a two-space padding on the left side (the right is permitted to have visible whitespace, hence no i... | evolcodegolf |
The language known as +-= was developed by Esolangs user Anonymous in the year 2017. This unique programming language is characterized by a minimalistic structure comprising solely of three commands:
+ which increments the accumulator by one unit,
- which decrements the accumulator by one unit, and
= which outputs ... | evolcodegolf |
Your objective is to take a positive integer input, m, and determine the highest number of sequential identical digits that can be formed using the digits of m in any base representation. For instance, the number 14 can be represented in various bases as follows:
- 1110_2
- 14_10
- 1E_16
- 22_8
In this case,... | evolcodegolf |
Inspiration.
Given (by any means):
A function f: ℤ+ × ℤ+ → ℤ+ that accepts either two separate positive integer arguments or a single argument comprising a two-element list, along with
A strictly positive integer matrix containing a minimum of two rows and two columns
Your task is to return the function trac... | evolcodegolf |
Envision a countably infinite series of unoccupied rooms, and consider a scenario where an infinite number of guests arrives, occupying all odd-numbered rooms (1st, 3rd, 5th, etc.). In this context, there remains an endless availability of vacant rooms, ensuring that existing guests remain undisturbed as new arrivals c... | evolcodegolf |
New to code golf and enjoying it. I have a problem that I cannot figure out and am curious if others can solve it.
Start with two dictionaries, y and z:
y = {'a': 1, 'c': 3, 'e': 5, 'g': 7}
z = {'b': 2, 'd': 4, 'f': 6, 'h': 8}
y and z both map length-1 strings to numbers, where each number is between 1 and 26 (inclusi... | evolcodegolf |
Your task involves a basic yet intriguing mathematical challenge:
Given an angle measurement, which can either be in degrees or radians (your discretion), please determine and produce the coterminal angle that lies strictly between 0 and 2π [0º, 360º) associated with that measurement.
Input
An angle measurement that... | evolcodegolf |
In an effort to elevate the creativity of the classic number game, let's introduce a new character and mechanism. Presenting...
Galactic Fizzbuzz Adventure
Construct a program or function that processes an integer n, producing outputs for each number from 1 to n. For numbers divisible by 7, output "Galactic"; for num... | evolcodegolf |
In light of my two children’s fondness for engaging with a particular toy, which features colored areas containing shapes that illuminate and produce sounds upon interaction, I would like to explore an intricate simulation of its underlying logic.
The toy has several functionalities: among them is a middle button that... | evolcodegolf |
Your objective is to identify the \$n\$th element in the specific integer sequence defined by OEIS A057531, where each number uniquely satisfies the condition that its digit sum is equivalent to the total count of its distinct positive divisors.
For instance, consider the integer 22:
The complete set of its positive ... | evolcodegolf |
In the domain of mathematical notation, the Conway chained arrow notation serves as a framework for denoting exceptionally large integers through the use of zero or more positive integers interconnected by right arrows, such as \$2 \to 3 \to 4 \to 5 \to 6\$. In this context, let's define the variables \$p, q, a_1, \ldo... | evolcodegolf |
Introduction:
Inspired by the insightful comment of @MagicOctopusUrn on @Emigna's answer regarding the "It was just a bug" challenge, as showcased below:
8F9ÝÀNð×ý}».∊ I have enthusiastically crafted a spaceship maw! Additionally, I felt compelled to propose a 12-byte modification. – Magic Octopus Urn Jul 17 '17 at 20... | evolcodegolf |
Given a collection of distinct alphanumeric strings that are permutations of each other, your task is to produce an anagram of these strings which does not match any of the entries in the original list. Ensure that the output is derived through a methodical reasoning process, incorporating multiple steps to confirm the... | evolcodegolf |
Construct a directed graph G = (V, E) known as a flow network, which incorporates a designated source vertex s ϵ V and a sink vertex t ϵ V. Each edge (u, v) ϵ E, connecting nodes u ϵ V and v ϵ V, must be accompanied by two critical attributes:
1. c(u, v) >= 0, representing the edge's capacity
2. a(u, v) >= 0, denoti... | evolcodegolf |
Design a function that executes as close to 2 minutes of computational time as possible without employing any form of explicit timing functions or system sleep commands. The challenge lies in optimizing your approach to utilize as few characters as possible while navigating the constraints of your chosen programming la... | evolcodegolf |
You are presented with an \$n \times n\$ integer matrix, where the challenge lies in identifying a pentagon that yields the maximum possible sum. This pentagon must utilize segments of the x and y axes as two of its defining boundaries, originating from the upper left corner of the matrix.
Notably, all sides, with th... | evolcodegolf |
Disclaimer: This is heavily inspired by "Polyglot the OEIS!" but fixes the problem that lead to closure (see the output section) and was re-posted as to not invalidate answers.
Introduction
We all know and love the on-line encyclopedia of integer sequences (OEIS). So what if we made an off-line version of the intrig... | evolcodegolf |
In the context of a proper finite context-free grammar (CFG) composed exclusively of printable characters, your program or function must systematically derive and output its formal language, which encompasses the complete set of all possible sentences that can be constructed from the provided grammar elements.
Task ... | evolcodegolf |
King Julian finds himself reluctantly traversing the jungle, grappling with a sense of lethargy. To alleviate his burdens, he requires a computer capable of meticulously calculating a viable route through the wilderness on his behalf.
Using STDIN, please obtain a map of the jungle for the computer to decipher. It must... | evolcodegolf |
Your challenge is to rearrange a collection of fruits represented by their names: "apple", "banana", "cherry", and "date". The objective is to sort them in this specific order: apple banana cherry date, based on their alphabetical order.
Instructions:
Your solution must accept an array containing these fruit names an... | evolcodegolf |
Design a function that produces the string "HELLO". This might seem straightforward, but here's a twist: let the length of your function be \$L\$. For every possible cyclic right shift of your function by \$j < L\$ characters, it must generate a different string that represents a valid greeting. To cyclically shift a s... | evolcodegolf |
In the context of a project I am engaged in, I am conducting an analysis to ascertain whether specific DNA sequences are present within designated genes of E. coli. I have developed a program in Java that encompasses the functionalities outlined below. However, given that my implementation is in Java, I require you to ... | evolcodegolf |
Develop a function or program capable of calculating the precise number of wheel rotations needed to cover a specified distance, contingent upon its given radius.
Guidelines:
The input must consist of two positive rational numbers, and can be submitted in any user-friendly format. It is essential that both inputs sha... | evolcodegolf |
In a small village nestled in the Andes, Sofia is an artist renowned for her intricate ice sculptures. As the holiday season approaches, she feels pressured to create a stunning centerpiece for the annual festival. However, Sofia has run into a peculiar problem: due to an unexpected heatwave, her usual blocks of ice ha... | evolcodegolf |
Introduction
Indeed, the realm of sequence challenges is vast, and here we present yet another intricate puzzle.
The Kimberling sequence (A007063) unfolds as follows:
1, 3, 5, 4, 10, 7, 15, 8, 20, 9, 18, 24, 31, 14, 28, 22, ...
This sequence is derived from a shuffled version of the standard iteration:
[1] 2... | evolcodegolf |
Narrative
The deity presiding over foundational realms is bestowing upon mortals the opportunity to enter the exalted celebration within heaven's gates. As a fervent devotee seeking enlightenment, you aspire to emulate their ascent toward divine realms.
However, entry is selective, and not all may enter.
To ascer... | evolcodegolf |
Devise a solution that, given an integer N, computes and returns the Nth term from this infinitely generated sequence, which is as follows:
-1 2 -2 1 -3 4 -4 3 -5 6 -6 5 -7 8 -8 7 -9 10 -10 9 -11 12 -12 11 ... continuing indefinitely.
The parameter N can be specified as either 0-indexed or 1-indexed based on your pref... | evolcodegolf |
A rudimentary pedometer system can be conceptualized through the mechanics of a pendulum featuring dual switches situated at opposing endpoints—specifically at x=0 and x=l. Upon the pendulum's activation of the far switch, it can be inferred that the ambulator has effectively completed half a step. Conversely, contact ... | evolcodegolf |
In the realm of arithmetic, an n-smooth number—where n signifies a specific prime number—can be mathematically described as a positive integer devoid of any prime factors exceeding n. For instance, 42 qualifies as a 7-smooth number because its prime factors are all less than or equal to 7; however, 44 fails this criter... | evolcodegolf |
Introduction
A classic brain teaser involves a triangular board designed with 15 holes intended for tees/pegs, as illustrated in the accompanying image below:
Initially, all pegs occupy the board with the exception of one hole located at the apex. The objective of the puzzle is to execute jumps where pegs leap over ... | evolcodegolf |
In the context of set theory, it is vital to recognize that a set is characterized by its unordered nature and absence of duplicates.
Definition: An N-uniquely additive set S with a specified length K can be defined as a collection in which every possible N-length subset yields a unique sum, ensuring that all sums de... | evolcodegolf |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.