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.
Haha was just dropping in to leave this comment.
This comment is hidden because it contains spoiler information about the solution
random tests added
So tests are designed to check if your solution behave like built-in one.
This means that it should split given string when is no delimiter (like in quoted doc), but it should arise an error when it's just an empty string. Please try with this distinction.
Ok, I see. You are struggling with two different tests. One is for no delimiter at all (or passed as None), and the second for case when delimiter is empty (like
''
). If doubt, try built-in'some string'.split('')
Hello. I'm not sure if I understood correctly, but I think the point is that it should behave as built-in split, also for cases with incorrect delimiteres (like empty one here).
Yes now it is possible but I won't do it. I had chosen to give irreducible fractions in all languages. I think it is now impossible to invalidate nearly all solutions in all languages.
You should be able to do it now...
That is hilarious because I posted a similar issue
This comment is hidden because it contains spoiler information about the solution
Thanks! BTW do you know that Guido "hates" reduce which has quite disappeared from Python >= 3...
Thanks again for your post!
Please which language? I don't understand very well your problem:-(
The 360 days are there only to calculate interest because banks act like this; otherwise they use like everybody else calendar dates...
What do you propose for the description?
As for the "import" it is up to the Codewarrior to import what he needs, no?
Thank you for your kind words.
I must note that my solutions aren't always original. In this case, I solved the kata in JS (as it was not available in Python at the time) and my solution was far from perfect; then I saw some nice solutions there and based my "elegant" version on those, and translated the kata into Python using the improved version.
You are certainly right but I can't change the tests anymore since more than 500 Codewarriors passed the kata.
Loading more items...