diff --git a/solutions/go/leap/1/leap.go b/solutions/go/leap/1/leap.go new file mode 100644 index 0000000..cba58d7 --- /dev/null +++ b/solutions/go/leap/1/leap.go @@ -0,0 +1,7 @@ +package leap + + +func IsLeapYear(year int) bool { + return year%4 == 0 && (year%100 != 0 || year%400 == 0) + +}