• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

spiral traversal of mxn matrix

 
praveen shinde
Ranch Hand
Posts: 63
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic