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.
Hi seraph776! Your solution appears to be quite creative, but regrettably, it is SLOWER and INEFFICIENT.
The time complexity of your function is O(n^2), while mine is O(n). With that being said, yours is SLOWER.
Let's see if is WAY SLOWER. Don't believe me, just watch, come on!
Both functions used the same text for the tests, and the text was generated randomly using:
Besides, as you can see, YOUR FUNCTION DOES NOT SUPPORT LONG STRING CHAINS.
Why?
Happy to help you, nice try! 😁
Thx snoopythekid! Glad you liked it! This is an old debate; I simply used acquired knowledge.
Got it, you're right! Thx! 🙏🏻
However, test cases do not test Unicode, only ASCII.
"Never do that!" sounds extreme. The intention of Kumite is to challenge and not repeat past solutions.
This was to similar to the previous 🤷🏻
TRUE! I've seen it on a map. 🔭😏
I don't get it! What's wrong with the code? 🤔
Nice!
Hello! I made this translation 2 months ago and I guess it should be approved by an administrator or the author of the Kata.
Thanks in advance
This comment is hidden because it contains spoiler information about the solution