ronreiter / interactive-tutorials

Interactive Tutorials
Apache License 2.0
4.05k stars 2.58k forks source link

Added a new question on nested array in ruby #770

Open Taskmaster-1 opened 11 months ago

Taskmaster-1 commented 11 months ago

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] ]