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.
"But they said after that we can consider CG as Pattern because E has already been used in another pattern "
you can't use CG if E was used in another pattern, you can only use it if E was used in that same pattern like in their example.
you can do this pattern: D-E-G-C
but not: C-G
n the example countPatternsFrom("C", 2):
they said that it has 5 solutions.But they said after that we can consider CG as Pattern because E has already been used in another pattern .
but in th example countPatternsFrom("C", 2) we used C->E as pattern it means that we can consider CG as patter because E has been used in CE.. it means that it ahs 6 solutions and not only 5 ..
can someone explain why they said 5 pattenr and didnt consider the pattern C->G?
thanx in advance
...because those are only starting points, so E hasn't been used yet, maybe?
we used it in the picture but didnt used it in the example countPatternsFrom("C", 2)
look: they said (C -> B), (C -> D), (C -> E), (C -> F) and (C -> H) but didnt mention C->G
that what i mean
what? we used
C->G
. Just look at the picture in the description.edit: well, it's G->C here, but that's just the same logic.
thats the issue. we have used E before and nevertheless we didnt use C->G ??
you cannot do a direct
C->G
ifE
is free. But if you used it (E
) before, then you can.in the example countPatternsFrom("C", 2):
they said that it has 5 solutions.But they said after that we can consider CG as Pattern because E has already been used in another pattern .
but in th example countPatternsFrom("C", 2) we used C->E as pattern it means that we can consider CG as patter because E has been used in CE.. it means that it ahs 6 solutions and not only 5 ..
can someone explain why they said 5 pattenr and didnt consider the pattern C->G?
thanx in advance