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

Stats:

CreatedMay 14, 2016
PublishedMay 14, 2016
Warriors Trained135
Total Skips10
Total Code Submissions356
Total Times Completed4
C# Completions4
Total Stars5
% of votes with a positive feedback rating100% of 1
Total "Very Satisfied" Votes1
Total "Somewhat Satisfied" Votes0
Total "Not Satisfied" Votes0
Total Rank Assessments2
Average Assessed Rank
5 kyu
Highest Assessed Rank
5 kyu
Lowest Assessed Rank
5 kyu
Ad
Contributors
  • kaaleppi Avatar
  • hobovsky Avatar
Ad