Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

spiral traversal of mxn matrix  RSS feed

 
praveen shinde
Ranch Hand
Posts: 64
  • 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
Boost this thread!