面试官给我挖坑:a[i][j]和a[j][i]有什么区别

本文以一个简单的程序开头——数组赋值:

int LEN = 10000;
int[][] arr = new int[LEN][LEN];

for (int i = 0; i < LEN; i++) {
for (int j = 0; j < LEN; j++) {
arr[i][j] = 1;
}
}
Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×