Please add more tests, otherwise the problem is trivially solvable.
The solution isn't unique - it could be anything between 0 and 12.5. Need to specify that only integer side lengths are allowed (even then there could be multiple solutions). Also more test cases are required.
This problem is problematic.
did not get this problem...
312 Solvers
07 - Common functions and indexing 6
348 Solvers
Is this triangle right-angled?
2874 Solvers
Sum of diagonals elements of a matrix
166 Solvers
464 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!