+ 8
Spiral Matrix
WAP to create a odd number square spiral matrix like: if matrix is 3×3 5 4 3 6 1 2 7 8 9 if matrix is 5×5 17 16 15 14 13 18 5 4 3 12 19 6 1 2 11 20 7 8 9 10 21 22 23 24 25.... write it in any language
5 Respostas
+ 17
have a look at this well-commented code of John sir
https://code.sololearn.com/c8CxJboIHmAQ/?ref=app
+ 7
#related this challenge.
https://code.sololearn.com/csoKsv5t2VUz/?ref=app
https://www.sololearn.com/Discuss/923513/?ref=app
+ 3
Does spiral AND reverse spiral https://code.sololearn.com/c9rF128ww3aV/?ref=app
+ 2
https://code.sololearn.com/ccUyCmPbBgXn/?ref=app.
look at this please