What about
a = [0,0; 2,2]; b = [1,1; 3,3];
?
Hi Celestino. I added a little bit more clarifying text to the problem statement. That's an interesting test case, but not one I will use for this problem. You could make your own extension to this problem, though!
Test case 4
a = [4 3;6 8];
b = [3 7;6 9];
The following two lines are interesting each other yet the answer is given as false.
Kindly fix it
Test Case 4 should be "true" since these lines intersect.
For Test Case 3, the two lines are on top of each other, so they will technically intersect infinite times :).
I like the conceptual clarity of this one.
For
a = [0,0; 2,2]; b = [1,1; 3,3];
a = [0,0; 2,2]; b = [2,2; 3,3];
Calculate the Levenshtein distance between two strings
456 Solvers
Try 1.5.4: Celsius to Fahrenheit
609 Solvers
find the maximum element of the matrix
349 Solvers
485 Solvers
274 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!