Files
freeCodeCamp/curriculum/challenges/english/10-coding-interview-prep/project-euler/problem-307-chip-defects.md
Oliver Eyton-Williams ee1e8abd87 feat(curriculum): restore seed + solution to Chinese (#40683)
* feat(tools): add seed/solution restore script

* chore(curriculum): remove empty sections' markers

* chore(curriculum): add seed + solution to Chinese

* chore: remove old formatter

* fix: update getChallenges

parse translated challenges separately, without reference to the source

* chore(curriculum): add dashedName to English

* chore(curriculum): add dashedName to Chinese

* refactor: remove unused challenge property 'name'

* fix: relax dashedName requirement

* fix: stray tag

Remove stray `pre` tag from challenge file.

Signed-off-by: nhcarrigan <nhcarrigan@gmail.com>

Co-authored-by: nhcarrigan <nhcarrigan@gmail.com>
2021-01-12 19:31:00 -07:00

43 lines
842 B
Markdown

---
id: 5900f4a01000cf542c50ffb2
title: 'Problem 307: Chip Defects'
challengeType: 5
forumTopicId: 301961
dashedName: problem-307-chip-defects
---
# --description--
k defects are randomly distributed amongst n integrated-circuit chips produced by a factory (any number of defects may be found on a chip and each defect is independent of the other defects).
Let p(k,n) represent the probability that there is a chip with at least 3 defects. For instance p(3,7) ≈ 0.0204081633.
Find p(20 000, 1 000 000) and give your answer rounded to 10 decimal places in the form 0.abcdefghij
# --hints--
`euler307()` should return 0.7311720251.
```js
assert.strictEqual(euler307(), 0.7311720251);
```
# --seed--
## --seed-contents--
```js
function euler307() {
return true;
}
euler307();
```
# --solutions--
```js
// solution required
```