Problem 32. Most nonzero elements in row
Solution Stats
Problem Comments
-
11 Comments
How am I wrong here?
"a = [ ...
1 0 0;
0 0 0;
0 0 0;
0 0 0;
0 2 3];
r_correct = 5;"
My code says 2, I think it's correct, what am I missing?
It wants the number of the row with the most nonzeros.
Thank you Tim! I feel like a fool, but that'll teach me to read the requirements more carefully. Hopefully.
Great Problem!
nice
Love this one
Piece of cake
nice
easy :) but nice
Could you please check my solution.
How come the solution example 2, 3 and 4 have r= 3, 5 and 4. When it should have been r = 4, 3 and 1.
As these are the maximum number of zeros in any of the given row.
Can someone please give me a hint on how the solutions are provided so different?
What are these matrices in last 3 test cases? Can someone help
Solution Comments
Show commentsProblem Recent Solvers6884
Suggested Problems
-
7136 Solvers
-
Remove all the words that end with "ain"
1965 Solvers
-
1100 Solvers
-
Project Euler: Problem 7, Nth prime
1284 Solvers
-
712 Solvers
More from this Author96
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!