You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Make a grid that is one bigger in each direction, since you start at (0,0) and need to go to (20,20)
a = Array.new(21) { Array.new(21) { 1 } }
#This starts with the second to last cell in the second to last row, and then goes all the way to the first item (basically, reverse order of array skipping the last item)
order = (-a.size..-2).to_a.reverse
#Iterate through the array starting with the second to last item in the second to last array
#Add the values of the options to the right and below to the cell, and move on