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.8.6 common/exercises/difference-of-squares/canonical-data.json
trackler-2.0.8.6 tracks/ocaml/tools/test-generator/test/difference_of_squares.json
trackler-2.0.8.5 tracks/ocaml/tools/test-generator/test/difference_of_squares.json
trackler-2.0.8.5 common/exercises/difference-of-squares/canonical-data.json
trackler-2.0.8.4 tracks/ocaml/tools/test-generator/test/difference_of_squares.json
trackler-2.0.8.4 common/exercises/difference-of-squares/canonical-data.json
trackler-2.0.8.3 tracks/ocaml/tools/test-generator/test/difference_of_squares.json
trackler-2.0.8.3 common/exercises/difference-of-squares/canonical-data.json
trackler-2.0.8.2 common/exercises/difference-of-squares/canonical-data.json
trackler-2.0.8.2 tracks/ocaml/tools/test-generator/test/difference_of_squares.json
trackler-2.0.8.1 common/exercises/difference-of-squares/canonical-data.json
trackler-2.0.8.1 tracks/ocaml/tools/test-generator/test/difference_of_squares.json
trackler-2.0.7.0 common/exercises/difference-of-squares/canonical-data.json
trackler-2.0.7.0 tracks/ocaml/tools/test-generator/test/difference_of_squares.json
trackler-2.0.6.44 tracks/ocaml/tools/test-generator/test/difference_of_squares.json
trackler-2.0.6.44 common/exercises/difference-of-squares/canonical-data.json
trackler-2.0.6.43 common/exercises/difference-of-squares/canonical-data.json
trackler-2.0.6.43 tracks/ocaml/tools/test-generator/test/difference_of_squares.json
trackler-2.0.6.42 common/exercises/difference-of-squares/canonical-data.json
trackler-2.0.6.42 tracks/ocaml/tools/test-generator/test/difference_of_squares.json