horstmann/codecheck-python-LoopingoverNeighbors-5
Platform Name
CodeCheck
Exercise Type
Code Completion
Language
Python
Description
Given a two-dimensional array a of integers and row/column positions r, c, return a 3x3 array whose middle element is a[r][c], and whose neighbors are copied from the original. Set non-existent neighbors to zero.
Keywords
Two-Dimensional Arrays
,
Looping over Neighbors
URL
https://codecheck.io/files/horstmann/codecheck-python-LoopingoverNeighbors-5
Author
Cay Horstmann
Institution
San José State University
Iframe URL
https://codecheck.io/files/horstmann/codecheck-python-LoopingoverNeighbors-5
LTI URL
https://codecheck.io/files/horstmann/codecheck-python-LoopingoverNeighbors-5
LTI Instructions URL
https://horstmann.com/codecheck/lti.html
Preview