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.
encode_utf8
Intersting solution, I guess..
it's 10 times faster than the most popular solution
O_O
This comment is hidden because it contains spoiler information about the solution
Indeed, I really got too used to lazy_static.
Loading collection data...
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
O_O
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Indeed, I really got too used to lazy_static.
Loading more items...