Sha256: d7240c5af9163f5a599f3362d3a13f17e3cc06b590c56297a4dfde554b3412e8

Contents?: true

Size: 704 Bytes

Versions: 40

Compression:

Stored size: 704 Bytes

Contents

package lsproduct

// Source: exercism/problem-specifications
// Commit: e79b832 largest-series-product: Fix canonical-data.json formatting
// Problem Specifications Version: 1.0.0

var tests = []struct {
	digits  string
	span    int
	product int64
	ok      bool
}{
	{"29", 2, 18, true},
	{"0123456789", 2, 72, true},
	{"576802143", 2, 48, true},
	{"0123456789", 3, 504, true},
	{"1027839564", 3, 270, true},
	{"0123456789", 5, 15120, true},
	{"73167176531330624919225119674426574742355349194934", 6, 23520, true},
	{"0000", 2, 0, true},
	{"99099", 3, 0, true},
	{"123", 4, -1, false},
	{"", 0, 1, true},
	{"123", 0, 1, true},
	{"", 1, -1, false},
	{"1234a5", 2, -1, false},
	{"12345", -1, -1, false},
}

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
trackler-2.2.1.96 tracks/go/exercises/largest-series-product/cases_test.go
trackler-2.2.1.95 tracks/go/exercises/largest-series-product/cases_test.go
trackler-2.2.1.94 tracks/go/exercises/largest-series-product/cases_test.go
trackler-2.2.1.93 tracks/go/exercises/largest-series-product/cases_test.go
trackler-2.2.1.92 tracks/go/exercises/largest-series-product/cases_test.go
trackler-2.2.1.91 tracks/go/exercises/largest-series-product/cases_test.go
trackler-2.2.1.90 tracks/go/exercises/largest-series-product/cases_test.go
trackler-2.2.1.89 tracks/go/exercises/largest-series-product/cases_test.go
trackler-2.2.1.88 tracks/go/exercises/largest-series-product/cases_test.go
trackler-2.2.1.87 tracks/go/exercises/largest-series-product/cases_test.go
trackler-2.2.1.86 tracks/go/exercises/largest-series-product/cases_test.go
trackler-2.2.1.85 tracks/go/exercises/largest-series-product/cases_test.go
trackler-2.2.1.84 tracks/go/exercises/largest-series-product/cases_test.go
trackler-2.2.1.83 tracks/go/exercises/largest-series-product/cases_test.go
trackler-2.2.1.82 tracks/go/exercises/largest-series-product/cases_test.go
trackler-2.2.1.81 tracks/go/exercises/largest-series-product/cases_test.go
trackler-2.2.1.80 tracks/go/exercises/largest-series-product/cases_test.go
trackler-2.2.1.79 tracks/go/exercises/largest-series-product/cases_test.go
trackler-2.2.1.78 tracks/go/exercises/largest-series-product/cases_test.go
trackler-2.2.1.77 tracks/go/exercises/largest-series-product/cases_test.go