Answers for "indexing multidimensional arrays python"

1

Index through 2d array

int[][]x;//define
for(int i=0;i<x.length;i++){
  for(int j=0;j<x[i].length;j++){
    //dp something with x[i][j]
  }
}
Posted by: Guest on November-07-2020
0

how do i index into array

>>> x = np.arange(10)
>>> x[2]
2
>>> x[-2]
8
Posted by: Guest on March-28-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language