monkeydj / matrix-rotation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

matrix-rotation

Complexity

Space: O(n^2)

Time: O((n/2)*k)

Test

$ npm test

One-time execution

Modify the file matrix.sample.js with desired square matrix

Run following command:

$ node rotate <k times>

The second argument is the number of times of rotation

About


Languages

Language:JavaScript 100.0%