Skip to content

Commit

Permalink
Merge pull request #206 from petertseng/sum-of-multiples
Browse files Browse the repository at this point in the history
Add sum-of-multiples.json
  • Loading branch information
kytrinyx committed Mar 22, 2016
2 parents 514db51 + 961cf83 commit 411222f
Showing 1 changed file with 64 additions and 0 deletions.
64 changes: 64 additions & 0 deletions sum-of-multiples.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"cases": [
{
"factors": [3, 5],
"limit": 1,
"expected": 0
},
{
"factors": [3, 5],
"limit": 4,
"expected": 3
},
{
"factors": [3, 5],
"limit": 10,
"expected": 23
},
{
"factors": [3, 5],
"limit": 100,
"expected": 2318
},
{
"factors": [3, 5],
"limit": 1000,
"expected": 233168
},
{
"factors": [7, 13, 17],
"limit": 20,
"expected": 51
},
{
"factors": [4, 6],
"limit": 15,
"expected": 30
},
{
"factors": [5, 6, 8],
"limit": 150,
"expected": 4419
},
{
"factors": [5, 25],
"limit": 51,
"expected": 275
},
{
"factors": [43, 47],
"limit": 10000,
"expected": 2203160
},
{
"factors": [1],
"limit": 100,
"expected": 4950
},
{
"factors": [],
"limit": 10000,
"expected": 0
}
]
}

0 comments on commit 411222f

Please sign in to comment.