07-16-2019 03:44 PM
I created this for loop
to create a pattern in a 2D array that looks like this (for N=5):
012345
112345
222345
333345
444445
555555
Is there a more efficient way of doing the same thing: Input any N and get the above shown matrix pattern?
I appreciate any guidance on this subject!
Thank you.
Solved! Go to Solution.
07-16-2019 03:56 PM
07-16-2019 04:08 PM
Genius! Haha.
Thank you!
07-17-2019 03:51 AM - edited 07-17-2019 03:52 AM
Separating the two loops gives me another factor of 2 in speed.
07-17-2019 04:28 AM - edited 07-17-2019 04:29 AM