Rotate matrix and shift elements
Filed under Commvault
The question
Rotate a 2D matrix of 'x's and 'o's 90 degrees clockwise, then shift all 'x's to the bottom of each column.
No write-up yet. Related questions below have one.
Related Commvault questions
Collected from public candidate posts and coding forums. Updated Nov 2026.