wood burning stoves 2.0*
The moose likes Java in General and the fly likes spiral traversal of mxn matrix Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "spiral traversal of mxn matrix" Watch "spiral traversal of mxn matrix" New topic
Author

spiral traversal of mxn matrix

praveen shinde
Ranch Hand

Joined: Jun 03, 2009
Posts: 63
Hello ,
I am trying to solve the problem of spiral traversal of an mxn matrix. Here I have hard coded the values in the for loops.
I wanted to make the code more general. remove the hard coded values in the for loops. Any help is welcome.
Regards,
Praveen
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: spiral traversal of mxn matrix