← ALL NOTES
Array

1260. Shift 2D Grid

Shift a 2D grid k times, where one shift moves every cell right by one, the last column wraps to the next row's start, and the bottom-right cell wraps to the top-left. Return the result. The unlock:…

Loading…