Inspired by problem 660.
Given n return two disjoint sets of integers A and B with same cardinality having following property:
for i = 1:n
Try to minimize sets cardinality.
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.
36445 Solvers
Create a square matrix of multiples
330 Solvers
Remove the two elements next to NaN value
311 Solvers
Is this triangle right-angled?
1378 Solvers
Mersenne Primes vs. All Primes
82 Solvers