freeCodeCamp/curriculum/challenges/english/08-coding-interview-prep/project-euler/problem-476-circle-packing-...

61 lines
1.0 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

---
id: 5900f5481000cf542c51005b
challengeType: 5
title: 'Problem 476: Circle Packing II'
forumTopicId: 302153
---
## Description
<section id='description'>
Let R(a, b, c) be the maximum area covered by three non-overlapping circles inside a triangle with edge lengths a, b and c.
Let S(n) be the average value of R(a, b, c) over all integer triplets (a, b, c) such that 1  a  b  c < a + b  n
You are given S(2) = R(1, 1, 1) ≈ 0.31998, S(5) ≈ 1.25899.
Find S(1803) rounded to 5 decimal places behind the decimal point.
</section>
## Instructions
<section id='instructions'>
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler476()</code> should return 110242.87794.
testString: assert.strictEqual(euler476(), 110242.87794);
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler476() {
// Good luck!
return true;
}
euler476();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>