instruction_seed
stringlengths
29
40.5k
source
stringclasses
6 values
Given a complex Sudoku grid comprising several non-fully populated subgrids, determine all conceivable candidates that could potentially occupy each vacant cell. Test case Input: [ [ // Top left subgrid: [ 0, 0, 0, 3, 4, 0, 0, 0, 2 ], ...
evolcodegolf
For this computational challenge, you are required to devise a method that, upon receiving a collection of distinct (x,y) coordinate pairs, will yield a polynomial function that precisely intersects all provided points. Consider the following example: given the points [(0,0), (2,5)], a valid output could be y = 2.5*x o...
evolcodegolf
Blade is a PHP templating engine that requires the implementation of a specific feature -- text replacement with added complexity. Challenge Description Given an input file and a map of keys to their replacements, write an interpreter that reads through the file to identify double open braces ({{) followed by a key...
evolcodegolf
I recently delved into the intriguing realm of code-golfing, striving to construct the most concise tautogram checker possible. A tautogram is defined as a sentence in which every word initiates with the identical letter; for instance: Flowers flourish from France. Given a sentence as input, your task is to determine w...
evolcodegolf
Inspired by a thought-provoking inquiry found on SciFi.SE. Contextual Background (with slight spoilers): In the cinematic narrative of The Martian, the central character, Mark Watney, utilizes an ASCII table as a reference point to identify hexadecimal representations of ASCII characters, enabling him to formulate a ...
evolcodegolf
In a fascinating extension of numerical operations, we explore the concept of binary division without carrying over. This involves performing division using bitwise operations instead of traditional subtraction. In this challenge, you will receive a positive integer greater than or equal to 2. Your task is to identify...
evolcodegolf
The mid-autumn festival has begun! Unfortunately, all my mooncakes were stolen -- they're getting too expensive for small folk such as myself, and I fear I won't be able to eat any this year! So I turn to you for help. Would you be able to make me some? For those unaware, let me educate you on what a mooncake loo...
evolcodegolf
In the context of exploring a golflang theory I previously discussed on TNB, consider the following scenario regarding at-most-\$n\$-ary trees: these structures are rooted trees in which every internal node can possess anywhere from 1 to \$n\$ children (inclusive). Importantly, two trees are identified as identical sol...
evolcodegolf
Your objective involves minimizing the removal of the least number of elements from a given sequence, ensuring that the maximum count of values reside in their designated positions, defined as instances where an element's value aligns precisely with its indexed location. Consider the following illustrative sequence: ...
evolcodegolf
Introduction to Bézout's identity The GCD of two integers A, B is the largest positive integer that divides both of them leaving no remainder. Now because of Euclid's property that each integer N can be divided by another integer M as follows:                                             there exist pairs u,v such...
evolcodegolf
In this task, we will explore the fascinating world of programs as data structures. Imagine a program represented as a series of bytes, reflecting its memory state rather than its visual representation. A sanitized program is defined as a program \$P\$ that executes successfully without generating any errors, yet fails...
evolcodegolf
Background Z operates with arrays in a manner reminiscent of functional programming. Given a sequence of operations (elements), the last four elements are combined to create a new operation (a branch), recursively processing until only one or two operations are left. If the sequence has an even number of elements, th...
evolcodegolf
Problem Given an input a where a is a truthy/falsy value, output the exact impossible cube below if the value is truthy and the exact normal cube below if the value is falsy, ensuring that the output format must strictly adhere to maintaining the same character alignment as shown in the cubes below. Input truthy: ...
evolcodegolf
Introduction - What is a necklace? A necklace is a fascinating object that holds significant appeal for enthusiasts of the OEIS. The OEIS challenge features approximately five distinct sequences related to necklaces. A binary necklace of length n is defined as a circular arrangement consisting of n beads that can e...
evolcodegolf
Cops thread Robbers, Compose a program utilizing the cop's designated P string alongside your own specified S string, while adhering to the byte limitations imposed by the cop's post on the amount of each. Your S string must not exceed the byte count of the cop's S string. The program Using solely the strings P a...
evolcodegolf
In the realm of musical notation, groups of notes that are shorter than one beat are connected by a line at the bottom known as a beam. Below, you will find several bars of music with the beams distinctly marked: (Taken from Second Suite in F by Gustav Holst; the corresponding sound can be heard at 0:13 in this video....
evolcodegolf
You are tasked with monitoring a bus stop and need to tally how many passengers board the bus within a specific time frame. Given a time limit measured in minutes, your objective is to develop a method for tracking the total number of passengers that enter the bus during that period. Task Receive an integer m that re...
evolcodegolf
In the detailed exposition of this intricate challenge, the subsequent grid will be employed as a crucial reference for positional configurations: ``` ABC DEF GHI ``` For example, in a conventional match of tic-tac-toe, the sequence B E A C G D F H I elucidates the following scenario: ``` -X- -X- XX- XXO XXO ...
evolcodegolf
Introduction: When we think about Ladybugs, we usually envision a red or dark orange insect adorned with black spots. Although this perception isn't entirely accurate, as there are black ladybugs with red or orange spots, or even ladybugs that lack spots altogether, we predominantly associate ladybugs with the appearan...
evolcodegolf
In a unique context involving event management, you are given a collection of events with their scheduled times (start time and end time). Your task is to calculate how many events are active at each distinct time point within the total duration. For instance: # Start Time End Time 1 2023-09-01 1...
evolcodegolf
Palindromic Reduction Palindromic reduction is a fascinating linguistic phenomenon: the transformation of a word or phrase by removing pairs of identical characters that are symmetrically placed around a central axis. For example, the word "deified" can be reduced to "d", while the phrase "abccba" simplifies to "a"....
evolcodegolf
All accolades to Adnan for originating this intriguing challenge. This marks my final task before taking a break. Assignment You are required to analyze a positive integer n, where the following conditions must be adhered to: if n is determined to be odd, generate the character '/' repeated n times; conversely, if ...
evolcodegolf
Given a decimal integer n as input, the task is to determine and output the smallest (in terms of absolute value) decimal integer m such that the absolute difference between n and m is a binary integer—composed exclusively of the digits 1 and 0. It is important to note that both n and m can take on any integer values, ...
evolcodegolf
The code should take text from standard input: The definition of insanity is quoting the same phrase again and again and not expect despair. The output should be a PNG file containing the word cloud corresponding to that text: The aforementioned word cloud was generated utilizing a specialized online application, whi...
evolcodegolf
Code Golf Challenge I have an issue, my fingers are fat and I frequently have an issue of typing one keystroke to the right on my keyboard. I'm afraid the issue is getting worse and worse as time goes on. Soon every keystroke I make will be shifted one to the right! Before then, I'd like a program (or function)...
evolcodegolf
You are tasked with analyzing two distinct sets of XY coordinates, each accompanied by a respective angle (all presented as floating-point numbers): X1 Y1 A1 X2 Y2 A2. The angles should be interpreted in relation to standard world coordinates, where 0 degrees indicates a direction pointing directly upwards or north and...
evolcodegolf
In this intricate coding competition, inspired by a specific query from the Mathematical Sciences E-Notes (MSE) community, participants are tasked with not only extending certain sequences from the Online Encyclopedia of Integer Sequences (OEIS) but also with innovating new sequences derived from the challenge paramete...
evolcodegolf
Develop a function that takes a sequence of numbers as input and generates a mathematical expression in the same programming language that, when evaluated, will produce the original sequence of numbers. The function must accommodate any integer values, including negative and zero. For instance, in JavaScript: ```java...
evolcodegolf
Formulate a challenge that requires you to input a string composed of uppercase or lowercase letters (this step is optional), and subsequently derive the total score this string would achieve in a game of English Scrabble, adhering meticulously to the specified scoring rules outlined below. You are to meticulously cons...
evolcodegolf
If your understanding of a chess queen's mechanics is limited, fret not; it's merely a designation in the game :) Your input will consist of a two-dimensional square matrix of arbitrary dimensions, featuring a specific arrangement of queens. The visual representation of this board (with both width and height set to 8...
evolcodegolf
Design a numerical pattern generator based on a specified integer input m, adhering to the following structure and guidelines: For an input m=1: * * * * * For an input m=2: ** ** **** ** ** For an input m=3: *** *** *** *** ***** *** *** *** *** Key characteristi...
evolcodegolf
The following code golf challenge tasks you with illustrating directional changes using numerical inputs, where each numeral represents a specific movement. The mapping is defined as follows: 0 corresponds to remaining stationary, 1 indicates a move forward (starting with the initial orientation from left to right, beg...
evolcodegolf
I enjoy crafting personalized comic strips using my own illustrations. However, most online comic makers are overly complicated. I've decided to challenge the coding community to create a streamlined solution for me. Here's what I'm looking for: Specifications Input an image file or object for the comic strip's backd...
evolcodegolf
A Gray code is a unique arrangement of binary numbers wherein the act of incrementing or decrementing a number results in the alteration of only a single bit at a time. For instance, a Gray code corresponding to binary numbers up to 7 (utilizing 3 bits) is represented as follows: 000 001 011 010 110 111 10...
evolcodegolf
Introduction In this intricate challenge, we focus on a 2×2 matrix organized in the following manner: 0 1 2 3 We introduce a comprehensive family of fractal-like patterns denoted as F(L), where L constitutes a length-n list of indices, and the resulting pattern F(L) possesses dimensions of 2n-1 × 2n-1. In the scenari...
evolcodegolf
Develop a segment of code that is designed to appear as though it is displaying the name of a programming language; however, upon execution, it should produce the name of that language in a reversed format. For instance, a program written in Python should seem to output "Python" while in reality outputting "nohtyP." Th...
evolcodegolf
Given a collection of 3 or more positive integers, eliminate every number X for which there exists another number Y in the collection such that the average of X and Y is also present within the collection. Specifically, if X, Y, and the average of X and Y coexist in the input, neither X nor Y should appear in the outpu...
evolcodegolf
Given a non-empty 2D matrix comprising solely of 0s and 1s, determine the total number of distinct squares that can be formed where all four corners consist of 1s. It is important to note that the squares are not restricted to being "upright" and may be oriented at various angles. Furthermore, all rows within the matri...
evolcodegolf
Background The shadow transformation of a non-negative integer sequence \$a(n)\$ indexed from zero is another non-negative integer sequence \$s(n)\$ articulated through the following mathematical formulation: $$ s(n) = \sum_{i=0}^{n-1}{(1 \text{ if } n \text{ is a divisor of } a(i), 0 \text{ otherwise})} $$ T...
evolcodegolf
Consider a procedure \$g\$ that processes a string by repeatedly eliminating isolated sequences of three identical consecutive characters. For instance, \$g(aa\color{red}{aaa}bb\color{red}{aaa}) = aabb\$. Notably, when sequences overlap, only one instance is removed at a time. A string will be labeled as triplet cance...
evolcodegolf
A quotation is defined as "the repetition of one expression as part of another one". In American English, quotes are typically enclosed within double-quotation marks ("), as demonstrated in the previous sentence. Nonetheless, this convention changes when a quotation is nested within another quotation. In such instances...
evolcodegolf
Inspired by a question over at Stack Overflow. The title here is entirely my fault. The challenge Given a list of positive integers containing at least two entries, replace each number by the minimum of all entries excluding itself. Additionally, ensure that the solution operates efficiently with a time complexity o...
evolcodegolf
The C preprocessor, while not exhibiting Turing completeness, enables a range of intriguing manipulations. The objective is to devise an integer adder utilizing solely the preprocessor's capabilities. You may select any numeric representation you prefer—be it binary (base 2), decimal (base 10), unary, or any other syst...
evolcodegolf
Cyclic Polyglot Challenge with Extended Constraints This is the cops thread. You can find the robbers thread here. Cyclic Polyglot A N-element cyclic polyglot is a complete program that can be executed in N different languages. In each language, when the program is executed with no input (possibly subject to this...
evolcodegolf
Determining the minimum number of distinct circles necessary to encompass all specified coordinates (x,y) can be a challenging computational geometry problem. Task Your program will receive a set of n coordinates (x,y), where n may be specified as part of the input or inferred from an EOF condition. It is important t...
evolcodegolf
Could you provide a range of insightful strategies specifically tailored for golfing in Starry? I'm interested in actionable suggestions that not only relate to code-golf challenges but also incorporate distinct elements of Starry's environment (for example, merely stating "remove comments" would not qualify). Please e...
evolcodegolf
The Scenario You are presented with a bi-dimensional grid of dimensions m x n (width x height), containing m*n positions where a subset of these are designated as obstacles. The positions occupied by obstacles are denoted by 1, while those that are free are represented by 0. You have the ability to traverse the grid ...
evolcodegolf
Note: Anders Kaseorg cautions me that this inquiry might overlap with an earlier question. It appears so, and I apologize for not identifying that inquiry prior to submitting this one. Nonetheless, that question received merely one response and this iteration is more straightforward, just in case you all wish to attemp...
evolcodegolf
Consider a scenario in which you are presented with a specific sentence that reads as follows: this is a very long sentence with several words of no significance This sentence is composed exclusively of the 26 lowercase letters of the English alphabet accompanied by spaces. Additionally, you have access to a prede...
evolcodegolf
I will preface this by saying that I made this for fun; I have absolutely no formal knowledge on cryptography or error correction. Do not use this algorithm in anything remotely important. I was kind of bored a few days ago, so I decided to write a simple function to take some data and return an easily memorable (but n...
evolcodegolf
The mathematical constant known as Euler's number, represented by \$e\$, raised to the power of a specific variable \$x\$, can be effectively approximated through the Maclaurin Series expansion, which is articulated as follows: $$e^x=\sum_{k=0}^{\infty}{\frac{x^k}{k!}}=1+x+\frac{x^2}{2!}+\frac{x^3}{3!}+\frac{x^4}{4!}+\...
evolcodegolf
The NATO phonetic alphabet serves as an intricate spelling system that allocates to each of the 26 letters of the Latin script a distinct term (as detailed in the table below) that ensures clarity during communication via radio or telephone channels. For instance, to convey the term CAT through a telephonic exchange, o...
evolcodegolf
Here is a challenging endeavor: What constitutes the minimal conceivable compiled program? Crafting one-liner code snippets is indeed entertaining, yet these often rely heavily on comprehensive language libraries that ultimately inflate the final binary size. To what extent can one minimize the 'scaffolding' that und...
evolcodegolf
Do randomly generated drum loops possess musical appeal and coherence? A drum loop is represented as a \$5\times 32\$ matrix \$A\$ consisting exclusively of \$1\$s and \$0\$s, wherein the following conditions hold: \$A_{1,1}=A_{1,17}=A_{2,9}=A_{2,25}=1\$, for each \$i\$, the \$i\$th row contains precisely \$f(i)\$ d...
evolcodegolf
Each term in the squaring sequence, \$x_n\$, is generated by taking \$x_{n-1}\$, squaring it, and truncating to retain only the first four digits. The sequence consistently begins with \$x_1 = 1111\$. When we square this, we obtain \$1234321\$, thus \$x_2 = 1234\$. The initial terms are as follows: 1111 1234 1522 ...
evolcodegolf
Due to the universally acclaimed status of rickrolling as the pinnacle of internet memes, you [know the rules and so do I] are tasked with crafting the shortest code that can textually rickroll the unsuspecting reader, while also ensuring that your solution avoids any hardcoded values. Let [you down] there be an input ...
evolcodegolf
For today's challenge, you are tasked with developing a program or function that transforms a string by reversing the order of vowels while maintaining the positions of consonants and non-alphabetic characters. The transformation should ensure that the output string has its original structure, with vowels appearing in ...
evolcodegolf
### Introduction From Esolangs.org: LambdaPi is an esoteric language that builds on the foundations of Lambda calculus while incorporating the intriguing concept of using the digits of pi as a dynamic array for program instructions. In LambdaPi, each pi digit corresponds to a specific lambda calculus operation, transf...
evolcodegolf
Given an unsigned binary integer constrained within the inclusive range from 0 to 1111111111111111 (representing a 16-bit unsigned integer), convert and present this integer in negabinary format. The input can be provided in any format that is most advantageous for your programming language; for instance, if it simplif...
evolcodegolf
In the context of this challenge, consider the following scenario. In the rhythm game osu!, the difficulty modifier "Double-time" effectively accelerates gameplay by a factor of 1.5. Your objective is to devise a program that generates a positive even integer (greater than 0), such that when each byte/character (your d...
evolcodegolf
Your colleague Mia has very selective preferences when it comes to snacks. Each day, she has a strict list of snacks she enjoys, along with particular portion sizes she prefers. Moreover, Mia follows an intricate regimen with specific nutritional targets she aims to hit daily. However, her snack desires can vary from d...
evolcodegolf
Imagine a histogram representing a collection of numerical values categorized into bins defined by specific ranges. For instance, consider the following dataset: 1, 3, 7, 8, 10, 10, 15, 22, 22, 25, 30, 35, 40, 45 A possible representation could look like this: 0-10: 4 11-20: 2 21-30: 3 31-40: 2 41-50: 1 ...
evolcodegolf
As my fascination with Code Golf has reached an all-consuming level, I believe it is an opportune moment to explore various golfing languages. Considering my nearly exclusive use of JavaScript, Japt appears to be the most logical entry point for me. While I intend to delve into the documentation at my earliest convenie...
evolcodegolf
Create a computational routine or function that: Transforms into a quine when the provided input precisely corresponds to its original source code; Remains in an infinite loop and does not terminate for any other input variations. This challenge emphasizes code-golf, aiming for the minimal length of the solution. Ste...
evolcodegolf
From the realm of mathematics: The golden ratio, denoted by the Greek letter φ (phi), is an irrational number approximately equal to 1.618033988749895. It is often encountered in geometry, art, architecture, and nature, and is defined as the positive solution to the equation x^2 = x + 1. Challenge Calculate the golde...
evolcodegolf
Captcha mechanisms are intentionally designed to thwart machine interpretation, which raises significant concerns about the ongoing, unfounded animosity towards automated systems that are merely aiming to inform users about exceptional promotions on ṗḧ@ṛḿ4ćëüẗ1ċäḷṡ ƻđȺɏ. Note: Each captcha was generated utilizing a cus...
evolcodegolf
Maxima is a powerful open-source computer algebra system designed for symbolic computation. Its unique features make it an intriguing platform for math problem-solving and coding challenges. What strategies do you recommend for optimizing code in Maxima? Share one strategy per response, focusing specifically on Maxima’...
evolcodegolf
Engage with the intriguing challenge known as "End View," commonly referred to as Easy As ABC, which presents a fascinating puzzle format. You are tasked with solving a unique empty grid filled with letters that define the periphery; your objective is to judiciously populate the grid such that every row and column cont...
evolcodegolf
Given a positive integer n > 1, find the distinct sums that can be formed by multiplying integers greater than 1 whose sum equals n. For example, if n = 10, we can express n as a sum in the following ways: 10 = 10 -> 10 10 = 5 + 5 -> 5 + 5 = 10 10 = 4 + 3 + 3 -> 4 + 3 + 3 = 10 10 = 2 + 2 + 2 + ...
evolcodegolf
As the Vitsy programming language gradually gains traction, I aim to establish a hub for sharing advanced strategies for tackling unique coding challenges in Vitsy. What specialized techniques do you recommend for optimizing solutions in Vitsy’s coding competitions? I'm seeking insights that are particularly applicable...
evolcodegolf
As deliberated within the Lounge room on Stack Overflow: if you find yourself unable to execute the Quicksort algorithm outlined at en.wikipedia.org/wiki/Quicksort in any programming language with which you possess even minimal familiarity, it may be prudent to rethink your career path. @sbi However, SBI also pointed...
evolcodegolf
Background The Sidi polynomial of degree \$n\$ – or the \$(n + 1)\$th Sidi polynomial – is defined as follows. $$S_n(x) = \sum^n_{k=0}s_{n;k}x^n \text{ where } s_{n;k} = (-1)^k\binom n k (k+1)^n$$ The Sidi polynomials exhibit numerous fascinating properties, and their coefficients also possess significant characteristi...
evolcodegolf
You are tasked with developing a program or function that systematically organizes a deeply nested list according to specified sorting criteria. Here’s a representative instance of such a list for your consideration: ((5, 2), 2, 7, (2, 1, (3, 4)), 9) Each individual element in this structure is assigned a unique "pr...
evolcodegolf
Part of the Advent of Code Golf 2021 event, with further elucidation available in the linked meta post. This challenge is intricately associated with AoC2020 Day 13, Part 2. Consider the implications of the absence of posts by Bubbler and Riker. A shuttle bus service facilitates transportation between the sea port (...
evolcodegolf
Here is an intriguing intellectual task designed to test your programming acumen: Your objective is to generate an ASCII illustration of a chessboard. In this illustration, white pieces are denoted by uppercase letters, while black pieces are represented by lowercase letters, with empty squares displayed as a period (....
evolcodegolf
A mathematical structure known as a magic square is defined as an n-by-n square grid populated with unique positive integers drawn from the sequential range 1, 2, …, n^2, ensuring that each cell contains a distinct integer and the cumulative total of the integers in each row, column, and both diagonals is uniform acros...
evolcodegolf
Let \$ A \$ denote the complete lowercase English alphabet, where \$ A_1 = \$ a and \$ A_{26} = \$ z. We define a word \$ W = w_1 w_2 ... w_n \$ (with each \$ w_c \in A\$) as being in standard order if the following conditions hold: 1. The first character must be \$ w_1 = A_1 \$, and 2. For every integer \$ i \$ satis...
evolcodegolf
Skittles are vibrant, multicolored confections featuring five unique flavor profiles; these include grape, green apple, lemon, orange, and strawberry, denoted respectively by (p)urple, (g)reen, (y)ellow, (o)range, and (r)ed. Previously, I indulged in these treats by meticulously organizing the various colors before con...
evolcodegolf
From this moment, every new task begins on the second Tuesday of the month, 3:00 PM UTC. The challenge is to design the Firefox logo using ASCII characters. It should appear as follows: The precise output must resemble this: .--. .'_\/_'. '. /\ .' "||" || || || ...
evolcodegolf
Background Manufactoria has been cleverly marketed as a game, yet to those adept in code-golfing, it reveals itself as a two-dimensional programming language. The essence of the Manufactoria programming language revolves around a singular queue populated with a variety of colorful markers. The instruction pointer nav...
evolcodegolf
The task at hand involves the intricate manipulation of strings through the application of fundamental Vim-like commands, with an added requirement of ensuring that each transformation not only adheres to the specified operations but also maintains a record of the number of commands executed throughout the process. In...
evolcodegolf
Have you ever been frustrated when working with an image, only to find that the noise and unwanted elements around the main subject ruin the overall impression? I completely understand that feeling. What I need is a way to isolate the central focus of my picture while eliminating these distractions effortlessly. To mak...
evolcodegolf
Create a program that accepts an input string containing at least two characters, and strategically inserts the string ~BOO!~ (which has a leading and trailing space) at a randomly selected position within the original string, ensuring that it is neither at the beginning nor at the end of the string. Disallowed sample...
evolcodegolf
Formulate a mapping that accepts a positive integer k, exceeding 1, along with a non-negative integer i, to generate a k-tuple (or k-dimensional vector) comprised solely of non-negative integers. For each specific value of k, the mapping from the set of natural numbers ℕ to the k-dimensional natural number space ℕk mus...
evolcodegolf
Design a function or program that generates a Bayer matrix based on an input side length \$s\$, which will exhibit a crosshatch-like pattern that creates the visual illusion of additional color shades. Bayer matrices are characterized by their square dimensions, where the side length must be a power of 2. The following...
evolcodegolf
In the realm of programming languages, lower-level constructs like C and C++ intriguingly lack an intrinsic understanding of multidimensional arrays, aside from provisions for vectors and dynamic arrays. When a multidimensional array is declared using: ```c int foo[5][10]; ``` this implementation merely represents sy...
evolcodegolf
The Goldbach conjecture posits that: every even integer exceeding 2 can be expressed as the sum of two prime numbers. In our context, a Goldbach partition for a specific integer n refers to a pair of distinct primes that sum to n. We focus on evaluating numbers that exhibit an increasing Goldbach partition. The measu...
evolcodegolf
Develop a program that computes the first n perfect numbers while ensuring that the implementation includes both iterative and recursive methods. A perfect number is defined as one for which the sum of its factors equals the number itself; for example, 6 qualifies as a perfect number since 1+2+3=6. The use of non-stand...
evolcodegolf
Certain integers, like \$14241\$, exemplify palindromic properties in base 10, meaning that their digit arrangement reads identically in reverse. A subset of numbers can be expressed as the sum of two palindromes, demonstrated by examples such as \$110=88+22\$ and \$2380=939+1441\$. Conversely, some integers defy such ...
evolcodegolf
This is my first venture into the realm of algorithm challenges, and I'm eager for your insights to refine my submission if needed. Recently, I tackled a fascinating problem where I had to manipulate strings based on certain criteria. The challenge was not only to achieve the desired outcome but also to do so in a conc...
evolcodegolf
Your task entails crafting a solution that can process a collection of integers, either presented in an array format consistent with the conventions of your chosen programming language or as a string where individual numbers are delimited by any non-numeric character. Within this framework, one implementation must comp...
evolcodegolf
Your task is to create either a console "app" or a function which allows the user to bet on certain numbers or retire / claim rounds while also tracking and displaying the cumulative total bets made by the player throughout the session. Bets Your program or function will prompt for a command after an action, and the b...
evolcodegolf
Inspired by this 3Blue1Brown video, and incorporating your approach, compute the matrix exponential \$ \exp(M) \$ for a given square matrix \$ M \$, which is defined through an extension of the Maclaurin series for \$ e^x \$ as follows: $$ \exp(M) = \sum_{r=0}^\infty \frac {M^r} {r!} = M^0 + M^1 + \frac 1 2 M^2 + \frac...
evolcodegolf
Your task involves the integration of code-shuffleboard with code-golf, requiring you to construct a complete program or function that computes the cumulative sum of all codepoints within the provided input string. In scenarios where the input is absent, you may return any integer value, including zero. Rules 1. The...
evolcodegolf
'---------' '-'.repeat(9) // extended! '------------' (x='----')+x+x '-'.repeat(12) // equivalent length Can you suggest a more ingenious method of creating strings consisting of 12 identical characters in JavaScript, potentially using advanced techniques or libraries?
evolcodegolf
Challenge You have provided a navigational schematic to an acquaintance resembling the following representation: | / | / | \ | \ D This rudimentary schematic commences at the apex and culminates at the nadir. Regrettably, your acquaintance is unable to comprehend it. Can y...
evolcodegolf
Background An atomic bomb has detonated in close proximity to the fencepost fabrication facility! Given the critical importance of fenceposts for the continuity of our societal infrastructure, our objective is to salvage as many intact specimens as feasible. We are deploying radiation-resistant automatons to meti...
evolcodegolf
This is the inverse of negative seven's question. Construct a program or function that, upon receiving any single, potentially-empty string of printable ASCII (codes \$[32,126]\$), will output or return two distinct strings of printable ASCII. Furthermore, for any given ordered pair of strings \$s_1\$ and \$s_2\$, ther...
evolcodegolf
A more intricate rendition of the "Signpost" puzzle derived from Simon Tatham's Portable Puzzle Collection has been devised. The creation of the puzzle entails the selection of a randomly generated positive integer, denoted as N, alongside a permutation of the integers from 1 to N, ensuring that 1 occupies the foremo...
evolcodegolf
In recognition of the upcoming milestone marking the first anniversary of brain-flak, we are excited to host a celebratory event inspired by the collaborative spirit of a PPCG-style birthday gathering, inviting a multitude of users to engage by posting inquiries related to brain-flak! Join us in the festivities! :) Br...
evolcodegolf