We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
You are right. I finally solved it but issue with the problem statement is what they say in problem is correct 'triangle inequality' whereas what they are asking for is incorrect. Equality exists for triangle with area zero. So still it is a triangle but zero area (Can be argued otherwise also) but problem statement is wrong.
Would like to correct my statement that triangle with area=0 is still a triangle is incorrect.
Cookie support is required to access HackerRank
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 →
You are right. I finally solved it but issue with the problem statement is what they say in problem is correct 'triangle inequality' whereas what they are asking for is incorrect. Equality exists for triangle with area zero. So still it is a triangle but zero area (Can be argued otherwise also) but problem statement is wrong.
Would like to correct my statement that triangle with area=0 is still a triangle is incorrect.