Loading...
The Spin Doctor
A medium Python interview practice problem on DataDriven. Write and execute real python code with instant grading.
- Domain
- Python
- Difficulty
- medium
- Seniority
- mid, senior
Problem
Write a function that takes an n x n matrix (list of lists of integers) and returns a new matrix rotated 90 degrees counter-clockwise. Do not modify the input matrix.
Practice This Problem
Solve this Python problem with real code execution. DataDriven runs your Python code in a sandboxed Docker environment and grades it instantly.