Please add more cases to the test suite, or else it is trivial to solve this problem.
Rafael is right and since you made this into a badge problem it is even more essential to fix this
Find the longest sequence of 1's in a binary sequence.
3416 Solvers
4624 Solvers
MATCH THE STRINGS (2 CHAR) very easy
251 Solvers
352 Solvers
282 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!