Sha256: 363e2d31a909dae958b154d0310d90ea3b24ecc82c73246f08da0540fa72d173

Contents?: true

Size: 1.16 KB

Versions: 127

Compression:

Stored size: 1.16 KB

Contents

# Difference Of Squares

Find the difference between the square of the sum and the sum of the squares of the first N natural numbers.

The square of the sum of the first ten natural numbers is
(1 + 2 + ... + 10)² = 55² = 3025.

The sum of the squares of the first ten natural numbers is
1² + 2² + ... + 10² = 385.

Hence the difference between the square of the sum of the first
ten natural numbers and the sum of the squares of the first ten
natural numbers is 3025 - 385 = 2640.

## Setup

Go through the setup instructions for ECMAScript to
install the necessary dependencies:

http://exercism.io/languages/ecmascript

## Requirements

Install assignment dependencies:

```bash
$ npm install
```

## Making the test suite pass

Execute the tests with:

```bash
$ npm test
```

In the test suites all tests but the first have been skipped.

Once you get a test passing, you can enable the next one by
changing `xtest` to `test`.


## Source

Problem 6 at Project Euler [http://projecteuler.net/problem=6](http://projecteuler.net/problem=6)

## Submitting Incomplete Solutions
It's possible to submit an incomplete solution so you can see how others have completed the exercise.

Version data entries

127 entries across 127 versions & 1 rubygems

Version Path
trackler-2.2.1.3 tracks/ecmascript/exercises/difference-of-squares/README.md
trackler-2.2.1.2 tracks/ecmascript/exercises/difference-of-squares/README.md
trackler-2.2.1.1 tracks/ecmascript/exercises/difference-of-squares/README.md
trackler-2.2.1.0 tracks/ecmascript/exercises/difference-of-squares/README.md
trackler-2.2.0.6 tracks/ecmascript/exercises/difference-of-squares/README.md
trackler-2.2.0.5 tracks/ecmascript/exercises/difference-of-squares/README.md
trackler-2.2.0.4 tracks/ecmascript/exercises/difference-of-squares/README.md