Sha256: 805ff2ad9211131ae95a578db607141943a485e8f530197c5f4f3af973307f40

Contents?: true

Size: 1.84 KB

Versions: 206

Compression:

Stored size: 1.84 KB

Contents

{
    "square_of_sum": {
        "description": ["Square the sum of the numbers up to the given number"],
        "cases": [
            {
                "description": "square of sum 5",
                "number": 5,
                "expected": 225
            },
            {
                "description": "square of sum 10",
                "number": 10,
                "expected": 3025
            },
            {
                "description": "square of sum 100",
                "number": 100,
                "expected": 25502500
            }
        ]
    },
    "sum_of_squares": {
        "description": ["Sum the squares of the numbers up to the given number"],
        "cases": [
            {
                "description": "sum of squares 5",
                "number": 5,
                "expected": 55
            },
            {
                "description": "sum of squares 10",
                "number": 10,
                "expected": 385
            },
            {
                "description": "sum of squares 100",
                "number": 100,
                "expected": 338350
            }
        ]
    },
    "difference_of_squares": {
        "description": ["Subtract sum of squares from square of sums"],
        "cases": [
            {
                "description": "difference of squares 0",
                "number": 0,
                "expected": 0
            },
            {
                "description": "difference of squares 5",
                "number": 5,
                "expected": 170
            },
            {
                "description": "difference of squares 10",
                "number": 10,
                "expected": 2640
            },
            {
                "description": "difference of squares 100",
                "number": 100,
                "expected": 25164150
            }
        ]
    }
}

Version data entries

206 entries across 118 versions & 1 rubygems

Version Path
trackler-2.0.6.31 tracks/ocaml/tools/test-generator/test/difference_of_squares.json
trackler-2.0.6.31 common/exercises/difference-of-squares/canonical-data.json
trackler-2.0.6.30 common/exercises/difference-of-squares/canonical-data.json
trackler-2.0.6.30 tracks/ocaml/tools/test-generator/test/difference_of_squares.json
trackler-2.0.6.29 common/exercises/difference-of-squares/canonical-data.json
trackler-2.0.6.29 tracks/ocaml/tools/test-generator/test/difference_of_squares.json
trackler-2.0.6.28 common/exercises/difference-of-squares/canonical-data.json
trackler-2.0.6.28 tracks/ocaml/tools/test-generator/test/difference_of_squares.json
trackler-2.0.6.27 common/exercises/difference-of-squares/canonical-data.json
trackler-2.0.6.27 tracks/ocaml/tools/test-generator/test/difference_of_squares.json
trackler-2.0.6.26 tracks/ocaml/tools/test-generator/test/difference_of_squares.json
trackler-2.0.6.26 common/exercises/difference-of-squares/canonical-data.json
trackler-2.0.6.25 common/exercises/difference-of-squares/canonical-data.json
trackler-2.0.6.25 tracks/ocaml/tools/test-generator/test/difference_of_squares.json
trackler-2.0.6.24 tracks/ocaml/tools/test-generator/test/difference_of_squares.json
trackler-2.0.6.24 common/exercises/difference-of-squares/canonical-data.json
trackler-2.0.6.23 common/exercises/difference-of-squares/canonical-data.json
trackler-2.0.6.23 tracks/ocaml/tools/test-generator/test/difference_of_squares.json
trackler-2.0.6.22 tracks/ocaml/tools/test-generator/test/difference_of_squares.json
trackler-2.0.6.22 common/exercises/difference-of-squares/canonical-data.json