Files
freeCodeCamp/curriculum/challenges/english/10-coding-interview-prep/project-euler/problem-226-a-scoop-of-blancmange.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

45 lines
877 B
Markdown

---
id: 5900f4511000cf542c50ff62
title: 'Problem 226: A Scoop of Blancmange'
challengeType: 5
forumTopicId: 301869
dashedName: problem-226-a-scoop-of-blancmange
---
# --description--
The blancmange curve is the set of points (x,y) such that 0 ≤ x ≤ 1 and ,where s(x) = the distance from x to the nearest integer.
The area under the blancmange curve is equal to ½, shown in pink in the diagram below.
Let C be the circle with centre (¼,½) and radius ¼, shown in black in the diagram.
What area under the blancmange curve is enclosed by C?Give your answer rounded to eight decimal places in the form 0.abcdefgh
# --hints--
`euler226()` should return 0.11316017.
```js
assert.strictEqual(euler226(), 0.11316017);
```
# --seed--
## --seed-contents--
```js
function euler226() {
return true;
}
euler226();
```
# --solutions--
```js
// solution required
```