Beta
Triangle in a Square
Description:
There is a square, represented by the length of its sides S, on a 2-dimensional surface. Does a triangle, represented by lengths of its sides A, B, and C, fit inside the square? The triangle may touch the square, but it is not allowed to cross any of its sides. If the triangle fits inside the square return true, else return false. You can assume that the sides represent always a valid triangle.
Double precision floating point computation is accurate enough to satisfy the tests.
Mathematics
Geometry
Algorithms
Similar Kata:
Stats:
Created | May 14, 2016 |
Published | May 14, 2016 |
Warriors Trained | 135 |
Total Skips | 10 |
Total Code Submissions | 356 |
Total Times Completed | 4 |
C# Completions | 4 |
Total Stars | 5 |
% of votes with a positive feedback rating | 100% of 1 |
Total "Very Satisfied" Votes | 1 |
Total "Somewhat Satisfied" Votes | 0 |
Total "Not Satisfied" Votes | 0 |
Total Rank Assessments | 2 |
Average Assessed Rank | 5 kyu |
Highest Assessed Rank | 5 kyu |
Lowest Assessed Rank | 5 kyu |