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.
youre close to your given runtime but using arr1.sort() and arr2.sort() at the start ruins it - try arr1.reverse() and arr2.reverse() instead
I've noticed that other letters are -5 from original ones, but wanted to emphasize that tests aren't strong enough to check it :(
You should consider to add this check!
well, I don't even see MY OWN solution in C completions for some glitchy reason. the numbers show that it exists, but the page ALSO says there "are no codes to show". also strange: you've gotten ahold of an OLDER version of my code, missing the
n
parameter. so, keep in mind that you were "tweaking" code that probably wouldn't work anyway with the final code structure.This comment is hidden because it contains spoiler information about the solution
No. Your solution is not O(len(arr1) + len(arr2)).
Approved, thanks for your contribution!
JavaScript translation awaiting approval.
yes, the examples given in the description are different from the sample tests. I have checked them, rigorously. You shouldn't use the ISSUE tag unless you know there's a problem with the kata code and can describe it or give some evidence. Anyway, if you remain stuck, you can post your code (with a spoiler tag), and I can take a look for you. cheers
You're very welcome. I remember getting stuck on that for a while.
wow I missed that "different". thanks, RM
Those words have two
o
s in them, so go against this part of the kata description:Something seems off with the Python version. If neither Alice nor Bob have a valid word for the input string, then
-1
should be returned. But if there was at least one match during the game, then either0
or1
should be returned, correct? I get the following result with one of the random tests:As far as I understood, your current DISPLAYED sample tests in Python are not the same as REAL sample tests, but testing outputs coincide (or I did smth wrong...).
All in all, I passed all the tests several times, but couldn't pass two of sample tests below. I think you should check it!
Wow this guy is really smart
00
can be a palindrome only if it's not a string, and if it's part of a bigger number (e.g.100
)0d0
should not be one, as it's clearly a string (there is a letter in it), so it's not numericalLoading more items...