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.
Rejected
Definitely not ( IANAL and this is not legal advice ). But copyright applies to literal description text, examples, or test code; not the task in itself. The description is different, and though I can't read Leetcode's tests, they are probably different as well.
I hadn't looked at the constraints that hard. Yes, of course you should start counting at
0
instead of1
. Empty strings are perfectly valid, and perfectly good edge cases.Apart from those artificial constraints, nothing says you can't have empty strings for either input, and for
t = ""
,""
is a correct output. So it should not be used to encode an invalid output.A return value of an empty substring would also be a valid answer to a valid possible input ( empty
t
), so is a less than ideal choice for "no substring possible." Consider asking forNone
instead.Estimated rank is
7kyu
though .. might just be a case of showcasing what's possible, without enforcing anything.Also, duplicate.
Addition has been done; changing a boolean to a string has been done. Combining them does not make a novel kata.
Also, no random tests.
Test coverage is glaringly incomplete.
"Try again"
is never even checked.There are lots of Docs available on publishing ( your first ) kata. Read them. Also read test suites on kata you solved. Not all of them will be prefect, but you'll recognise the bad examples soon enough, and there will be plenty good examples.
Ask for reviews of your kata while still in
Draft
onDiscord#reviewing
. You can ask if ideas are new onDiscord#kata-ideas
; that might save you a lot of time authoring something that will be retired as duplicate.There is an incorrect JS language version ( with some Python code ).
If you have solutions, you can't delete the kata. Leaving it unpublished (
Draft
) is the best you can do.You closed the issue before updating the description. I checked that; I did not check the actual tests. Description is updated now.
That wasn't the problem; the problem was between array ( now tuple ) and
-1
, which is not a tuple.None
would be acceptable.Description should be language agnostic. There is no reason to have the function name ( which may vary between languages ) in there.
Loading more items...