From dd4f991d6a0730791ae0a4e7dc1f605079f2a09a Mon Sep 17 00:00:00 2001 From: gyandhanee Date: Fri, 2 Jun 2017 06:33:10 +0000 Subject: [PATCH] Done --- build.py | 14 +++++++++++--- build.pyc | Bin 0 -> 558 bytes tests/__init__.pyc | Bin 0 -> 163 bytes tests/test_solution.pyc | Bin 0 -> 1055 bytes 4 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 build.pyc create mode 100644 tests/__init__.pyc create mode 100644 tests/test_solution.pyc diff --git a/build.py b/build.py index ca073ba..0cfe7ac 100644 --- a/build.py +++ b/build.py @@ -1,4 +1,12 @@ +import numpy as np + + def solution(array): - """ - Enter code here - """ \ No newline at end of file + new = np.zeros(array.shape) + a, b = new.shape + new[0,:] = 1 + new[:,0] = 1 + new[a-1, :] = 1 + new[:, b-1] = 1 + + return new diff --git a/build.pyc b/build.pyc new file mode 100644 index 0000000000000000000000000000000000000000..47cfb2f99d49f9ee208ecd7cf84ef511af2ffd82 GIT binary patch literal 558 zcmb_YJx{|h5IsA53GpE@pweHEB}6QpDul$|p$rJb;>K$c)!mdgO!o=4cK+YfxN^EJ%{6zA{Afqf4^n(^#Q*>R literal 0 HcmV?d00001 diff --git a/tests/__init__.pyc b/tests/__init__.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7a37def2a2599dbf9d105e96479f67f7aca9e0e6 GIT binary patch literal 163 zcmZSn%**wd$uKgR0SXv_v;z&sl_G5 h`tk9Zd6^~g@p?ct96$qYa`RJ4b5iX<))oUX0{~d6Cc*#! literal 0 HcmV?d00001 diff --git a/tests/test_solution.pyc b/tests/test_solution.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e03d7583075d099ac9197442e63c8e7f822e8cba GIT binary patch literal 1055 zcmcgq&2G~`5T0EpX-QKE7X)u$Aq9&|PY5b1R8Em_kWhQEOm>sF*t;RSmZ;>M(ud9N%d$J_t9Sb#uE#8{uuC4JAaWo?MM4yX3N?a)*O~`>sy$64A8_ouo9Co zHJyb?bME2cOzZ;Yz5~DtTv}pVCKe8slD3i>NjDLx6WR&dM$`yuqTu(a>Cxr;hUg}^ zShbTRI392b_jnep-^mY>2lFd^JUuK!fE1hM2h)kAMR@EiKlqcTP{)gOC7K` literal 0 HcmV?d00001