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.
Im all about f strings now. Makes it even more readable than Python already is.
Unpublishing a a duplicate.
You're welcome. Marking this as resolved, then.
@Mednoob thank you it helped me.
Code fail is because merely the chars
sort
appear in the code (it doesn't even matter whatever chars may directly surround them, or whether they're in a comment), same withsorted
.Meanwhile, this should (probably) stand as an
issue
for two reasons:NameError: name 'test' is not defined
means the kata needs to be Python updated (afaik).Cheater. Do not use {}
does not inform the user specifically of the reason for fail@beshoynabeih try changing
sorted_array
to something else. I think the anti-cheat wrongly flagged your solution because of that.I did not use any function or method
You're using something the kata considers "cheating" - probably
list.append()
if I had to guess. Unfortunately the error message is itself bugged. Hint: You can finish this kata with no calls to any methods other than the one you're defining, if you choose to.I have the same problem. Have you found a solution?
I have this error??
Traceback (most recent call last):
File "/workspace/default/tests.py", line 1, in
from solution import *
File "/workspace/default/solution.py", line 1, in
from preloaded import *
File "/workspace/default/preloaded.py", line 22, in
test.expect(False, "Cheater. Do not use {}.".format(check.group()), allow_raise=True)
^^^^
NameError: name 'test' is not defined
I think if basic functions like
len()
are disabled, exceptions should be disabled too...I've started from filter, but the test found it incorrect, and then I tried many methods, including endsWith, for loop, map, when I re-read the task and found out that it was saying to output even numbers, when I was trying to output odd ones. What a waste of time by me
If the length of arr1 is n, and the length of arr2 is m, it is possible to do this in O(n+m) time with O(n) (or O(m)) auxiliary space
чел чисто харош
Hey thanks for this, saved me a few mins.
Loading more items...