Your test suite is not appropriate!!!!
I fixed the test and added a few tests.
1883 Solvers
516 Solvers
Number of 1s in a binary string
2834 Solvers
421 Solvers
466 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!