So starting at index [0][0] (row 0, column 0), we're looking to move right, down, and bottom right (marked with *s):
xxxxxxxxxxconst input = [ [1, *, 1], [*, *, 1], [1, 0, 0]OUTPUT
Results will appear here.
So starting at index [0][0] (row 0, column 0), we're looking to move right, down, and bottom right (marked with *s):
xxxxxxxxxxconst input = [ [1, *, 1], [*, *, 1], [1, 0, 0]