ClusterConcept

Aliasing Breaks Rotations

cluster-52

Shallow assignments like mat = ans cause mat and ans to reference the same nested array, so subsequent element writes mutate the input and break expected equality after rotation.