Jump Trading interview question

For a 2-level nested loop iterating a 2D array, will exchanging the loop iteration index make a difference in performance.

Interview Answers

Anonymous

14 Mar 2012

Basically, they try to test whether you understand the cache.

3

Anonymous

20 Sept 2016

Yes, depend on the language if it is column or row major.