# Determine Whether Matrix Can Be Obtained (LeetCode 1886)
## Approach
Rotate 0/90/180/270 and compare to target.
## Edge cases
Confirm constraints (n, value ranges) before coding. State time and space complexity up front in interviews.
## Practice tip
Talk through invariants while coding so the interviewer can follow your reasoning.
Practice with [Linkjob AI](https://www.linkjob.ai/).