SIG (Susquehanna)·Software Engineer·Technical Phone Screen
- Given a 3x3 matrix, write Python code to: (a) transpose it in-place, (b) swap two specified rows and two specified columns, (c) reverse a specified column and reverse all rows, and (d) rotate the matrix 90 degrees clockwise. Show example inputs and outputs for each part.
“Four parts sounds manageable until you're live coding and realize your in-place transpose is clobbering values before you swap them.”