Random Link ¯\_(ツ)_/¯ | ||
Nov 3, 2019 | » | To-Do List (Intermediate)
2 min; updated Nov 3, 2019
Description Link to original Reddit submission Thanks for that list you made me, my thoughts are way more organised! I’ve got a few problems though that I thought you might be able to help with? Sometimes I put the wrong information in a list item. Maybe to prevent this I’d be able to modify/update the list item? That’s not the only problem though, when there are 50+ items it gets kind of hard to work my way through.... |
Oct 7, 2019 | » | Smooshed Morse Code (Intermediate)
3 min; updated Oct 7, 2019
Description Link to original Reddit submission The challenge is to match a string like .--...-.-.-.....-.--........----.-.-..---.---.--.--.-.-....-..-...-.---..--.----.. to a permutation of the English alphabet that would produce it, e.g. wirnbfzehatqlojpgcvusyxkmd. Note that there may be more than one valid permutation. Solution I’m used to problems where the resources are not depleted, e.g. I can use a as many times as I want. The trickiest part was keeping track of the substring indexes.... |
Jan 26, 2018 | » | Fermat's Little Theorem (Intermediate)
2 min; updated Jan 26, 2018
Description Link to original challenge Most introductionary implementations for testing the primality of a number have a time complexity of $ O(\sqrt{n}) $. For large numbers this is not a feasible strategy, for example testing a 400 digit number . Fermat’s Little Theorem states: If $p$ is a prime number, then for any integer $a$, the number $a^p − a$ is an integer multiple of $p$... |
Jan 22, 2018 | » | Linear Feedback Shift Register (Intermediate)
3 min; updated Jan 22, 2018
Description Link to original problem In computing, a linear-feedback shift register (LFSR) is a shift register whose input bit is a linear function of its previous state. The most commonly used linear function of single bits is exclusive-or (XOR). Thus, an LFSR is most often a shift register whose input bit is driven by the XOR of some bits of the overall shift register value.... |