This solution is correct. The only reason it fails at test 4 is because the test suite can' t deal correctly with any sets that have elements that are bigger than 250.
This solution has an error that will only manifest when n >= 13. The corrected version is Solution 1200230.
3613 Solvers
Generate N equally spaced intervals between -L and L
565 Solvers
Detect a number and replace with two NaN's
178 Solvers
445 Solvers
486 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!