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.
Fixed this
Very nice exercise! It made me to create a monty hall mini-game.
I suggest to include test with space at the beginning (python version) at least. While in description is said, that string can only start with uppercase ascii, tests proved, that it's necessary to count with case when string starts with space. Still i voted it up. Great test not only for programming abilities.
Naruto0 & anter69 are correct. The Python test cases should look like this:
PEP8:
Function names should be lowercase, with words separated by underscores as necessary to improve readability.
mixedCase is allowed only in contexts where that's already the prevailing style (e.g. threading.py), to retain backwards compatibility.
I confirm: in python the test cases look for
shiftedDiff
while the final tests look forshifted_diff
. Please fix"You can't convert binary to decimal and vice versa" i assumed that i can't use builtins for it, but can i write my own func? Please make it clear for me. Thanks
Thanks for the feedback, and good if you liked it!
I didn't know what barycenter is either. Thank you for this mathematic kata!
You should correct the tested method name(shiftedDiff) to match method name(shifted{underscore}diff) or vice versa. Unless adjusting the test code is part of the exercise. :)