diff --git a/build.py b/build.py index ca073ba..a17ce86 100644 --- a/build.py +++ b/build.py @@ -1,4 +1,26 @@ def solution(array): """ Enter code here - """ \ No newline at end of file + """ + for i in range (0, len(array)): + for j in range (0, len(array[i])): + if (i == 0 and j == 0) or (i > 0 and j == 0) or (i == 0 and j > 0) or (i == len(array)-1) or (j == len(array)-1): + array[i][j] = array[i][j] + else: + array[i][j] = 0 + + return array + +''' +import numpy as np + +a = np.array([ + [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] +]) + +print solution(a) +''' diff --git a/build.pyc b/build.pyc new file mode 100644 index 0000000..e630af5 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..1105bc7 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..52b1c0e Binary files /dev/null and b/tests/test_solution.pyc differ