Solution Stats
Problem Comments
6 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers12
Suggested Problems
-
Make the vector [1 2 3 4 5 6 7 8 9 10]
53642 Solvers
-
Find common elements in matrix rows
2721 Solvers
-
Construct an index vector from two input vectors in vectorized fashion
461 Solvers
-
Set the array elements whose value is 13 to 0
1458 Solvers
-
Without the French accent please!
234 Solvers
More from this Author174
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
Asif -- I am getting a different result for test problem 6.
I got the same answer as you. I think it is correct.
@william
in test 6,there will be an overlap. if u consider that, i think it should be ok.
i'll add some more test cases like that.
Ooops! I didn't consider that.
If the rope is so longer than the rectangle barn and the cow can turn round and round, 3 of "4 quadrants" does not increase the grazing area, it is just 3/4 sector of a circle. The problem is 1 of 4 quadrants.
I'm also not sure that the last test case is in fact correct. (And yes, I have considered the overlap.)