2946. Matrix Similarity After Cyclic Shifts
You are given a 0-indexed
m x ninteger matrixmatand an integerk. You have to cyclically right shift odd indexed rowsktimes and cyclically left shift even indexed rowsktimes.Return
trueif the initial and final matrix are exactly the same andfalseotherwise.