| Random Link ¯\_(ツ)_/¯ | ||
| Feb 18, 2022 | » | Advent of Code 2021 - Haskell
(16 items)
Learning Haskell via AoC 2021; AoC 2021 Day 01: Sonar Sweep; AoC 2021 Day 02: Dive!; AoC 2021 Day 03: Binary Diagnostic; AoC 2021 Day 04: Giant Squid; AoC 2021 Day 05: Hydrothermal Venture; AoC 2021 Day 06: Lanternfish; AoC 2021 Day 07: The Treachery of Whales; AoC 2021 Day 08: Seven Segment Search; AoC 2021 Day 09: Smoke Basin; AoC 2021 Day 10: Syntax Scoring; AoC 2021 Input Parser; AoC 2021 Main; AoC 2021 Solution Runner; AoC 2021 Test Code; AoC 2021 Parsing Arguments; |
| Feb 18, 2022 | » | 022. Name Scores
5 min; updated Feb 18, 2022
#22 Names scores - Project Euler.
Problem StatementUsing For example, when the list is sorted into alphabetical order, COLIN, which is worth \(3 + 15 + 12 + 9 + 14 = 53\), is the 938th name in the list. So COLIN would obtain a score of \(938 \times 53 = 49{,}714\). ... |
| Feb 6, 2021 | » | 021. Amicable Numbers
8 min; updated Feb 6, 2021
Problem StatementLet \(d(n)\) be defined as the sum of proper divisors of \(n\) (numbers less than \(n\) which divide evenly into \(n\)). If \(d(a) = b\) and \(d(b) = a\), where \(a \neq b\), then \(a\) and \(b\) are an amicable pair and each of \(a\) and \(b\) are called amicable numbers. For example, the proper divisors of \(220\) are \(1, 2, 4, 5, 10, 11, 20, 22, 44, 55, 110\); therefore \(d(220) = 284\). The proper divisors of \(284\) are \(1, 2, 4, 71, 142\); so \(d(284) = 220\). ... |