Files
freeCodeCamp/curriculum/challenges/english/10-coding-interview-prep/project-euler/problem-332-spherical-triangles.english.md
Oliver Eyton-Williams bd68b70f3d Feat: hide blocks not challenges (#39504)
* fix: remove isHidden flag from frontmatter

* fix: add isUpcomingChange

Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>

* feat: hide blocks not challenges

Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>

Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>
2020-09-03 15:07:40 -07:00

71 lines
1.3 KiB
Markdown

---
id: 5900f4b91000cf542c50ffcb
challengeType: 5
title: 'Problem 332: Spherical triangles'
forumTopicId: 301990
---
## Description
<section id='description'>
A spherical triangle is a figure formed on the surface of a sphere by three great circular arcs intersecting pairwise in three vertices.
Let C(r) be the sphere with the centre (0,0,0) and radius r.
Let Z(r) be the set of points on the surface of C(r) with integer coordinates.
Let T(r) be the set of spherical triangles with vertices in Z(r).
Degenerate spherical triangles, formed by three points on the same great arc, are not included in T(r).
Let A(r) be the area of the smallest spherical triangle in T(r).
For example A(14) is 3.294040 rounded to six decimal places.
Find A(r). Give your answer rounded to six decimal places.
</section>
## Instructions
<section id='instructions'>
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler332()</code> should return 2717.751525.
testString: assert.strictEqual(euler332(), 2717.751525);
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler332() {
// Good luck!
return true;
}
euler332();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>