I’ve tried to solve the birthday paradox problem.
Why my code is giving runguard warning?
Here is the link :
Maybe because, I’ve used ‘>=’ instead of ‘>’. But, even then, what is the error?
I’ve tried to solve the birthday paradox problem.
Why my code is giving runguard warning?
Here is the link :
Maybe because, I’ve used ‘>=’ instead of ‘>’. But, even then, what is the error?
added comments where update made
In the above code, the ‘p’ is the percentage, not probability.
The above code is giving ‘runguard warning’ if we input 100 (which means 100%). But, it is working perfectly fine, if we replace ‘>=’ with ‘>’.
I’m not able to figure out what is the problem in my ‘>=’ portion of the code, as it is creating the problem.
I’ve added comments in the problem area.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.