freeCodeCamp/curriculum/challenges/english/08-coding-interview-prep/project-euler/problem-222-sphere-packing....

882 B

id challengeType title
5900f44b1000cf542c50ff5d 5 Problem 222: Sphere Packing

Description

What is the length of the shortest pipe, of internal radius 50mm, that can fully contain 21 balls of radii 30mm, 31mm, ..., 50mm?

Give your answer in micrometres (10-6 m) rounded to the nearest integer.

Instructions

Tests

tests:
  - text: <code>euler222()</code> should return 1590933.
    testString: assert.strictEqual(euler222(), 1590933, '<code>euler222()</code> should return 1590933.');

Challenge Seed

function euler222() {
  // Good luck!
  return true;
}

euler222();

Solution

// solution required