Sort 2 Discussions, By:

Sorry, you do not have a permission to answer to this question.

  • CielBlade 10 years ago + 2 comments

    Acturally the one further from the original point comes out first. Shouldn't the right answer be -80 4 -83 11 -25 -99 12 -28 37 -100?

    Add Reply Preview cancel

    Sorry, you do not have a permission to answer to this question.

    • PRASHANTB1984 Challenge Author 10 years ago + 0 comments

      which are the equipolar points you are referring to in this set? Distance is used as tiebreaker only for points with an equal polar angle.

      Add Reply Preview cancel

      Sorry, you do not have a permission to answer to this question.

      • bpowell 10 years ago + 0 comments

        I'm confused about this as well... when sorting the points this is what I'm getting for the answer. (-80, 4) has a distance of about 80 and (-83, 11) has a distance of about 83 so wouldn't (-80, 4) come first since it has a shorter distance from the origin?

        Add Reply Preview cancel

        Sorry, you do not have a permission to answer to this question.

      • drd8394 10 years ago + 3 comments

        Isn't the polar angle for 3,5 is 59. But it is given as 56 in the problem statement

        Add Reply Preview cancel

        Sorry, you do not have a permission to answer to this question.

        • Khongor 10 years ago + 0 comments

          @drd8394: You are right, we are updating the problem statement. Thanks for catching that!

          Add Reply Preview cancel

          Sorry, you do not have a permission to answer to this question.

          • PRASHANTB1984 Challenge Author 10 years ago + 0 comments

            Yes, drd - we are finding a more accurate example for explaining Polar Angle. Thanks.

            Add Reply Preview cancel

            Sorry, you do not have a permission to answer to this question.

            • PRASHANTB1984 Challenge Author 10 years ago + 0 comments

              Hello Drd - We have changed the polar angle example and the diagram. Thanks for pointing this out!

              Add Reply Preview cancel

              Sorry, you do not have a permission to answer to this question.

            1. Challenge Walkthrough
              Let's walk through this sample challenge and explore the features of the code editor.1 of 6
            2. Review the problem statement
              Each challenge has a problem statement that includes sample inputs and outputs. Some challenges include additional information to help you out.2 of 6
            3. Choose a language
              Select the language you wish to use to solve this challenge.3 of 6
            4. Enter your code
              Code your solution in our custom editor or code in your own environment and upload your solution as a file.4 of 6
            5. Test your code
              You can compile your code and test it for errors and accuracy before submitting.5 of 6
            6. Submit to see results
              When you're ready, submit your solution! Remember, you can go back and refine your code anytime.6 of 6
            1. Check your score