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.
Seems your visited array is visible to all recursion branch?
hi @K01egA ,
g . f
is not equivalent tof . g
if f: A->B and g: B->A
then
which imply that for all element b in B, we have id_B(b) = b
and for all element a in A ,we have id_A(a) = a
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
I was confuesed for a long time with
(Integral i) => i -> String
,feel free to comment this line, or you will usefromIntegral
apply ton
Do not mix up
isInfixOf
andisSubsequenceOf
:)I used to take a subset of target string and count the number of subset strings which matches src,but always get timeout problem.(subset calculations are really cost)...
After coming to the toilet, the inspiration came and it was written in one breath.