+ 5

Challenge --> ZigZagMatrix (mid lvl)

Try filling the matrix in zigzag mode. Example: 1 3 4 10 11 2 5 9 12 19 6 8 13 18 20 7 14 17 21 24 15 16 22 23 25

26th Sep 2017, 3:19 PM
Виталий Кондратьев
Виталий Кондратьев - avatar
6 Respuestas
+ 4
Here you go. Checks for valid input. https://code.sololearn.com/c6NSydL4yhF9/?ref=app
28th Sep 2017, 6:51 PM
Vari93
Vari93 - avatar
+ 3
this is in contrary direction https://code.sololearn.com/WMbaouMqX38N/?ref=app from a past challenge
27th Sep 2017, 1:50 AM
ysraelcon
ysraelcon - avatar
+ 3
@Ysraelcon, it's similar but the algorithm for what the author of this challenge is asking for works a bit differently. This one follows a zig-zag path.
28th Sep 2017, 10:05 AM
Vari93
Vari93 - avatar
+ 2
My solution ) Challenge yourself, never give up) https://code.sololearn.com/cAwQC3fA1zI4/?ref=app
26th Sep 2017, 3:21 PM
Виталий Кондратьев
Виталий Кондратьев - avatar
+ 2
I actually finished my Python solution to this about 15 minutes ago on my computer. I will post it in a few hours, sleep is much needed lol.
28th Sep 2017, 10:15 AM
Vari93
Vari93 - avatar
+ 2
here the southeast direction one @Vari98 https://code.sololearn.com/WNXpBx79kt30/?ref=app bro, I don't know why this one took extenser code than the southwest one 😀
28th Sep 2017, 1:44 PM
ysraelcon
ysraelcon - avatar