-
1 Comment
Ajay Rawat
on 5 Jan 2018
a=regexp(x,'0+','split')
a=a{max(length(a))}
y=length(a)
With this code, every test passes except 4th one. Why is it so?
Suggested Problems
-
1233 Solvers
-
Increment a number, given its digits
667 Solvers
-
Project Euler: Problem 10, Sum of Primes
1924 Solvers
-
493 Solvers
-
11689 Solvers
More from this Author96
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!