Title
Given a two-dimensional array of integers and row/column indexes r, c, return the number of neighbors (not counting the element itself).
Catalog Type
SLCItem
Persistent ID
https://codecheck.io/files/horstmann/codecheck-python-2DArraysNoLoops-7
Platform Name
CodeCheck
Features
Code Completion
Description
Given a two-dimensional array of integers and row/column indexes r, c, return the number of neighbors (not counting the element itself). A neighbor is any neighbor in the compass direction N E S W NE NW SE SW.
Keywords
Two-Dimensional Arrays
,
No Loops
Author
Cay Horstmann
Institution
San José State University
Iframe URL
https://codecheck.io/files/horstmann/codecheck-python-2DArraysNoLoops-7
Protocol
SPLICE, LTI 1.1
Protocol URL
License
https://creativecommons.org/licenses/by-nc-nd/4.0/
Programming Language
Python
Natural Language
en