Given the matrix a, return the index r of the row with the most nonzero elements. Assume there will always be exactly one row that matches this criterion.
Example:
Input a = [ 1 2 0 0 0 0 0 5 0 0 2 7 0 0 0 0 6 9 3 3 ] Output r is 4
What is the next step in Conway's Life?
365 Solvers
545 Solvers
314 Solvers
Back to basics 25 - Valid variable names
240 Solvers
270 Solvers
MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply Today