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.
Man sometimes I feel so silly, I knew right away to use split but I ended up writing six more lines of code instead of simply... returning the array from split()
Python:
New test framework should be applied in sample tests
Missing relevant imports
Use hashmap to count frequency, if your language does not support ordered hashmap, you will need to store the ordering based on index in another hashmap too. Then, loop hashmap and add all elements to output list sequentially until their frequency counts become 0
OP solved it, closing
Nice, but feels like an 8 kyu easily
So the space in the code to be fixed is not strictly correct, but it needs to be removed to have "fixed all the bugs"? Seems a little bit too strict to call an added space in a string a bug.
nice work !
Now this is a great kata.
I personally prefer pre-allocating the array if I already know the size. It save time buy avoiding eventual reallocations as the size changes.
Great kata to learn with, thanks to the author of it.
Thanks for the fun kata! Enjoyed the clean setup and the simple but satisfying transformation logic.
There is the example which says:
# These two dictionaries are preloaded, you need to use them in your code.Initial solution stub has this line at the top:
from preloaded import FIRST_NAME, SURNAMEIs this not enough? Would you have any idea how to explain this better?
How are people supposed to know where to import the names from?
done
i think there's a bit of a contradiction with the description as it asks to validate if not a letter from A-Z... but then it also asks you to Capitalize the input in case of "errors. Maybe it should have said to validate if not a literal such as A-Z a-z and then capitalize if it starts with lowercase.
Loading more items...