Please read the new rule regarding the restriction on the use of AI tools. ×

Finding adjacent cells

Revision en1, by Qualified, 2020-05-17 02:05:17

Many problems require the use of finding the adjacent cells of a cell regarding boundaries. Is their an easy way to do this? For example the matrix: {1, 2, 3, 2, 5, 7, 5, 12, 6} the adjacent cells to 12 is 5, 5, 6.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English Qualified 2020-05-17 02:05:39 143
en1 English Qualified 2020-05-17 02:05:17 289 Initial revision (published)