Comment Comment by kooi As long as you make sure the end points are valid, this is most intuitive for me. Just using i as a backwards step.for (int i = 1; i <= N; i++) { array[N-i] } parent kooi 2 days ago
for (int i = 1; i <= N; i++) {