You are viewing a single comment's thread. Return to all comments →
Here is Oracle solution from my HackerrankPractice repository:
SELECT CASE WHEN A >= (B + C) OR B >= (A + C) OR C >= (A + B) THEN 'Not A Triangle' WHEN A = B AND A = C THEN 'Equilateral' WHEN A = B OR B = C OR A = C THEN 'Isosceles' ELSE 'Scalene' END FROM TRIANGLES;
Feel free to ask if you have any questions :)
Seems like cookies are disabled on this browser, please enable them to open this website
Type of Triangle
You are viewing a single comment's thread. Return to all comments →
Here is Oracle solution from my HackerrankPractice repository:
Feel free to ask if you have any questions :)