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.
Missing fixed and example tests:
s = t = "ABCDEF
and t being a permutation of ss,t = "ABSDGFDHKDFHA", "AA"
s,t = "AABSDGFDHKDFH", "AA"
s,t = "BSDGFDHKDFHAA", "AA"
The random tests should also generate more versatile inputs.
t
inputs are currently very long, meaning the tests will in the end almost always generate the same kind of situations (confirmed when I was playing in forks: I very often got all the fixed tests wrong, and all the random tests passing, or just 1 wrong). So, the generation should pick different strategies randomly:t
(length < to 5 or 10)s
s
, at the beginning or the endcheers
This comment is hidden because it contains spoiler information about the solution
Hi,
XYYT
being considered or not a possible substring forXYT
. Edit: as a matter of fact, it seems to be valid => missing sample and fixed test, also.Cheers
Potential copyright infringement: https://leetcode.com/problems/subarray-sum-equals-k/.
I don't see anything about excluding empty subarrays in the description.
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.No random tests https://docs.codewars.com/authoring/guidelines/submission-tests#random-tests
It looks in the description like
m
andn
are arguments as well. It would be more clear to specify you will receive a square matrix, and leave its dimensions to be determined by solver.