About 7,580 results
Open links in new tab
  1. 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 model

  2. 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 reasonable …

  3. 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 until they …

  4. 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 large …

  5. 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 and …

  6. 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 researchers have …

  7. 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 ham. I'm …

  8. 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 of a sorting …

  9. Checking a Windows 95 OEM Key for validity [closed]

    Jun 3, 2020 · Introduction Windows 95 used a very simple algorithm for verifying license keys. The scheme of an OEM license key always looked like this: xxxyy-OEM-NNNNNNN-zzzzz The day can …

  10. Validate a CPF number - Code Golf Stack Exchange

    11+10+9+32+28+24+35+28+21+6 = 204 mod 11 = 6 Considering 11 - 6 = 5, c = 11144477735. Is c the same as your initial number? Yes. Therefore, the CPF is valid. Input You can accept one of the …