Traversing 2D Arrays

AP Computer Science A· difficulty 4/5

Cells highlighted are accessed by

  • A

    m[0][i]

  • B

    m[i][i]

  • C

    m[i][0]

  • D

    m[i][n-1-i]

    check_circle

Explanation

Anti-diagonal of n=3: (0,2), (1,1), (2,0) → m[i][n-1-i].

Want 10 more like this — adaptive to your weak spots?

Related questions

AP Computer Science A · Traversing 2D Arrays Practice Question | Acemy