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.
It's alloways great to make more katas for this platform, but I feel like this idea has been done hundereds of times over. Maybe try adding your own little spin and some random tests.
I honestly expected the test cases to be better with some of the values being
"[", "'Hidden'", "'", ",", " "
etc.Ok, now it's 100% fixed. The problem was that the numbers generated were completely random insted of being from the charaters list used for the other tests. All ASCII codes should now translate to a charater in string.ascii_letters, string.punctuation, or be a space.
Could you link the duplicate?
Fixed, just found out that some characters in string.punctuation in Python were registered incorrectly like '\x04' (End Of Transmission). All string lengths should be divisible by 3 now.
Fixed, some charaters used were registered incorrectly like '\x04' (End Of Transmission).
Thanks for the advice! I'll be unpublishing this kata soon but I was wondering, other than this being a common kata idea and not having better fixed test, this kata would be good for Codewars?
Using Repel.it I tested both solutions on over 100
iterations of the test cases and the results are:
string.to_i.digits.sum: 1.1976970482
string.chars.sum(&:to_i): 1.2447343944
So while your solution is unique, the times for
both solutions are about the same.
English: Nice! I will work on adding random tests.
German: Nett! Ich werde daran arbeiten, zufällige Tests hinzuzufügen.
German: Schnelle Frage. Sollte die Funktion Zeichen ignorieren, die keine Buchstaben sind?
English: Quick question. Should the function ignore characters that are not letters?
German: Jetzt brauchen wir nur noch Stichproben.
English: Now we need just need random tests.
Great job increasing the python solution efficiency by 0.4%. You must be amazing with Python!
I'm confused. Could you clarify the kata description?
I understand, but it would have been better to add a comment rather that creating a fork.
Your fork is almost identical to my fork. Please don't add a fork if it does not add anything essential to the Kumite.
Loading more items...