Files
freeCodeCamp/curriculum/challenges/english/08-coding-interview-prep/project-euler/problem-356-largest-roots-of-cubic-polynomials.english.md
Randell Dawson a7eb800450 fix(curriculum): Remove unnecessary assert message argument from English Coding Interview Prep challenges - Project Euler - 04 (#36418)
* fix: removed assert msg argument-4

* fix: remove double quotes surrounding testString code

Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com>
2019-07-27 07:34:19 -05:00

828 B

id, challengeType, title
id challengeType title
5900f4d01000cf542c50ffe3 5 Problem 356: Largest roots of cubic polynomials

Description

Let an be the largest real root of a polynomial g(x) = x3 - 2n·x2 + n. For example, a2 = 3.86619826...

Find the last eight digits of.

Note: represents the floor function.

Instructions

Tests

tests:
  - text: <code>euler356()</code> should return 28010159.
    testString: assert.strictEqual(euler356(), 28010159);

Challenge Seed

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

euler356();

Solution

// solution required