Sha256: 10293730fdfec93b21e23fd7f06db2f848fdf7b15f050a6612100e64da8aeb0f

Contents?: true

Size: 888 Bytes

Versions: 119

Compression:

Stored size: 888 Bytes

Contents

// This is a "stub" file.  It's a little start on your solution.
// It's not a complete solution though; you have to write some code.

// Package twofer should have a package comment that summarizes what it's about.
// https://golang.org/doc/effective_go.html#commentary
package triangle


// Notice KindFromSides() returns this type. Pick a suitable data type.
type Kind

const (
    // Pick values for the following identifiers used by the test program.
    NaT // not a triangle
    Equ // equilateral
    Iso // isosceles
    Sca // scalene
)

// ShareWith should have a comment documenting it.
func KindFromSides(a, b, c float64) Kind {
	// Write some code here to pass the test suite.
	// Then remove all the stock comments.
	// They're here to help you get started but they only clutter a finished solution.
	// If you leave them in, reviewers may protest!
	var k Kind
	return k
}

Version data entries

119 entries across 119 versions & 1 rubygems

Version Path
trackler-2.2.1.136 tracks/go/exercises/triangle/triangle.go
trackler-2.2.1.135 tracks/go/exercises/triangle/triangle.go
trackler-2.2.1.134 tracks/go/exercises/triangle/triangle.go
trackler-2.2.1.133 tracks/go/exercises/triangle/triangle.go
trackler-2.2.1.132 tracks/go/exercises/triangle/triangle.go
trackler-2.2.1.131 tracks/go/exercises/triangle/triangle.go
trackler-2.2.1.130 tracks/go/exercises/triangle/triangle.go
trackler-2.2.1.129 tracks/go/exercises/triangle/triangle.go
trackler-2.2.1.128 tracks/go/exercises/triangle/triangle.go
trackler-2.2.1.127 tracks/go/exercises/triangle/triangle.go
trackler-2.2.1.126 tracks/go/exercises/triangle/triangle.go
trackler-2.2.1.125 tracks/go/exercises/triangle/triangle.go
trackler-2.2.1.124 tracks/go/exercises/triangle/triangle.go
trackler-2.2.1.123 tracks/go/exercises/triangle/triangle.go
trackler-2.2.1.122 tracks/go/exercises/triangle/triangle.go
trackler-2.2.1.121 tracks/go/exercises/triangle/triangle.go
trackler-2.2.1.120 tracks/go/exercises/triangle/triangle.go
trackler-2.2.1.119 tracks/go/exercises/triangle/triangle.go
trackler-2.2.1.118 tracks/go/exercises/triangle/triangle.go
trackler-2.2.1.117 tracks/go/exercises/triangle/triangle.go