Pergunta de entrevista da empresa Jump Trading

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

Respostas da entrevista

Sigiloso

14 de mar. de 2012

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

3

Sigiloso

20 de set. de 2016

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