Rotate a Matrix by 90 degrees
Example:
If the input is:
X =
1 2 3
4 5 6
7 8 9
So the answer would be:
Y =
3 6 9
2 5 8
1 4 7
similar to Problem 412. Back to basics 22 - Rotate a matrix
Their is a command for this already built in. rot90(x)
Count from 0 to N^M in base N.
200 Solvers
First non-zero element in each column
467 Solvers
Vectorize the digits of an Integer
236 Solvers
181 Solvers
367 Solvers