MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi test

Learn moreOpportunities for recent engineering grads.

Apply TodaySo you have some vector that contains 1's and 0's, and the goal is to return a vector that gives the number of 0's between each one. for example:

Input = [0 1 0 0 0 1 0 1 1 1 0 0 0 1 0 1 1 0 0]

Output = [1 3 1 0 0 3 1 0 2]

37 correct solutions
37 incorrect solutions

Last solution submitted on Jun 24, 2016

1 player likes this problem

2 players like this solution

1 Comment