Forum — Daily Challenge
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Login

    Question

    Module 3 Day 12 Challenge Part 2
    2
    3
    22
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L
      livelymockingbird 0 M2 M3★
      last edited by

      Why in the explanation the case was split into the "same as top-left" case and the "not same as top-left" case instead of three "the bottom-right vertex is red/purple/yellow" case?

      audreyA 1 Reply Last reply Reply Quote 1
      • audreyA
        audrey MOD @livelymockingbird 0
        last edited by

        @livelymockingbird-0 if I'm understanding your question correctly, it's because the two options you bring up are "basically" the same:

        notice that "bottom-right vertex is purple" and "bottom-right vertex is yellow" both fall under the case "not same as top-left." So basically, you can think of the two cases in the solution as:

        "same as top-left" = "bottom-right vertex is red"
        "not same as top-left" = "bottom-right vertex is purple" or "bottom-right vertex is yellow."

        The reason that the solution uses 2 cases instead of 3 is that "bottom-right vertex is purple" and "bottom-right vertex is yellow" will give the same number of cases!! Because you can essentially think about swapping yellow and purple in every configuration. This saves a little bit of counting, because once we figure out that there are 2 colorings for "bottom-right vertex is purple," we know that there are also 2 colorings for "bottom-right vertex is yellow," so 2*2 = 4 total colorings for Case 2.

        Hope this made sense, and let me know if it answered your question! 🙂

        L 1 Reply Last reply Reply Quote 2
        • L
          livelymockingbird 0 M2 M3★ @audrey
          last edited by

          @audrey Thanks! Your explanation has helped.

          1 Reply Last reply Reply Quote 2

          • 1 / 1
          • First post
            Last post
          Daily Challenge | Terms | COPPA