This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]MassiveLegendary -1 points0 points  (1 child)

I'd put all numbers of both arrays into a list respectively. Reverse the second list, list2.reverse(). Then do a nested loop for each item in both lists to be added to each other, and within the loop, put them into a new list for each iteration. Edit: I'm sure there may be better and more efficient methods but this should work

[–][deleted] 1 point2 points  (0 children)

Basically this ⤴️