Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.
How can you traverse a matrix of m lines and n columns in a zig-zag way ?
1)
m = 3,n = 2
a11 a12
a21 a22
a31 a32
Output : a11 a21 a12 a31 a22 a32
2)
m = 3, n = 4
a11 a12 a13 a14
a21 a22 a23 a24
a31 a32 a33 a34
Output : a11 a21 a12 a31 a22 a13 a32 a23 a14 a33 a24 a34
Profile Answers by Daskiller Questions by Daskiller
Questions by Daskiller answers by Daskiller
Related Answered Questions
Related Open Questions