
Implement the Boids algorithm - Code Golf Stack Exchange
Introduction The Boids Algorithm is a relatively simple demonstration of emergent behavior in a group. It has three main rules, as described by its creator, Craig Reynolds: The basic flocking …
code golf - Print Today's Motto - Code Golf Stack Exchange
Jul 28, 2025 · Motto of the day (MOTD) or Today's Motto is a algorithm to generate a unique & dynamic motto for every day. Input of the date to calculate motto for could be in any …
Write an IBAN validator - Code Golf Stack Exchange
Jul 25, 2014 · The algorithm moest return true (or a truthy value) if the number is valid, and false (or a falsy value) if the number is invalid according to the algorithm. You do not need to check …
Visualise the Euclidean GCD - Code Golf Stack Exchange
Oct 12, 2023 · The Euclidean GCD Algorithm is an algorithm that efficiently computes the GCD of two positive integers, by repeatedly subtracting the smaller number from the larger number …
Implement Strassen's algorithm - Code Golf Stack Exchange
Dec 21, 2022 · Strassen's algorithm was the first method of matrix multiplication in subcubic time complexity, namely O(n**log2(7)) for a pair of n*n matrices (assuming the numbers therein are …
Calculate the Smith normal form of an integer matrix
May 9, 2023 · For this challenge, you only need to calculate D. One common way to calculate D is via an algorithm that looks like a combination of the Euclidean algorithm for calculating gcd …
popularity contest - Patch the Image - Code Golf Stack Exchange
Feb 2, 2016 · The Algorithm Goal: Replace a selected (masked) area (preferably a visually separated foreground object) with visually plausible backgrounds. In previous work, several …
Fast line drawing algorithm - Code Golf Stack Exchange
Jan 28, 2011 · The task is to find a way to draw a horizontal line in an array of 16-bit integers. We're assuming a 256x192 pixel array with 16 pixels per word. A line is a contiguous run of …
string - Solve a Single Player Tron Game - Code Golf Stack Exchange
Nov 10, 2016 · That is, do not cater just to the test cases. Standard Loopholes Apply this is a fastest-algorithm mutation, where both speed and space filled matters, not code length. Go …
code golf - Recursive Stalin Sort - Code Golf Stack Exchange
Oct 8, 2021 · There is a "sorting" algorithm often called Stalin Sort, where instead of sorting an array, you just remove any items that are out of order. In this challenge, you'll implement part …