In an acute triangle, the three interior angles are acute, or smaller than 90 degrees. In an obtuse triangle, one angle is obtuse, or larger than 90 degrees. In a right triangle, one angle is a right angle, or equal to 90 degrees.
Write a function to classify a triangle as acute, obtuse, or right. The input to the function will be two 1x3 vectors, one with the x coordinates of the vertices of the triangle and the other with the y-coordinates. A small tolerance will likely be required in the cases of the right triangles.

Solution Stats

21 Solutions

9 Solvers

Last Solution submitted on Jul 03, 2025

Last 200 Solutions

Solution Comments

Show comments
Loading...