I think the description and test suite on this problem is slightly off. When I see 'union' I already assume that no duplicates are permitted and order is irrelevant.
Find the two most distant points
1648 Solvers
2261 Solvers
Make a run-length companion vector
521 Solvers
498 Solvers
2227 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!