Ad
  • Default User Avatar

    "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

  • Default User Avatar

    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

  • Custom User Avatar

    ...because those are only starting points, so E hasn't been used yet, maybe?

  • Default User Avatar

    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

  • Custom User Avatar

    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.

  • Default User Avatar

    thats the issue. we have used E before and nevertheless we didnt use C->G ??

  • Custom User Avatar

    you cannot do a direct C->G if E is free. But if you used it (E) before, then you can.

  • Default User Avatar

    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