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.139 tracks/ecmascript/exercises/difference-of-squares/README.md
trackler-2.2.1.138 tracks/ecmascript/exercises/difference-of-squares/README.md
trackler-2.2.1.137 tracks/ecmascript/exercises/difference-of-squares/README.md
trackler-2.2.1.136 tracks/ecmascript/exercises/difference-of-squares/README.md
trackler-2.2.1.135 tracks/ecmascript/exercises/difference-of-squares/README.md
trackler-2.2.1.134 tracks/ecmascript/exercises/difference-of-squares/README.md
trackler-2.2.1.133 tracks/ecmascript/exercises/difference-of-squares/README.md
trackler-2.2.1.132 tracks/ecmascript/exercises/difference-of-squares/README.md
trackler-2.2.1.131 tracks/ecmascript/exercises/difference-of-squares/README.md
trackler-2.2.1.130 tracks/ecmascript/exercises/difference-of-squares/README.md
trackler-2.2.1.129 tracks/ecmascript/exercises/difference-of-squares/README.md
trackler-2.2.1.128 tracks/ecmascript/exercises/difference-of-squares/README.md
trackler-2.2.1.127 tracks/ecmascript/exercises/difference-of-squares/README.md
trackler-2.2.1.126 tracks/ecmascript/exercises/difference-of-squares/README.md
trackler-2.2.1.125 tracks/ecmascript/exercises/difference-of-squares/README.md
trackler-2.2.1.124 tracks/ecmascript/exercises/difference-of-squares/README.md
trackler-2.2.1.123 tracks/ecmascript/exercises/difference-of-squares/README.md
trackler-2.2.1.122 tracks/ecmascript/exercises/difference-of-squares/README.md
trackler-2.2.1.121 tracks/ecmascript/exercises/difference-of-squares/README.md
trackler-2.2.1.120 tracks/ecmascript/exercises/difference-of-squares/README.md