From 5454443251e4500fd0b4eee5bdb074004ac7e471 Mon Sep 17 00:00:00 2001 From: sunilhariharan Date: Sat, 29 Sep 2018 05:33:37 +0000 Subject: [PATCH] Done --- __pycache__/__init__.cpython-36.pyc | Bin 0 -> 168 bytes .../__pycache__/__init__.cpython-36.pyc | Bin 191 -> 198 bytes .../__pycache__/build.cpython-36.pyc | Bin 468 -> 596 bytes q01_get_minimum_unique_square/build.py | 8 +++++++- .../tests/__pycache__/__init__.cpython-36.pyc | Bin 197 -> 204 bytes .../tests/__pycache__/test.cpython-36.pyc | Bin 1571 -> 1578 bytes 6 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 __pycache__/__init__.cpython-36.pyc diff --git a/__pycache__/__init__.cpython-36.pyc b/__pycache__/__init__.cpython-36.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b9e117eae5fbd18ec3211e92eb08fb5b9cae8920 GIT binary patch literal 168 zcmXr!<>hkcTOZBHz`*brh~WSv-~hzMEI=ZKA(%mv(QhR~5l9$8{0i02$j?pHFD}i? z%*jYB$^_!XJpJ(eqU_>=#N<@{9El?9?Klg6#N=%%aS^^!VhA p#GIVey!6y~BmMaJ%)HE!_;|g7%3B;Zx%nxjIjMFa>xzMx0RT-4Egt{? literal 0 HcmV?d00001 diff --git a/q01_get_minimum_unique_square/__pycache__/__init__.cpython-36.pyc b/q01_get_minimum_unique_square/__pycache__/__init__.cpython-36.pyc index f9de2261d1eb71e5e8e14dbb4363527739e2f278..f9df3b62d3bc52c0f5261cf6fc30ed4b7fe25a2e 100644 GIT binary patch delta 56 zcmdnbc#M(5n3tE!oo{{gL=JP6V*QN#+*JMI(!9)^jKrc$AWqEF56>^kE-pw+PSsD& KPf48^lMDd-jT40c delta 49 zcmX@cxSx^3n3tDp+4W~p6FJOfbM!Ovb5r#blQJ^(UGmHGa`F>XiuGMmi?d7e3nnHf F0|2JC5z+tv diff --git a/q01_get_minimum_unique_square/__pycache__/build.cpython-36.pyc b/q01_get_minimum_unique_square/__pycache__/build.cpython-36.pyc index 45ec8aee9d1537d3ddceb40ada69e0f616a72575..9dba6692c57faf7e84739c1357f0a2a06ec301e4 100644 GIT binary patch delta 403 zcmYjNO-sW-5S`gcKLKa%@P_lEVkSbPb^}*r2FC=|n$OI#BLZ6^^h$1NAu02NT1)J~y6-ZvSbI4eXXq{B4p9B6!=fm|WMV(1R?RJdxC#mT^zF~QH=n_NDsp&tl0 z$U`x04ul);V2PZ K^H<9iSNRW3QCzM7 delta 301 zcmYjM!AiqG5S^V(!N&9!upot8<0S_L4~hrvRY4R4K_r@`Sxt6zcSBoA5Xl!vzrz3N zK^D9U{(>hrIms{&-tgwlo3*#5!`;!yKmPi@{(K*vzj^?0;#%)H$Vh{W9RoGgB*QIe zaSAu%h8j}SmONk!Dy%WXeQ5AGyn-4pAf_+lx#EUJOIfK%%c3$|iYRA_DdJ3jI*6$q zs8r0DLdUGn^(_~M%?_A~JxdmrEbZW4R>D{+s`3Mr?{vRB$z{os^e*SgRL(^q(@ZB* zrXP)bT5Xe4w3F2vnOt^n=xznjBOwV~slc%_ci1aallOP~QSbZ@Hl56F9F{Vx3U<_m J)m_Gb{sEVvOLhPN diff --git a/q01_get_minimum_unique_square/build.py b/q01_get_minimum_unique_square/build.py index e012f4e..2556bbc 100644 --- a/q01_get_minimum_unique_square/build.py +++ b/q01_get_minimum_unique_square/build.py @@ -1,3 +1,4 @@ +# %load q01_get_minimum_unique_square/build.py # Default imports from math import sqrt @@ -5,5 +6,10 @@ # Write your solution here: def q01_get_minimum_unique_square(x,y): - "write your solution here" + l=list(range(x,y+1)) + c=len([x for x in l if (x**0.5).is_integer()]) + return c + + + diff --git a/q01_get_minimum_unique_square/tests/__pycache__/__init__.cpython-36.pyc b/q01_get_minimum_unique_square/tests/__pycache__/__init__.cpython-36.pyc index 7a482a59da012a8b99067243cb0c176c77498cf1..c2aee60033ed8d2ef6db9cf02a652850df407424 100644 GIT binary patch delta 56 zcmX@gc!rU~n3tE!n{R#eL=JP6O8t!d+*JMI(!9)^jKrc$AWqEF56>^kE-pw+PSsD& KPf48^lL-I-+!LVy delta 49 zcmX@Zc$AUDn3tDp+x2Hr6FJOfi}W+{b5r#blQJ^(UGmHGa`F>XiuGMmi?d7e3nnIK F0syQ%5&8fC diff --git a/q01_get_minimum_unique_square/tests/__pycache__/test.cpython-36.pyc b/q01_get_minimum_unique_square/tests/__pycache__/test.cpython-36.pyc index 1297e551f19f751197062170a3af8e3c4b333297..49d8548af0a592ef4eba181fc83427357e447478 100644 GIT binary patch delta 59 zcmZ3?vxF%?rjT~1QW%Kki@^e%56O%GB^