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

    The challenge explanation was really clear but I just want to know why does x have to be less than or equal to y?

    Module 2 Day 15 Challenge Part 3
    2
    2
    56
    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.
    • The Blade DancerT
      The Blade Dancer M0★ M1★ M2★ M3★ M4 M5
      last edited by debbie

      Module 2 Week 4 Day 14 Challenge Part 3

      The challenge explanation was really clear but I just want to know why does x have to be less than or equal to y?

      The Blade Dancer
      League of Legends, Valorant: Harlem Charades (#NA1)
      Discord: Change nickname if gay#7585

      debbieD 1 Reply Last reply Reply Quote 3
      • debbieD
        debbie ADMIN M0★ M1 M5 @The Blade Dancer
        last edited by debbie

        @The-Darkin-Blade Good question! It's just for organizational purposes, actually. We want to sort the different ways that we are trying by setting \(x\) to be the shortest side.

        If we didn't have this requirement of \(x \leq y,\) then we might have \(3, 5,\) and \(6,\) as side lengths on our list of things to check in addition to side lengths \(5, 3\) and \(6,\) which are really the same combination.

        So, in a nutshell, this requirement ensures that we cover all the cases without doing any of the cases twice!

        1 Reply Last reply Reply Quote 3

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