about | help | code help+videos | done | prefs |
In any triangle, the sum of the lengths of any 2 sides must be greater than the length of the 3rd side. For example, 3, 7, and 12 could not be the sides of a triangle because 3 + 7 <= 12. Given three positive integers, return true if those integers could be the sides of a triangle, and false otherwise. makeTriangle(3, 4, 5) → true makeTriangle(8, 10, 1) → false makeTriangle(5, 5, 5) → true ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 100
Copyright Nick Parlante 2017 - privacy