Why is saving a vector element in a local variable so much faster?

前端 未结 0 758
暗喜
暗喜 2021-01-21 05:08

When running leetcode, I noticed that this code:

while(row !=size && col >= 0)
        {
            int curr = matrix[row][col];
            if (curr          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题