[Ilugc] [OT] Need programming puzzles
- From: binand@xxxxxxxxx (Binand Sethumadhavan)
- Date: Mon Jan 8 15:17:41 2007
On 07/01/07, Amit Dey <eamitdey@xxxxxxxxx> wrote:
find the solution The questions need to be a bit tough ( but not very tought,
college students are participating )
I just found this one on clc. You can have your own opinion on whether
it is tough or not.
[quote]
Let A be an array of n elements.Procedure which takes this array as i/p
and produce a matrix which shuold be spiral in nature.
if A = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]
7 8 9 10
6 1 2 11
5 4 3 12
16 15 14 13
if n is not a full square then dummy elements can be included to make
the o/p matrix complete.
[/quote]
Binand
Other related posts: