Spiral Matrix II
Medium
Simulation & Implementation
Given n, print an n x n matrix filled with the numbers 1 to n^2 in clockwise spiral order.
Constraints
1 <= n <= 20
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.