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.
The tests will generate random inputs, any form of shuffling and manipulation of RNG is unnecessary in the solution.
OP did solve it using a barely timeout method, closing...
OP solved it, closing.
OP solved it, closing
OP solved it, closing.
I only see your log statement in the solution tab. Remember to use an optimized algorithm with a complexity of O(str1.length + str2.length) at most.
OP solved it, closing
The expected complexity should be O(str1.length + str2.length). Your solution is O(N^2) because searching is O(N)
OP solved it, closing
This comment is hidden because it contains spoiler information about the solution
Prolog translation
Approved
Your solution being too slow is not a kata issue.
There is this test case in example tests which your solution takes over 10 seconds to solve:
It has to be solved much, much faster.
This comment is hidden because it contains spoiler information about the solution
How to show the sollution ?
Not a kata suggestion. See https://docs.codewars.com/training/troubleshooting#post-discourse.
Loading more items...