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.
1100 Solvers
Which values occur exactly three times?
3836 Solvers
Replace NaNs with the number that appears to its left in the row.
2032 Solvers
135 Solvers
Find the position of first minimum value in an integer array with numbers
121 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!