-
5 Comments
Show
2 older comments
Alfonso Nieto-Castanon
on 21 Dec 2012
I believe in test set 3 c should be empty?
Ned Gulley
on 21 Dec 2012
In test 3, A is wholly contained within B. But I added another test case that should return the empty set [].
Alfonso Nieto-Castanon
on 21 Dec 2012
Perhaps you are referring to test 5, in test 3 a box with width/height [6,1] is hardly contained in a box with width/height [2,2]... or perhaps i am misinterpreting?
Tim
on 21 Dec 2012
Most previous solutions returned [0 0 0 0] for no intersection since that is what the test suite seemed to want.
Ned Gulley
on 2 Jan 2013
My apologies. I don't know why I had this wrong before, but according to my description, yes, test 3 should return [].
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!