#Leetcode problem matrix spiral
1 messages · Page 1 of 1 (latest)
you dont use recursion here
There is an approach but its kinda long because it requires 4 pointers
You can easily use recursion to solve this problem
By shrinking the 4 corners everytime