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...
Return the largest number that is adjacent to a zero
3770 Solvers
5739 Solvers
Program an exclusive OR operation with logical operators
641 Solvers
291 Solvers
2561 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!