Sha256: e8bcaabbb2166717e6ce7138d761c42043e65ed5b4c359ee1334b863af997509

Contents?: true

Size: 915 Bytes

Versions: 83

Compression:

Stored size: 915 Bytes

Contents

Determine if a triangle is equilateral, isosceles, or scalene.

An _equilateral_ triangle has all three sides the same length.<br/>
An _isosceles_ triangle has at least two sides the same length. (It is sometimes
specified as having exactly two sides the same length, but for the purposes of
this exercise we'll say at least two.)<br/>
A _scalene_ triangle has all sides of different lengths.

## Note

For a shape to be a triangle at all, all sides have to be of length > 0, and 
the sum of the lengths of any two sides must be greater than or equal to the 
length of the third side. See [Triangle Inequality](https://en.wikipedia.org/wiki/Triangle_inequality).

## Dig Deeper

The case where the sum of the lengths of two sides _equals_ that of the 
third is known as a _degenerate_ triangle - it has zero area and looks like 
a single line. Feel free to add your own code/tests to check for degenerate triangles.

Version data entries

83 entries across 83 versions & 1 rubygems

Version Path
trackler-2.2.1.39 problem-specifications/exercises/triangle/description.md
trackler-2.2.1.38 problem-specifications/exercises/triangle/description.md
trackler-2.2.1.37 problem-specifications/exercises/triangle/description.md
trackler-2.2.1.36 problem-specifications/exercises/triangle/description.md
trackler-2.2.1.35 problem-specifications/exercises/triangle/description.md
trackler-2.2.1.34 problem-specifications/exercises/triangle/description.md
trackler-2.2.1.33 problem-specifications/exercises/triangle/description.md
trackler-2.2.1.32 problem-specifications/exercises/triangle/description.md
trackler-2.2.1.31 problem-specifications/exercises/triangle/description.md
trackler-2.2.1.30 problem-specifications/exercises/triangle/description.md
trackler-2.2.1.29 problem-specifications/exercises/triangle/description.md
trackler-2.2.1.28 problem-specifications/exercises/triangle/description.md
trackler-2.2.1.27 problem-specifications/exercises/triangle/description.md
trackler-2.2.1.26 problem-specifications/exercises/triangle/description.md
trackler-2.2.1.25 problem-specifications/exercises/triangle/description.md
trackler-2.2.1.24 problem-specifications/exercises/triangle/description.md
trackler-2.2.1.23 problem-specifications/exercises/triangle/description.md
trackler-2.2.1.22 problem-specifications/exercises/triangle/description.md
trackler-2.2.1.21 problem-specifications/exercises/triangle/description.md
trackler-2.2.1.20 problem-specifications/exercises/triangle/description.md