[algogeeks] Re: zigzag matrix

2011-10-03 Thread Rahul Verma
@Anika What do you mean with the zigzag fashion here in problem? -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To view this discussion on the web visit https://groups.google.com/d/msg/algogeeks/-/5rO1BmBFlZwJ. To post to this group, send

Re: [algogeeks] Re: zigzag matrix

2011-10-03 Thread DIVIJ WADHAWAN
What do u mean by Zig-Zag ?? On Mon, Oct 3, 2011 at 12:48 PM, Rahul Verma rahulverma@gmail.comwrote: @Anika What do you mean with the zigzag fashion here in problem? -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To view this

Re: [algogeeks] Re: zigzag matrix

2011-10-03 Thread shady
exactly problem is defined in such a vague manner what is zig-zag ? always post links of the place from where you copy the question. On Mon, Oct 3, 2011 at 6:18 PM, DIVIJ WADHAWAN divij...@gmail.com wrote: What do u mean by Zig-Zag ?? On Mon, Oct 3, 2011 at 12:48 PM, Rahul Verma

Re: [algogeeks] Re: zigzag matrix

2011-10-03 Thread Hatta
Zig Zag gets the diagonals from the matrix as if you were calculating the determinant. I know many OPs are not very clear in their statements but with a bit of goodwill I could grab this one. :-) On Mon, Oct 3, 2011 at 11:01 AM, shady sinv...@gmail.com wrote: exactly problem is defined in such

Re: [algogeeks] Re: zigzag matrix

2011-10-03 Thread Ravi Shankar
Lets' say, 0i=3(n) 0j=5(m) for(k=2 to n+m) { find_set_of(i,j) s.t. i+j =k print all the matrix elements for (i,j); } Regards, Ravi Shankar, R D, Cloud Life Cycle Management HCL Comnet, Noida, Ph:995369 On Mon, Oct 3, 2011 at 8:32 PM, Hatta tmd...@gmail.com wrote: Zig Zag gets the

Re: [algogeeks] Re: zigzag matrix

2011-10-03 Thread Rahul Verma
we can achieve the zigzag form of the matrix by performing below steps: int i=1,j=1; For(i=0;im+n-1;i++) { If(in) then j increases upto the value of i Elseif (i=n i=m) j increases upto value of m Elseif(im) j increases upto value of n+m-i. } *For e.g* *for a 4X6 matrix*

Re: [algogeeks] Re: zigzag matrix

2011-10-03 Thread Rahul Verma
@Hatta Thanks a lot dear. -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To view this discussion on the web visit https://groups.google.com/d/msg/algogeeks/-/jCx1kM6n4RwJ. To post to this group, send email to algogeeks@googlegroups.com. To