Discord is in trouble for caus...
0 Answers
Discord is in trouble for caus...
| Flag | PURGE
Discord is in trouble for causing discord, so he is trying to escape from Equestria. He's arrived at the port, and he doesn't care what boat he gets on, he just wants to get out. He can see the boat schedule, where he sees that N boats are arriving today,
boat 1 arrives any time within a_1 minutes
boat 2 arrives any time within a_2 minutes
...
boat N arrives any time within a_N minutes (uniform distribution)
Tell discord the expected number of minutes he needs to wait for a boat to arrive.
For example If n=3 , and there arriving times are 49,50,51 respectively then expected number of minutes would be 12.495000 . Thats all I know .
Email me when people comment.
Email me when people comment.
Loading...
An error occurred in subscribing you.
Email me when people comment.
Email me when people comment.
Loading...
An error occurred in subscribing you.
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.