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.
replace 會跑字串中的每一個字符
How is it work?
Where is the cycle?
Checking the last index is a creative idea, but slow since you could be checking the whole string for every character.
This is O(n^2), not best practice.
♥️
no, as strings are immutable in JS
Does this alter the original word?
perhaps the only one too
I'm a big fan of regexp
I really like this solution.
It uses common well known funcitons and still results in short understandable code :)
Hey--thanks for letting me know! ^^
I must revisit here to say thank you, it has opened my mind about regexes, you links are really helpful!
Keep up the good work!
I am very confused about the linked list thingy. Can you show me the code for preloaded function so I can try it on DEV C++?
Many thanks!
Currently Codewars platform has lots of issues. It's not a problem of this kata.
https://github.com/Codewars/codewars.com/issues/893
I passed 13/13 java tests and it said failed 0 but there is no SUBMIT button.
The same goes for my C solution, why is that?
Loading more items...