diff --git a/build.py b/build.py index ca073ba..742238d 100644 --- a/build.py +++ b/build.py @@ -1,4 +1,13 @@ +import numpy as np +x = [[ 1., 1., 1., 1., 1.], [ 1., 1., 1., 1., 1.],[ 1., 1., 1., 1., 1.],[ 1., 1., 1., 1., 1.],[ 1., 1., 1., 1., 1.]] def solution(array): - """ - Enter code here - """ \ No newline at end of file + x = np.array(array) + x[1:-1,1:-1] = 0 + return x + +# solution(x) +# Output : array([[ 1., 1., 1., 1., 1.], +# [ 1., 0., 0., 0., 1.], +# [ 1., 0., 0., 0., 1.], +# [ 1., 0., 0., 0., 1.], +# [ 1., 1., 1., 1., 1.]]) diff --git a/build.pyc b/build.pyc new file mode 100644 index 0000000..b6f93bc Binary files /dev/null and b/build.pyc differ diff --git a/tests/__init__.pyc b/tests/__init__.pyc new file mode 100644 index 0000000..0bd72e1 Binary files /dev/null and b/tests/__init__.pyc differ diff --git a/tests/test_solution.pyc b/tests/test_solution.pyc new file mode 100644 index 0000000..a5be37c Binary files /dev/null and b/tests/test_solution.pyc differ