Lance Leathers

Greenhorn
+ Follow
since Feb 14, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Lance Leathers

How could i write two methods... one recursive and one not to fill a two dementional array of size n.

ex. 5 x 5 array

0 1 2 3 4
15 16 17 18 5
14 23 24 19 6
12 22 21 20 7
12 11 10 9 8


the non-recursive routine would be like void spiralFill(int [][]a, int n) where it spiral fills the first n rows and columns
16 years ago