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.
If this kind of optimization is a bottle neck for you, then you shouln't be using Python anyway over something like C
This comment is hidden because it contains spoiler information about the solution
I think shadowing a built-in generally refers to asigning a built-in to something else, e.g.
print = lambda x:x+1
This kata demonstrates how difficult it is to sandbox python
Tests cases should test that the solution is a
set
{}
, matching description not another iterable. This would also prevent issues of duplicates, e.g. this should fail https://www.codewars.com/kata/reviews/634af9129a16f90001e6b813/groups/634c769f675bc30001fc4729Description asks for a set, this is a list
Nice Kata- approved in Python and set to 7ku
Give this Kata a more meaninfull name
Actually with a negative integer it returns and empty string
''
not an error (it will return an error for float * string). It's not specificed what the desired output is for these casesRequires random tests. Also, I guess this is a duplicate kata.
It is the duty of the Kata author(s) to enforce any rules in the test cases
Thanks!
As the Kata author, to reply to several comments. I suggested 6 kyu for this Kata based on the concept, but when it was approved the rating was set at 7 kyu by the approver. I cannot edit the rank. Follow-up with the approver or a moderator if you wish
What would you suggest? I recomended 6ku, which is also the Average Assessed Rank
Thanks anter69!
Loading more items...