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...
Find the longest sequence of 1's in a binary sequence.
3422 Solvers
Given an unsigned integer x, find the largest y by rearranging the bits in x
799 Solvers
Create a square matrix of multiples
386 Solvers
Celsius to Fahrenheit converter
395 Solvers
432 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!