Sort 29 Discussions, By:

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

  • ojha_vivek 9 years ago + 1 comment

    can it be possible that multiple cycles exits. If yes then how can the output be printed

    Add Reply Preview cancel

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

    • Shafaet Challenge Author 9 years ago + 1 comment

      I can tell you just one thing, learn about expected values. There is link in the problem statement.

      Add Reply Preview cancel

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

      • Empest 9 years ago + 1 comment

        number of cities is 100 000. number of max possible cycles - 33 000. for example: to calculate probability that 10 000 cycles exist i need to make 33000!/10000!/23000! which suppose to be a very big value

        Add Reply Preview cancel

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

        • dbhrockzz 9 years ago + 0 comments

          that is not factorial.... that says i is not equal to w[i] (1!=w[i])

          Add Reply Preview cancel

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

    • jackreacher 9 years ago + 2 comments

      how can there be .72 cycles?? pls add some more sample inputs

      Add Reply Preview cancel

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

      • vkristijan 9 years ago + 0 comments

        it is said that every road has it's probability of existance. If you look at the cycle it has 3 roads in it, with probabilities od 80%, 90% and 100%. The probability that all 3 roads exist is 72%.

        Add Reply Preview cancel

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

        • Menmaro 9 years ago + 1 comment

          It's very poorly worded in my opinion, I don't understand how you can have a .72 of a cycle, you either have a cycle or you don't. I think the author meant probability although I'm still waiting for a response

          Add Reply Preview cancel

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

          • Shafaet Challenge Author 9 years ago + 1 comment

            This is called expected value: https://en.wikipedia.org/wiki/Expected_value. I added the link in the statement now.

            Add Reply Preview cancel

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

            • Menmaro 9 years ago + 0 comments

              Oh right, my bad I said it was poory worded but it seems I have little knowledge, I sincerely apologise

              Add Reply Preview cancel

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

        • lakshmi8 9 years ago + 1 comment

          If the output value is 0.0045, what is the expected answer ? Is it 0.01 or 0.00 ?

          Add Reply Preview cancel

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

          • Shafaet Challenge Author 9 years ago + 1 comment

            0.00

            Add Reply Preview cancel

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

            • lakshya7 9 years ago + 2 comments

              how answer is 0.72%

              Add Reply Preview cancel

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

              • lakshmi8 9 years ago + 0 comments

                Refer the whole thread for the answer

                Add Reply Preview cancel

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

                • Shafaet Challenge Author 9 years ago + 0 comments

                  Its not 0.72%, its just 0.72.

                  Add Reply Preview cancel

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

            • [deleted] 9 years ago + 1 comment

              So there can be multiple cycles in the given graph right?

              Add Reply Preview cancel

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

              • Shafaet Challenge Author 9 years ago + 0 comments

                Yes.

                Add Reply Preview cancel

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

              • abhishek20 9 years ago + 0 comments

                why are'nt we allowed to submit now? i.e after the competition is over. I know it wo'nt afect leader board and hope it is just a technical problem.

                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