Share your repls and programming experiences

← Back to all posts
Coding challenge problem! Diagonal array traversal
plscodeinjava

So basically, you get an array of arrays
[[1, 2, 3],
[2, 3, 4]]
you have to print the array diagonally, so in the example above, the program would print:
1
2 2
3 3
4

and yeah... that's about it
this is actually a fairly difficult problem, so here's my solution! see if you can make your own

to use my program, just type 2 integers with a space in between, the Random module will fill the array for you!

Voters
MattDESTROYER
plscodeinjava
Comments
hotnewtop
MattDESTROYER

Got this working with JavaScript:
My solution

plscodeinjava
jacksmith48

[ redacted by moderators for advertising ]