Problem 45436. Successive zeros

Solution 2230722

Submitted on 23 Apr 2020 by Joe Blomer
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
assert(isequal( num_count(4,2),8829))

2   Pass
assert(isequal( num_count(6,2),866781))

3   Pass
assert(isequal( num_count(6,4),899829))

4   Pass
assert(isequal( num_count(2,2),90))

5   Pass
assert(isequal( num_count(5,4),89991))

6   Pass
assert(isequal( num_count(3,1),729)) %not successive

7   Pass
%assert(isequal( num_count(7,2), 8588349))

8   Pass
%assert(isequal( num_count(8,2),85096170))

Suggested Problems

More from this Author149

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!