← all problems

isValidTriangle 🌶️🌶️

Write a method that takes three int parameters, sideA, sideB, and sideC, representing three candidate side lengths, and returns true if they form a valid triangle, or false otherwise. Three lengths form a valid triangle only if the sum of any two of them is strictly greater than the third, for all three pairs.