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.
4628 Solvers
Project Euler: Problem 1, Multiples of 3 and 5
1525 Solvers
Sum of diagonal of a square matrix
1333 Solvers
"Low : High - Low : High - Turn around " -- Create a subindices vector
324 Solvers
Given a matrix, swap the 2nd & 3rd columns
535 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!