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

Mar 14, 2012

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

3

Anonymous

Sep 20, 2016

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