Added a new question on nested array in ruby in which the user have to access the elements from nested array.
You are given a two-dimensional nested array 'grid' representing a rectangular 'grid' of integers. Each element 'grid[i][j]' represents the value at the cell located at the 'i'-th row and 'j'-th column.
grid = [
[1, 2, 3],
[4, 5, 6],
[7, 8, 9]
]
Added a new question on nested array in ruby in which the user have to access the elements from nested array.
You are given a two-dimensional nested array 'grid' representing a rectangular 'grid' of integers. Each element 'grid[i][j]' represents the value at the cell located at the 'i'-th row and 'j'-th column. grid = [ [1, 2, 3], [4, 5, 6], [7, 8, 9] ]