Array
2946. Matrix Similarity After Cyclic Shifts
Given a matrix mat of size m×n and a number k. Even-indexed rows are cyclically shifted right by k, odd-indexed rows left by k. Determine whether the matrix stays unchanged after these shifts. Shift…
Loading…