We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 96d1d68 commit 664da39Copy full SHA for 664da39
Project-Euler/Problem019.js
@@ -16,12 +16,7 @@
16
*
17
* @author ddaniel27
18
*/
19
-
20
-// Check if a year is a leap year
21
-// A leap year occurs on any year evenly divisible by 4, but not on a century unless it is divisible by 400.
22
-function isLeapYear(year) {
23
- return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0
24
-}
+import { isLeapYear } from '../Maths/LeapYear'
25
26
function problem19() {
27
let sundaysCount = 0 // Count of Sundays
0 commit comments