I've tested all permutations, bainhome, and the test suite results are correct. Test case 4 is due to ABABA and BAAAB, which are two different cases. It is not possible to do the same with test case 5. Since A and B are repeated even times.
Program an exclusive OR operation with logical operators
641 Solvers
Return unique values without sorting
600 Solvers
Remove the two elements next to NaN value
419 Solvers
230 Solvers
242 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!