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.
188 Solvers
Project Euler: Problem 8, Find largest product in a large string of numbers
319 Solvers
Create One Large Eye of size N x N Quickly?
79 Solvers
859 Solvers
Detect a number and replace with two NaN's
178 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!