Random Link ¯\_(ツ)_/¯ | ||
Feb 18, 2022 | » | 022. Name Scores
5 min; updated Feb 18, 2022
#22 Names scores - Project Euler. projecteuler.net . Accessed Feb 18, 2022. Problem Statement Using names.txt, a 46K text file containing over 5,000 first names, begin by sorting it into alphabetical order. Then working out the alphabetical value for each name, multiply this value by its alphabetical position in the list to obtain a name score. 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.... |
Feb 18, 2022 | » | Advent of Code 2021
(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 6, 2021 | » | 021. Amicable Numbers
8 min; updated Feb 6, 2021
Problem Statement Let \(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\).... |