Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
In my opinion, this kata does not test your algorithmic skills as your understanding of the binomial theorem. Sure, there are some tweaks to the problem, where I had to use some 'if's at the beginning but overall, nothing higher than 4 kyu. I was even considering on voting for 5 kyu. But then I thought about it for a while and decided that 4 kyu was pretty justified. Nice kata tho.
I actually liked this one more, than the other. It feels more concise and to-the-point. Also, the other one is severely overranked, IMHO.
thanks... u saved my life :)
thanks for the kata ! but "given to you as a string in the form of "(ax + b)"" instruction is very misleading.
we are constructing all the code about "(ax + b)" form. but tests are asking us (5,3) this is very destructive,
atleast please add the test screen (5,3) and the developers understand what is asking ? for this way.
and also 4-5 point for this kata very unsatisfiying.
Because your code should return a string instead of an int?
results are ok but there is a warning ! I dont know why ?
test.assert_equals(ex_binomial("5", 2).replace(" ", ""), "25")
AttributeError: 'int' object has no attribute 'replace'
I recycled my solution, adding only a tiny wrapper.
Python 3 should be enabled.
Needs random tests.
An almost duplicate of https://www.codewars.com/kata/540d0fdd3b6532e5c3000b5b