Skip to content

Commit f708a8f

Browse files
committed
Added groovy script solution to problem one.
1 parent 6022c2b commit f708a8f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
def findMultiplesUnderLimit = {limit ->
2+
(1..<limit).sum {it%3==0||it%5==0?it:0}
3+
}
4+
assert findMultiplesUnderLimit(10) == 23

0 commit comments

Comments
 (0)