Beta
Multiplying Binomials
51guberti
Loading description...
Mathematics
Puzzles
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
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.
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.
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'
Because your code should return a string instead of an int?
thanks... u saved my life :)
Python 3 should be enabled.
Needs random tests.
An almost duplicate of https://www.codewars.com/kata/540d0fdd3b6532e5c3000b5b
I recycled my solution, adding only a tiny wrapper.
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.