Coin Change Ways Problem/Solution

This commit is contained in:
mrb00l34n
2015-07-18 23:21:29 -04:00
parent 502c4d77e4
commit 3370106d36
4 changed files with 364 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
from nose.tools import assert_equal
class Challenge(object):
def test_coinchange_ways(self,solution):
assert_equal(solution(0,2,[1,2]), 0)
assert_equal(solution(100,3,[1,2,3]), 884)
assert_equal(solution(1000,100,range(1,101)), 15658181104580771094597751280645)
print('Success: test_coinchange_ways')
def main():
test = Challenge()
test.test_coinchange_ways(change_ways)
if __name__ == '__main__':
main()