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...
2197 Solvers
Duplicate each element of a vector.
520 Solvers
131 Solvers
190 Solvers
Create sequnce 1 4 9 16 25.........
192 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!