Apparently, there was a problem with my test suite. Unfortunately, the test-suite checker in the cody problem entrance form is not working at this moment. So I found out too late.
does the test suite clear the previous data? I get troubles in my computer if I do not clear previous polygons before testing last one.
please consider breaking the testsuite into multiple tests to avoid the "clear F" issue (and to make debugging simpler)
The problem's figure is missing. We can imagine one line segment crossing several simple polygons, which can intersect on edges or vertices. The order that we must return is the order in which each polygon is entered. If the same polygon is entered twice, it must appear two times at the output.
Bravo, for the one-liner!
Tic Tac Toe FTW
Check to see if a Sudoku Puzzle is Solved
given 3 sides, find area of this triangle
Make a random, non-repeating vector.
Change the sign of even index entries of the reversed vector
Order of things - 3
Remove element(s) from cell array
Insert structure in a parameter-cell array.
Add a row of zeros on top of a matrix
Convert a substructure reference string into a valid definition structure for subsref and subsasgn
Find the treasures in MATLAB Central and discover how the community can help you!
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office