Files
freeCodeCamp/curriculum/challenges/german/10-coding-interview-prep/project-euler/problem-213-flea-circus.md
2022-09-28 10:52:29 +02:00

43 lines
849 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
id: 5900f4411000cf542c50ff54
title: 'Problem 213: Flohzirkus'
challengeType: 1
forumTopicId: 301855
dashedName: problem-213-flea-circus
---
# --description--
Ein Raster von 30×30 Feldern enthält 900 Flöhe, zunächst einen Floh pro Feld.
Wenn eine Glocke geläutet wird, springt jeder Floh zufällig auf ein benachbartes Feld (in der Regel 4 Möglichkeiten, außer bei Flöhen am Rand des Gitters oder in den Ecken).
Wie hoch ist die erwartete Anzahl unbesetzter Plätze nach fünfzigmaligem Läuten der Glocke? Gib deine Antwort auf sechs Dezimalstellen gerundet an.
# --hints--
`fleaCircus()` sollte `330.721154` zurückgeben.
```js
assert.strictEqual(fleaCircus(), 330.721154);
```
# --seed--
## --seed-contents--
```js
function fleaCircus() {
return true;
}
fleaCircus();
```
# --solutions--
```js
// solution required
```