You must check every time the result. The only case the will be checked is the 3rd.
And you cannot use randi on the 4th and 5th test case, and then use a fixed correct answer ;-)
thanks ramon,I fixed
1905 Solvers
Back to basics 22 - Rotate a matrix
764 Solvers
Given a window, how many subsets of a vector sum positive
743 Solvers
Permute diagonal and antidiagonal
224 Solvers
509 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!