We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
For these kinds of questions the submission should be a form where we can just enter the dumb answer instead of trying to figure out what the hell the grader expects.
I submitted several answers:
hard-coded plain text:
0.050
0.983
which I manually computed AND matches to the expected output but I am still getting it incorrect.
I sumbitted the following R solution
sprintf("%.3f",dpois(0,3))
sprintf("%.3f",round(1-(dpois(0,6) + dpois(1,6)),5))
And STILL getting it as wrong.
Is this question supposed to be about Poisson distributions or about R/Python formatting functions???
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Poisson Distribution #3
You are viewing a single comment's thread. Return to all comments →
For these kinds of questions the submission should be a form where we can just enter the dumb answer instead of trying to figure out what the hell the grader expects.
I submitted several answers: hard-coded plain text: 0.050 0.983 which I manually computed AND matches to the expected output but I am still getting it incorrect. I sumbitted the following R solution sprintf("%.3f",dpois(0,3)) sprintf("%.3f",round(1-(dpois(0,6) + dpois(1,6)),5))
And STILL getting it as wrong.
Is this question supposed to be about Poisson distributions or about R/Python formatting functions???