Citation:
Shifting elements in a 2D array refers to moving the values from one position to another while maintaining their relative order.
Transpose Operation: Swapping rows with columns in a 2D array.
Boundary Conditions: Special cases that occur when shifting elements near the edges of an array.
In-place Modification: Modifying the original array without creating a new copy.