Random Link ¯\_(ツ)_/¯ | ||
Jul 20, 2024 | » | Queen's Movements on a Chessboard w/ Obstacles
5 min; updated Jul 20, 2024
Queen's Attack II. www.hackerrank.com . Accessed Jul 20, 2024. Problem A queen is standing on an \(n \times n\) chess board. The chess board’s rows are numbered from \(1\) to \(n\), going from bottom to top. Its columns are numbered from \(1\) to \(n\), going from left to right. Each square is referenced by a tuple \((r, c)\), describing the row, \(r\), and column, \(c\), where the square is located.... |
Feb 19, 2023 | » | 023. Non-Abundant Sums
9 min; updated Feb 19, 2023
#23 Non-abundant sums - Project Euler. projecteuler.net . Accessed Feb 19, 2023. Problem Statement A perfect number is a number for which the sum of its proper divisors is exactly equal to the number. For example, the sum of the proper divisors of \(28\) would be \(1 + 2 + 4 + 7 + 14 = 28\), which means that \(28\) is a perfect number.... |