Sort 20 Discussions, By:

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

  • pravyad 10 years ago + 1 comment

    if Array A is 9 9 2 and one file is 9 2 what will be the answer for all queries? means in which query this file will be included?

    Add Reply Preview cancel

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

    • DiscOH 10 years ago + 1 comment

      My Understanding is:

      1 will pass because the file 9 2 is a sub array of 9 9 2

      2 will pass because the file 9 2 contains at least 1 element found in 9 9 2

      3 will pass because the file 9 2 does not contain every element of 9 9 2 but it does contain at least 1 of them

      Add Reply Preview cancel

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

      • jordanblink 10 years ago + 1 comment

        but isn't the frequency of 9 in A more than in file? So shouldn't 1 fail?

        Add Reply Preview cancel

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

        • DiscOH 10 years ago + 0 comments

          You're correct. I was mistaken.

          Add Reply Preview cancel

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

    • aswin 10 years ago + 2 comments

      How to resolve runtime errors?

      Add Reply Preview cancel

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

      • VARUNJAIN 10 years ago + 0 comments

        I am also getting runtime errors :(

        Add Reply Preview cancel

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

        • anirban_at_web 10 years ago + 1 comment

          Check the constraints of the input variables given in the problem.

          Add Reply Preview cancel

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

          • aswin 10 years ago + 0 comments

            Well, that's not necessary. It was a different error that I made. Have to start writing unit tests!

            Add Reply Preview cancel

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

        • smellyMonkey 10 years ago + 1 comment

          Same methods. C++ passed all while Python3 did not. Time Limit for Python3 MAY need change.

          Add Reply Preview cancel

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

          • dehli 10 years ago + 1 comment

            People have gotten all 30 points with Python according to the leaderboard so it is possible. I can't get more than 16.5 points :/

            Add Reply Preview cancel

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

            • anirban_at_web 10 years ago + 0 comments

              Use a better algorithm.

              Add Reply Preview cancel

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

          • Ahmedn1 10 years ago + 0 comments

            Why can't I get the data for the test cases So, I can know what is the problem with my code?

            Add Reply Preview cancel

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

            • trinhhoangnhu 10 years ago + 0 comments

              Can any mod look at my code? In sample I runwell but then after submit code none of them run (include the sample one)

              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