You are viewing a single comment's thread. Return to all comments →
For Scalene Triangle shouldn't it be like this?
WHEN A!=B AND B!=C THEN 'Scalene'
If A!=B OR B!=C OR A!=C then for A!=B, B=C or A=C can happen.
However, hackerrank is accepting both answers.
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 →
For Scalene Triangle shouldn't it be like this?
If A!=B OR B!=C OR A!=C then for A!=B, B=C or A=C can happen.
However, hackerrank is accepting both answers.