Your recent edit to the test suite broke it. You need a space or a comma between the two -1 in the definition of pa in the first test.
Thanks, Guillaume. I just fixed the error.
perhaps a few more test cases will help...
This is not a proper solution. For example it returns false negative for pa = [0,0,0]; pb = [3,3,0]; pc = [2,2,0]; and false positive for pa = [0,0,0]; pb = [3,3,3]; pc = [2,2,1];
Thanks for pointing this out, Jan.
1110 Solvers
273 Solvers
Project Euler: Problem 8, Find largest product in a large string of numbers
328 Solvers
357 Solvers
Avalaible area: wall construction
59 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!