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.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
whatta hell
no thanks
Stringless, nice.
That called a true rustacean
Bro, I don't like to use ChatGPT for code. Out of interest, I just asked it to solve this task, and it produced the naive solution that Nicolas proposed below.
It would be O(n log n). This solution is O(n).
why do you used chat gtp's solution? we are here to learn something and not just for copy-past
Винницианский дракон, он же - "Папич". К вашим услугам
Папич?
who are you??
You can check out the fork that doesn't assume a specific
encode_utf8
implementation and that favors ASCII input.Intersting solution, I guess..
it's 10 times faster than the most popular solution
Loading more items...