- array-rearrange, Greedy, Mathematical, Matrix, rotation

Rotate all Matrix elements except the diagonal K times by 90 degrees in clockwise direction

  #include using namespace std;  void print(vector& mat){        for (int i = 0; i < mat.size(); i++) {                  for (int j = 0; j < mat[0].size(); j++)                          cout