From 854d6af5477bfa254aa78174288830aa9e34f9e1 Mon Sep 17 00:00:00 2001 From: UdhaikuumarMohan Date: Fri, 11 Jan 2019 10:44:37 +0530 Subject: [PATCH 01/33] 1 array --- .vscode/settings.json | 3 +++ Lengthofarray.py | 13 +++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 .vscode/settings.json create mode 100644 Lengthofarray.py diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..3b4a779 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "python.pythonPath": "C:\\anaconda\\python.exe" +} \ No newline at end of file diff --git a/Lengthofarray.py b/Lengthofarray.py new file mode 100644 index 0000000..96c499c --- /dev/null +++ b/Lengthofarray.py @@ -0,0 +1,13 @@ +# Find the length of the given array: + +def lengthofarray(A): + + + count=0 + + while(A[count:]): + count+=1 + + return count +A=[2,54,1,5,67,3] +print(lengthofarray(A)) From 43497b3ec9c410b2d27c783e90982ea1bccbd33e Mon Sep 17 00:00:00 2001 From: UdhaikuumarMohan Date: Sun, 13 Jan 2019 18:28:17 +0530 Subject: [PATCH 02/33] array from user --- Lengthofarray.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Lengthofarray.py b/Lengthofarray.py index 96c499c..931a43a 100644 --- a/Lengthofarray.py +++ b/Lengthofarray.py @@ -2,12 +2,21 @@ def lengthofarray(A): - count=0 while(A[count:]): count+=1 return count -A=[2,54,1,5,67,3] +N=input("Enter the Number of elements: ") + +A=[] + +for a in range(0,N): + X=int(input("Enter the Numbers: ")) + A.append(X) + +print A + +print("The length of the given array is: ") print(lengthofarray(A)) From a875f0e1036bc3f54eb3edab9525b8c7a0c60cd5 Mon Sep 17 00:00:00 2001 From: Udhaikumar Mohan Date: Tue, 15 Jan 2019 09:38:04 +0530 Subject: [PATCH 03/33] while loop --- .vscode/settings.json | 2 +- Lengthofarray.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 3b4a779..89d3d63 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,3 +1,3 @@ { - "python.pythonPath": "C:\\anaconda\\python.exe" + "python.pythonPath": "C:\\Users\\user\\Anaconda2\\python.exe" } \ No newline at end of file diff --git a/Lengthofarray.py b/Lengthofarray.py index 931a43a..613c3d4 100644 --- a/Lengthofarray.py +++ b/Lengthofarray.py @@ -8,12 +8,12 @@ def lengthofarray(A): count+=1 return count -N=input("Enter the Number of elements: ") +#N=input(str("Enter the Number of elements: ")) A=[] +X=int(input("Enter the Numbers: ")) -for a in range(0,N): - X=int(input("Enter the Numbers: ")) +while(X!="stop"): A.append(X) print A From de3d7a44a3faf4dc300e192501ad34d6b1525d18 Mon Sep 17 00:00:00 2001 From: Udhaikumar Mohan Date: Thu, 24 Jan 2019 14:19:56 +0530 Subject: [PATCH 04/33] new --- .vscode/settings.json | 4 +++- Lengthofarray.py | 11 +++++++---- rough_sheet.py | 8 ++++++++ 3 files changed, 18 insertions(+), 5 deletions(-) create mode 100644 rough_sheet.py diff --git a/.vscode/settings.json b/.vscode/settings.json index 89d3d63..8d202e9 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,3 +1,5 @@ { - "python.pythonPath": "C:\\Users\\user\\Anaconda2\\python.exe" + "python.pythonPath": "C:\\Users\\user\\Anaconda2\\python.exe", + "python.linting.pylintEnabled": true, + "python.linting.enabled": true } \ No newline at end of file diff --git a/Lengthofarray.py b/Lengthofarray.py index 613c3d4..c12db5f 100644 --- a/Lengthofarray.py +++ b/Lengthofarray.py @@ -8,15 +8,18 @@ def lengthofarray(A): count+=1 return count -#N=input(str("Enter the Number of elements: ")) + +N=input("Enter the Number of elements: ") A=[] -X=int(input("Enter the Numbers: ")) -while(X!="stop"): - A.append(X) +for a in range (0,N): + + X = input("Enter the Numbers: ") + A.append(X) print A + print("The length of the given array is: ") print(lengthofarray(A)) diff --git a/rough_sheet.py b/rough_sheet.py new file mode 100644 index 0000000..7bcfce2 --- /dev/null +++ b/rough_sheet.py @@ -0,0 +1,8 @@ +def print_array(Array): + print Array + +array = [1,2,3] +#print array +print_array(array) + +print len(array) \ No newline at end of file From 1d37a65ff6246f7e065dacb189308d5b3fec31fd Mon Sep 17 00:00:00 2001 From: Udhaikumar Mohan Date: Thu, 24 Jan 2019 14:51:54 +0530 Subject: [PATCH 05/33] change --- Lengthofarray.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lengthofarray.py b/Lengthofarray.py index c12db5f..ebf6c88 100644 --- a/Lengthofarray.py +++ b/Lengthofarray.py @@ -16,6 +16,7 @@ def lengthofarray(A): for a in range (0,N): X = input("Enter the Numbers: ") + A.append(X) print A From 582528e3831344209b70e76533caf99f26ada1f5 Mon Sep 17 00:00:00 2001 From: Udhaikumar Mohan Date: Fri, 25 Jan 2019 15:44:06 +0530 Subject: [PATCH 06/33] length of array --- .vscode/settings.json | 13 +++++++- Lengthofarray.py | 26 ---------------- Lengthofarray/Lengthofarray.py | 28 ++++++++++++++++++ Lengthofarray/Lengthofarray.pyc | Bin 0 -> 402 bytes .../test_lengthofarray.cpython-27-PYTEST.pyc | Bin 0 -> 1599 bytes Lengthofarray/test_lengthofarray.py | 18 +++++++++++ Lengthofarray/test_lengthofarray.pyc | Bin 0 -> 748 bytes 7 files changed, 58 insertions(+), 27 deletions(-) delete mode 100644 Lengthofarray.py create mode 100644 Lengthofarray/Lengthofarray.py create mode 100644 Lengthofarray/Lengthofarray.pyc create mode 100644 Lengthofarray/__pycache__/test_lengthofarray.cpython-27-PYTEST.pyc create mode 100644 Lengthofarray/test_lengthofarray.py create mode 100644 Lengthofarray/test_lengthofarray.pyc diff --git a/.vscode/settings.json b/.vscode/settings.json index 8d202e9..68df530 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,5 +1,16 @@ { "python.pythonPath": "C:\\Users\\user\\Anaconda2\\python.exe", "python.linting.pylintEnabled": true, - "python.linting.enabled": true + "python.linting.enabled": true, + "python.unitTest.unittestArgs": [ + "-v", + "-s", + "./Lengthofarray", + "-p", + "test*.py" + ], + "python.unitTest.pyTestEnabled": false, + "python.unitTest.nosetestsEnabled": false, + "python.unitTest.unittestEnabled": false, + "python.unitTest.promptToConfigure": false } \ No newline at end of file diff --git a/Lengthofarray.py b/Lengthofarray.py deleted file mode 100644 index ebf6c88..0000000 --- a/Lengthofarray.py +++ /dev/null @@ -1,26 +0,0 @@ -# Find the length of the given array: - -def lengthofarray(A): - - count=0 - - while(A[count:]): - count+=1 - - return count - -N=input("Enter the Number of elements: ") - -A=[] - -for a in range (0,N): - - X = input("Enter the Numbers: ") - - A.append(X) - -print A - - -print("The length of the given array is: ") -print(lengthofarray(A)) diff --git a/Lengthofarray/Lengthofarray.py b/Lengthofarray/Lengthofarray.py new file mode 100644 index 0000000..d1b656f --- /dev/null +++ b/Lengthofarray/Lengthofarray.py @@ -0,0 +1,28 @@ +# Find the length of the given array: + +def lengthofarray(A): + + count=0 + + while(A[count:]): + count+=1 + + return count + +#Getting Input from user: + +#N=input("Enter the Number of elements: ") + +#A=[] + +#for a in range (0,N): + + #X = input("Enter the Numbers: ") + + #A.append(X) + +#print A + + +#print("The length of the given array is: ") +#print(lengthofarray(A)) diff --git a/Lengthofarray/Lengthofarray.pyc b/Lengthofarray/Lengthofarray.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b6d532194e3ba556fc8b508f322cf97d167c3754 GIT binary patch literal 402 zcmb_X!D_-l5S`s%sX}`8)?NyG>a`$64DCr20as>ZvI$>d3jco>T^XW((A>rdaxw{fJqcP5KCNw9<)+{GAPz^Wi(OR! literal 0 HcmV?d00001 diff --git a/Lengthofarray/__pycache__/test_lengthofarray.cpython-27-PYTEST.pyc b/Lengthofarray/__pycache__/test_lengthofarray.cpython-27-PYTEST.pyc new file mode 100644 index 0000000000000000000000000000000000000000..dd8a5152174924a18b417bb01abb37639a3d4857 GIT binary patch literal 1599 zcmcJP&2G~`5XZ-M;v^;gL_+1(3n(B_(NcOq4Qf@mAc(+)OJ&J2@uqd^#Flp>8Y#I@ zBp!eV;SG2fUIDI1@Sky9Xz8_4yx#fPotfR=*!ej>cmMkf|E@*UrPR0HnT54Q6bSbjw6WnSPIWnp9!h==?o5a8I>qr0uB3A9=(X26e2NYE) zMgWJ5MSYvjh)!J656DO)_?%gk?}%9CB@l-W`$rYpzBR=*t{7`H5hLs$;Uf7Tv|PmL zU=>0wUXVQy9-2KqQ1B~g&8EDw&7^nI8F!*HNXLyTchvBhv&dy-b14xi_Fnwy*K z&`a|{XaaSbCE+kMFt#L%8!&Pfg?*z1kz~-XG24IQze9=IA7S*LDScwn%zriZRF-Og zFVDmAn-P-4cG`cbhDYW&?S-uNCHLfC)p|BIE7(*lU1T9?@_|*M)m%PVF6|WnvB;0y z?=MUM0m#5j9XW)1!hKCGzQMjVyQ-;86U=Qov1#hi#3B8Ij6fDGu-L;6i!+}d*r-s9 z4Qqsp>sL!uPGyP9Zj8!j5kZ59j0(7{({|Ljxa@1W4Eti)w{n??ysSad91~WdXo(S> zU^34NU|1LL22GHK#5qR}bwmXCmvI1{SXzJ&1$kp&%rwv1ZOsQe<8ZCr79=-;B;$rV zS6!nbk6nebuxmzPGQ)J!gZe+7x3IXtcuPQ;#VO`j2fK_rwrDY4W*)-@I7D-S4UZ8p zTxEa;NQClkI>^FYd7OsFrF&euSK~q2h{>0x>!d>^y@{p={vNlM$5Bm*cfs1mxm@7> z=#u>Sy7A`%%f<-O9(o(C!nMf#k+W#I&Z5%<_+Mz5R;eW=auGrKod^Os5ObTA=qPmG zdQlyka6MNa^4Js~g>$XpBb!;|puHt1Jl@vhPs`t`Wp+KC&sFXW(rA>Zrvff3nzTYq HyW#u+XXI{c literal 0 HcmV?d00001 diff --git a/Lengthofarray/test_lengthofarray.py b/Lengthofarray/test_lengthofarray.py new file mode 100644 index 0000000..f0525ae --- /dev/null +++ b/Lengthofarray/test_lengthofarray.py @@ -0,0 +1,18 @@ +#Test condition for length of the given array: + +import Lengthofarray + +def test_canassertTrue(): + assert True + +def test_len_of_array(): + + #arrange + A=[4,6,2] + expected=3 + + #act + actual=Lengthofarray.lengthofarray(A) + + #assert + assert expected==actual \ No newline at end of file diff --git a/Lengthofarray/test_lengthofarray.pyc b/Lengthofarray/test_lengthofarray.pyc new file mode 100644 index 0000000000000000000000000000000000000000..22d98d5980800707521b6d607f5809c7dafb809f GIT binary patch literal 748 zcmcIhK~BRk5M0}(0@PB(6FB9>kwb+L6>vdNL4XUgR7HtfLPHbTjzp#Q0=$ne@CY6N zvj(;F0kz`scz3-!yHQ{5?T^n3ozmZuI8U(MJ|M#Xi0(b4lQ*-&^LyGF^m+=ac$6CaGy_tW<+m-=8|UMlE#wUA$hrIo^$u} zFta9T&Si2=9x?bfU`2Satmuw;e!tPodVUjVUMiD%lX*^>q`ppyb Date: Fri, 25 Jan 2019 18:37:52 +0530 Subject: [PATCH 07/33] Second problem --- .../test_lengthofarray.cpython-27-PYTEST.pyc | Bin 1599 -> 1599 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/Lengthofarray/__pycache__/test_lengthofarray.cpython-27-PYTEST.pyc b/Lengthofarray/__pycache__/test_lengthofarray.cpython-27-PYTEST.pyc index dd8a5152174924a18b417bb01abb37639a3d4857..9c444576dd8b015ff082accdd069a3e817fac532 100644 GIT binary patch delta 15 Wcmdnbv!92J`7 Date: Fri, 25 Jan 2019 18:38:31 +0530 Subject: [PATCH 08/33] Second problem --- X_in_given_array/X_in_Array.py | 28 ++++++++++++++++++ X_in_given_array/X_in_Array.pyc | Bin 0 -> 439 bytes .../test_X_in_array.cpython-27-PYTEST.pyc | Bin 0 -> 1654 bytes X_in_given_array/test_X_in_array.py | 19 ++++++++++++ 4 files changed, 47 insertions(+) create mode 100644 X_in_given_array/X_in_Array.py create mode 100644 X_in_given_array/X_in_Array.pyc create mode 100644 X_in_given_array/__pycache__/test_X_in_array.cpython-27-PYTEST.pyc create mode 100644 X_in_given_array/test_X_in_array.py diff --git a/X_in_given_array/X_in_Array.py b/X_in_given_array/X_in_Array.py new file mode 100644 index 0000000..0506317 --- /dev/null +++ b/X_in_given_array/X_in_Array.py @@ -0,0 +1,28 @@ +# Given an unsorted integer array A and an integer value X, find if A contains the value X. + +def X_in_array(Array,X): + + flag=False + + for i in Array: + + if (i==X): + flag=True + break + + return flag + +# Getting input from User: + +#X=input("Enter the search element: ") +#N=input("Enter the Number of elements: ") + +#Array=[] + +#for a in range (0,N): + #Elements=input("Enter the input elements: ") + #Array.append(Elements) + +#print Array +#print(X_in_array(Array,X)) + diff --git a/X_in_given_array/X_in_Array.pyc b/X_in_given_array/X_in_Array.pyc new file mode 100644 index 0000000000000000000000000000000000000000..0fbc472ee6a4b30a231b66cb34be5143d091b0e8 GIT binary patch literal 439 zcmcIf!Ab)$5Piw&QcLp(9zEW-{|8`Bp=7G}9~m9l`e{J1K@W@C7_`AaI{aW>x_X*c0{%JB=AUu#@;aK@Ut{ zjZzrzuN!^SEo@Vhj&1H*OTMTp(#yQ4@=ft!tK5VEzeFrL wZ8|>;<3dSHhDB+_0GUc9M_^RjXPm#)>$bEPQA?2W1L5^zumAu6 literal 0 HcmV?d00001 diff --git a/X_in_given_array/__pycache__/test_X_in_array.cpython-27-PYTEST.pyc b/X_in_given_array/__pycache__/test_X_in_array.cpython-27-PYTEST.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3aebd1cdca1bc8db21f165455ffc235b3f3f8b55 GIT binary patch literal 1654 zcmcIk&2G~`5FW>gleB43(t-+HdOZCmK$%1QzwqR8z540 zpB>s(GO9CJev1kvEW{JT&pr}MK z0@!3M>K5pf=)@s?kBmfu&8bD%wy-6>0=93neN?2a8xy#3L|LY>D53uZ6Ul$ybr7e8 zTL`rX5^Ak7vwFuJjPBpnhSPbI4HaS$L3D|YTY<{s+)WK+XD|wmhH+xzzD8i8ByER@ zHgmboC~bl;Gb>;N{Vp9QQIM%Y791z(QJ4h%u%}E_lwn7)#&BA@l2)AdpJiE^nI$&p zq**UCf%-T|!hUF=bR~;EFGrplq}t!j zvT*czh$P`o`v*bX502yas*jwZ@g;qc3cofOnFgGSxQ#3%O>S5TQqAR)<ppfWgq zWWIIe3J?Gp`J^!A2tX;*ahWi)s6rEqr#UH1=Z@ixEjlgG#HMk9#x|YcT%>W4blJ+m z5H*VTW>-8Mk8`>MQ^Vt71JzV`PC+{=y;ZhzJ{T9qnnw+_#uP5aZ$GLAarC z2f{6k8FZQz&8FrFOaZ&vYzlTafL%5LI8@uH$YWE1W7sysFqz_c!-M!g;BVq`j`vML z)HF_hzC75)y?_gsw*f6DdJg<6SpY$fVCL3BOC6SeAr@cX#DUVa}co9AB zi^t`AT${%ok_~O8edV%T!sY(CRR5u(%RO$n$8Nn_Am>$IVd-4wb}x;FiF(4b)hwt{gKCAU{Ri~-a%=zq literal 0 HcmV?d00001 diff --git a/X_in_given_array/test_X_in_array.py b/X_in_given_array/test_X_in_array.py new file mode 100644 index 0000000..4d599fe --- /dev/null +++ b/X_in_given_array/test_X_in_array.py @@ -0,0 +1,19 @@ +# Test condition for checking given X in array: + +import X_in_Array + +def test_canassertTrue(): + assert True + +def test_X_in_array(): + + #arrange + Array=[6,9,0,2,5,1,7] + X=8 + expected=False + + #act + actual=X_in_Array.X_in_array(Array,X) + + #assert + assert expected==actual From ec1a18dc56cb8e007e8d3de700b06b0c2fdf9aa6 Mon Sep 17 00:00:00 2001 From: Udhaikumar Mohan Date: Sun, 27 Jan 2019 12:27:19 +0530 Subject: [PATCH 09/33] Third problem --- .../test_X_index.cpython-27-PYTEST.pyc | Bin 0 -> 168 bytes X_index/X_index.py | 34 ++++++++++++++++++ X_index/X_index.pyc | Bin 0 -> 418 bytes .../test_X_index.cpython-27-PYTEST.pyc | Bin 0 -> 1582 bytes X_index/test_X_index.py | 19 ++++++++++ 5 files changed, 53 insertions(+) create mode 100644 X_in_given_array/__pycache__/test_X_index.cpython-27-PYTEST.pyc create mode 100644 X_index/X_index.py create mode 100644 X_index/X_index.pyc create mode 100644 X_index/__pycache__/test_X_index.cpython-27-PYTEST.pyc create mode 100644 X_index/test_X_index.py diff --git a/X_in_given_array/__pycache__/test_X_index.cpython-27-PYTEST.pyc b/X_in_given_array/__pycache__/test_X_index.cpython-27-PYTEST.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b891d9b0f1b216023f3fd6e65d50d03e987ad71f GIT binary patch literal 168 zcmZSn%*!=3&^Lww2$Der2rvS%0}vOp0ErX^hF}elh@S?KU_c{^eSu=mRxzQ)sYS&x zr9d*qCAB!aB)=fWw=yWTAip@qv8X7qGO#qYxFj<_uQ(BGKUh$nw;06G_qIRaHGVL2g&d zOx0_B1d$Q}UjUP_Te7d%)u5Yt-h`rbvu5GTf}Q%@)}BLFAj0A8870i zPrmwb{04j!KY;$uX@`hB>ayP6^Z(!P)c xIRAg*DRtQmA?w!yLdDo5&jk>L?_nl zUZH_agDRcWW*mo39EvLR8ESQkY`M&_;gMT~llUioT?v3d#H@WhnmGpVfT9}32w;=3 zXi%XmqH~Az8X1WMohys-9U*IM0&--tepIFHN0)Hph_Fsm5kme6Dw6+^>mW`SRtWU~ zN2s;R&FWJ(n>>G}4X5)iA1lNn0_z?fcMc+tb2m*KyV)c-9mk1@M;d{NlC&2l+B6E8 zQQ8DyZdO1B`a?QSq99jU9-JlVX_y3~aH!0@2*bW&iQ%;NB&|3dy~*=5H_NQhPxE1D z0(Frk;V3i^x{}2Lgq%eo-*7>a9Qpva{a5}mO4R-sr+=XIxk)qsaN?;f)&5?dhm*Hs zBnfxge;>r7NL~1nbxEve6Vrwx;q?$%QsXAoz|~wbSq|+Lps9o6M`qeWei%H^P)rAt zjR1~1oz)3*0{;?Hhb}8T#{u!crWRd+Z_~6wQ=86luhO(ix^5MCh+0hcVc0Hp`T$9l zVnk__ASp5PMIcmTHO9<0A)S(B%rq!kpzWynr`h+JnJs45GczICtVz)#Lk;CDGgha# zEHMMXtBdv=O&vDAjXl&65w_qV+S84>Z!r%(#>2_u;D*8-4sM}lUZ+m=IO|~ci3kGeg?Y?O zEEX1Ty(kC!x1Otyd2EXB!3|e>TuP+J-V%&GcI)w1<#(BK`*%yvwe1YkXq>3mJV4Ei LCbg+qnYVud5_MVI literal 0 HcmV?d00001 diff --git a/X_index/test_X_index.py b/X_index/test_X_index.py new file mode 100644 index 0000000..d658137 --- /dev/null +++ b/X_index/test_X_index.py @@ -0,0 +1,19 @@ +# Test condition for the Index of the Given Array: + +import X_index + +def test_canassertTrue(): + assert True + +def test_X_index(): + + #arrange + Array=[6,9,0,2,5,1,7] + X=9 + expected=1 + + #act + actual=X_index.X_index(Array,X) + + #assert + assert expected==actual From adc6a085c9fa079a85e811c10ded8c1ebe9780c3 Mon Sep 17 00:00:00 2001 From: Udhaikumar Mohan Date: Sun, 27 Jan 2019 12:38:58 +0530 Subject: [PATCH 10/33] Third problem --- X_index/X_index.py | 2 +- .../test_X_index.cpython-27-PYTEST.pyc | Bin 1582 -> 1582 bytes X_index/test_X_index.py | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/X_index/X_index.py b/X_index/X_index.py index 26dd35c..c3cca04 100644 --- a/X_index/X_index.py +++ b/X_index/X_index.py @@ -19,7 +19,7 @@ def X_index(Array,X): #Array=[] -#for a in range(0,N): +#for a in range(0,,N): #Elements=input("Enter the Elements in Array: ") diff --git a/X_index/__pycache__/test_X_index.cpython-27-PYTEST.pyc b/X_index/__pycache__/test_X_index.cpython-27-PYTEST.pyc index 249482e8408107e683676618f84b883fac9efc89..b9f2cf86979ba20055401546e29eff9428d11431 100644 GIT binary patch delta 15 WcmZ3-vyO+2`7 Date: Sun, 27 Jan 2019 19:53:25 +0530 Subject: [PATCH 11/33] Third Problem --- X_index/X_index.py | 2 +- X_index/test_X_index.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/X_index/X_index.py b/X_index/X_index.py index c3cca04..26dd35c 100644 --- a/X_index/X_index.py +++ b/X_index/X_index.py @@ -19,7 +19,7 @@ def X_index(Array,X): #Array=[] -#for a in range(0,,N): +#for a in range(0,N): #Elements=input("Enter the Elements in Array: ") diff --git a/X_index/test_X_index.py b/X_index/test_X_index.py index 9e253df..e4a8607 100644 --- a/X_index/test_X_index.py +++ b/X_index/test_X_index.py @@ -8,7 +8,7 @@ def test_canassertTrue(): def test_X_index(): #arrange - Array=[6,9,0,2,5,1,8] + Array=[6,9,0,2,5,3,8] X=9 expected=1 From 6f35af10bbd55b5d5f1fe1a9cec2cdf20669b801 Mon Sep 17 00:00:00 2001 From: Udhaikumar Mohan Date: Wed, 30 Jan 2019 15:02:15 +0530 Subject: [PATCH 12/33] 4th and 5th --- .vscode/settings.json | 2 +- Count of Repeated | 1 + Multiple Integers/Repeated.py | 33 ++++++++++++++++++ Multiple Integers/Repeated.pyc | Bin 0 -> 497 bytes .../test_repeated.cpython-27-PYTEST.pyc | Bin 0 -> 1632 bytes Multiple Integers/test_repeated.py | 22 ++++++++++++ 6 files changed, 57 insertions(+), 1 deletion(-) create mode 160000 Count of Repeated create mode 100644 Multiple Integers/Repeated.py create mode 100644 Multiple Integers/Repeated.pyc create mode 100644 Multiple Integers/__pycache__/test_repeated.cpython-27-PYTEST.pyc create mode 100644 Multiple Integers/test_repeated.py diff --git a/.vscode/settings.json b/.vscode/settings.json index 68df530..2528801 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,5 +1,5 @@ { - "python.pythonPath": "C:\\Users\\user\\Anaconda2\\python.exe", + "python.pythonPath": "C:\\Users\\hp\\Anaconda2\\python.exe", "python.linting.pylintEnabled": true, "python.linting.enabled": true, "python.unitTest.unittestArgs": [ diff --git a/Count of Repeated b/Count of Repeated new file mode 160000 index 0000000..4ad41d8 --- /dev/null +++ b/Count of Repeated @@ -0,0 +1 @@ +Subproject commit 4ad41d8d2ee293b140c594bf9b935fea6838b896 diff --git a/Multiple Integers/Repeated.py b/Multiple Integers/Repeated.py new file mode 100644 index 0000000..0ebc7d9 --- /dev/null +++ b/Multiple Integers/Repeated.py @@ -0,0 +1,33 @@ +# Give an unsorted integer array A and its Integer value X, find if X is found more then once in A: + +def Is_repeated(Array,X): + + flag=False + count=0 + for i in Array: + + if i==X: + count+=1 + + if count==2: + flag=True + return flag + + + # Getting Input from User: + +#N=input("Enter the number of elements: ") + +#Array=[] + +#for a in range(0,N): + + #Elements=input("Enter the Elements in Array: ") + + #Array.append(Elements) + +#print("The Given array is: " ,Array) + +#X=input("Enter the search Elements: ") + +#print ("The Index of the given Search elements is: " ,Is_repeated(Array,X)) diff --git a/Multiple Integers/Repeated.pyc b/Multiple Integers/Repeated.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a81958fc686547998ff223b7bf5bc92a32680189 GIT binary patch literal 497 zcmcIgQA)!=6rA1ED%C)t7w|J*ehGpUQCch&TCpmMtVn3q5*m{$J?m2PMo zVBJRp3|~*NZK2^2SV~kqGyxKcGmf|_@ahPbmn2prta|P|HIhy(?wqD1q%KeDOufBz z*4J@nv~@ENRjnf@dHt%Y;tlr!&%XPf#S7n<7jre&s&$GO!DcZ*{>wmLZ}H};V0#^$ZsN$&rcE(x+N j+9H%kqC<4WG;#@N`=q}x|B~o{7X6PRsWW}ylo1}lVAXGT@f@BUL>cp0JBZ!n- zC?~F*cm>{qH{d-u@&NG7I4)3nt(B~I{&v2Z{l@ms`Nog0t@e&Z)S>B9!Fv~f%}a!z zMG4WdRqiX)v#ICMakbRAbnH@8p^tEzp~#j^jRTK72ZzMJ@U$cW5)rHR@z<;|cn1_! zDMkXDj77Z)ofDn8q#uxxOz=6kDBl*b${`R3Hv2~oZQY*W7*~ulG!`T5AK)VRk31K7 zT8Kib1uUV~DmSb5ylnLFzBUZ!RX$Y6MFiCqK3)wbpRt=cEW6n#I2p!?i3b{qiITJv zCfYO#n^D>XVQy9+2KsF}OrjuHSst7w=}DLbgRrkmU5sH@vBfZ~J%JUcgJ*f3=H@0l zbkn>ann1nJl5h|j7(GET3nQZ_?CTyxl10D3ZvRR9HA>X&A=dU&rO!;7wGT(W%2M6l z%kyybatM$(PPY$-s3S|%>cPOMQ;rh+fTcpCqP1*fmT{&iI{+alxnEUiHCIoTOM3-> zW+1Uju6F@Y!2uAXxF}w$bm|iB3!90>H#w;UUpDxJaP>d8cGF9riC3ilRe1HSE^F_oOM@_i{e%5I#YWy4atqijz?0Xp| zB2%tG(JWIAXWj%rg>SULP z07rOCee{^ Date: Thu, 31 Jan 2019 11:46:19 +0530 Subject: [PATCH 13/33] 5th --- Count of Repeated | 1 - Count_Repeated.py | 30 ++++++++++++++++++++++++++++++ test_count_repeated.py | 19 +++++++++++++++++++ 3 files changed, 49 insertions(+), 1 deletion(-) delete mode 160000 Count of Repeated create mode 100644 Count_Repeated.py create mode 100644 test_count_repeated.py diff --git a/Count of Repeated b/Count of Repeated deleted file mode 160000 index 4ad41d8..0000000 --- a/Count of Repeated +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 4ad41d8d2ee293b140c594bf9b935fea6838b896 diff --git a/Count_Repeated.py b/Count_Repeated.py new file mode 100644 index 0000000..899f198 --- /dev/null +++ b/Count_Repeated.py @@ -0,0 +1,30 @@ +# Given an unsorted integer array A and an integer value X, return the number of times X is found in A. + +def Count_Repeated(Array,X): + + count=0 + for i in Array: + + if i==X: + count+=1 + + return count + + + # Getting Input from User: + +#N=input("Enter the number of elements: ") + +#Array=[] + +#for a in range(0,N): + + #Elements=input("Enter the Elements in Array: ") + + #Array.append(Elements) + +#print("The Given array is: " ,Array) + +#X=input("Enter the search Elements: ") + +#print ("The Index of the given Search elements is: " ,Count_Repeated(Array,X)) \ No newline at end of file diff --git a/test_count_repeated.py b/test_count_repeated.py new file mode 100644 index 0000000..f9bc3cd --- /dev/null +++ b/test_count_repeated.py @@ -0,0 +1,19 @@ +# Test case for the count of repeated numbers: + +import Count_Repeated + +def test_canassertTrue(): + assert True + +def test_count_repeated(): + + #arrange + Array=[5,3,8,0,1,8] + X=8 + expected=2 + + #act + actual=Count_Repeated.Count_Repeated(Array,X) + + #assert + assert expected==actual \ No newline at end of file From 137a9e43d3c4a5570b2f0a7496dd5e2bb758f341 Mon Sep 17 00:00:00 2001 From: Udhaikumar Mohan Date: Thu, 31 Jan 2019 11:48:26 +0530 Subject: [PATCH 14/33] 5thproblem --- Count_Repeated.py => Count Repeated/Count_Repeated.py | 0 test_count_repeated.py => Count Repeated/test_count_repeated.py | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename Count_Repeated.py => Count Repeated/Count_Repeated.py (100%) rename test_count_repeated.py => Count Repeated/test_count_repeated.py (100%) diff --git a/Count_Repeated.py b/Count Repeated/Count_Repeated.py similarity index 100% rename from Count_Repeated.py rename to Count Repeated/Count_Repeated.py diff --git a/test_count_repeated.py b/Count Repeated/test_count_repeated.py similarity index 100% rename from test_count_repeated.py rename to Count Repeated/test_count_repeated.py From 4e7921590f832fb9c4c40e16bc2a8ba68bf7357d Mon Sep 17 00:00:00 2001 From: Udhaikumar Mohan Date: Thu, 31 Jan 2019 15:04:20 +0530 Subject: [PATCH 15/33] 6thproblem --- Count Repeated/Count_Repeated.pyc | Bin 0 -> 436 bytes .../test_count_repeated.cpython-27-PYTEST.pyc | Bin 0 -> 1624 bytes Indices/Indices.py | 28 ++++++++++++++++++ Indices/Indices.pyc | Bin 0 -> 413 bytes .../test_indices.cpython-27-PYTEST.pyc | Bin 0 -> 1569 bytes Lengthofarray/Lengthofarray.pyc | Bin 402 -> 398 bytes .../test_lengthofarray.cpython-27-PYTEST.pyc | Bin 1599 -> 1593 bytes Multiple Integers/Repeated.pyc | Bin 497 -> 493 bytes .../test_repeated.cpython-27-PYTEST.pyc | Bin 1632 -> 1626 bytes X_in_given_array/X_in_Array.pyc | Bin 439 -> 435 bytes .../test_X_in_array.cpython-27-PYTEST.pyc | Bin 1654 -> 1648 bytes X_index/X_index.pyc | Bin 418 -> 414 bytes .../test_X_index.cpython-27-PYTEST.pyc | Bin 1582 -> 1581 bytes 13 files changed, 28 insertions(+) create mode 100644 Count Repeated/Count_Repeated.pyc create mode 100644 Count Repeated/__pycache__/test_count_repeated.cpython-27-PYTEST.pyc create mode 100644 Indices/Indices.py create mode 100644 Indices/Indices.pyc create mode 100644 Indices/__pycache__/test_indices.cpython-27-PYTEST.pyc diff --git a/Count Repeated/Count_Repeated.pyc b/Count Repeated/Count_Repeated.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f9223cf8f4c23555fdfbe7df4bff455dfb9199a3 GIT binary patch literal 436 zcmb_W+e*Vg5Iwt5k>Uz|fxek1p9Dcfl=Mw3v_%wIk&>(!s!hypz(D%ucls0k0nco` z{D8~M**P=AnUk!{;PYv0b9_I=|AOfap#VOBdlm}QRI`%{Y%mjM#`MPoj+Ywmhv=Y=yHj2mdyEC)%jlG|X^Y8ly-Cc*MN7c{8dl!#k665bsN_6DR zc$Wqq4Qg~$pJ{wL@+o%dGu#>!d&10d;9*e1A;~ZNI+6g1h*kS|3~MajA;on{kiaAB z(7>e&qBEb&BeIeSJ{JxZ+alIE1mehJ|F}k5_s(&QFUAH<#R&T+xJdnnfsZ^LL?P8J zkjNNa*wqI?K6(7mST5&HG1kaM1l2V@!5mDAYqu?s-Fy-rkCW6UBZI_5Y1WHUW9Lho z)y9TVVOJoA<}@3paaicQ2v5@NI7-7&G}N{!#;C8^V!5n6DJ#iFFN-28>>YOKXT>nG zq5hbs(I~Po22#ZWj9f)&Uk@OX5c3+`{?8nd$BoMKn1W zqeL8Ly8GF9WLII*k=1cmO7F3bD;C{aKCx{aTAEOWl*t!Xht_cW!oa|s!vx;tfewf#H+AU3rE`y_E=@f;17D+QjZDocfe|mU*hk=U z<I=eA=zKQ5pB7>(%@jPwC3;%|FpM`l6_G1<%B8M$d++xh3 zmo|fT3g$K|fWU@$&(YN9;J-nLK4QW;@Kieq-(13QOBh%Q9zF?#ch4}{*)e?S6-HNg zb_A{)fGbA;54wkWDRvbEMm;-@(h9;G3hMu`zKP%x;+q1ZDo@E@pX}-?;D~@hE_fB_ zgfr+U?#V8LgxG~t0N=}oc~oe{SrxCDVrVGFh~hRBFM;e|CmZR2^_GtjjAGzK?-cKw zT4c)%^CbY+FXeIvo?MZi$~p+SnVsNCUb8OTm$?f<-iqTpzSs6z*od#ROe+*f!`w(X z`+$U@T#voaN~{_dbFJ(U`?*%=4@F|juf?SnFe9oga_wpf3dP4N{^tDY{07_SKDUQi SJWlmW^r3Lk1!7XBuNGZEfm)6aiq~OB#RPTO}pXCoY ziA8_FkeN5{k<28mug>ZT@VxeCY7C*Puho^xh|7XC`4@9!=u?^@at1pr5FVq zG8PSNIwLx9Nk1hcm9XZ_qI^r#Du+NFIlMls(B^|vq;bVrqp3LI|B5Bj|GwvTqr8`gMrxD@wpnt1JG6aUjVPE0(~C`^>3y&%zM zuJD;i8$Za+GE`q5r{g5_^C-*xqa^(lB>pHEMy4UopdYcva9g|5R-BIBPS$z2rwH4iGuOTU7&_p)($u0en@$~?+B9|O1agI@71F=R2x8#^t9=CCE!Xrx zMulP|uMw_oP@REtE+H;2V^A(c1q-4wD4?=Vn_=VMuy3<4N5X#0!bIh;28DCX7f4@Z zK&KGq*#O$=vbsT2mxHeYhkb+u^p|id9dwHU;7g0~P|T2Nwzb=u54ogprQH@F*8wEM zh8vH1CJGfV6~=;|83#!T>AHgXKbkiXTtK`bn3Q!2`Q~ERVMhv&;WB)!B^<(hDf?;P zKTynp;qCe0J`uQk=`aiONO66|Bc&J$#c7mG4+Af=)=5W^$9BVMghxz0(ShRGQuFMY z@m-*|cBvP@x+u85kIntztrpQ;UjYN`d6W^)=W8?I%|v@#i>QbF&PDu@3FdU)?ix2giT_yI_okl G;)wuJ;TpXF delta 91 zcmdnVv!92Z`7y51E7zOv@#i>QbF&PDurC41yYcM@z!Xohsi}MDS0~i<>oULL)i&Kk=V@iSKWPUc6&1y^!nXpSuj$&Pg HRVEPt2+JG* diff --git a/X_index/X_index.pyc b/X_index/X_index.pyc index 9763472b17e75723e5848e463554e13796dcdb22..3d81561173bee9f01339d7b0cc9971c974016923 100644 GIT binary patch delta 57 xcmZ3)Jdc^3`7=V1yNPwr(D1pw(V5+MKp delta 61 ycmbQoyoi~d`7v@#i>QbF&PDu-?CUtmSKuzkK&%uvI`P{YiS#>CLf!jQ?tkitFrD3d-1H$w^!gINmi~3^hQ8;A978O-9klSL5WjSpcYKE93wG delta 186 zcmZ3>vyO+I`7}MDST^JY`oULL)i&Kk=V@iSK3e;*1lVK&$ht1U From b170a3dbe1a324954337f123db1af3f3176cbbca Mon Sep 17 00:00:00 2001 From: Udhaikumar Mohan Date: Mon, 4 Feb 2019 13:57:42 +0530 Subject: [PATCH 16/33] 7,8,10,11 --- .vscode/settings.json | 5 ++-- Mean/Mean_of_the_Array.py | 28 ++++++++++++++++++ Mean/Mean_of_the_Array.pyc | Bin 0 -> 440 bytes .../test_mean.cpython-27-PYTEST.pyc | Bin 0 -> 1566 bytes Mean/test_mean.py | 18 +++++++++++ Questions.md | 4 +-- Smallest and Largest in Array/Largest.py | 28 ++++++++++++++++++ Smallest and Largest in Array/Largest.pyc | Bin 0 -> 441 bytes Smallest and Largest in Array/Smallest.py | 28 ++++++++++++++++++ Smallest and Largest in Array/Smallest.pyc | Bin 0 -> 445 bytes .../test_Largest.cpython-27-PYTEST.pyc | Bin 0 -> 1160 bytes .../test_Smallest.cpython-27-PYTEST.pyc | Bin 0 -> 1644 bytes ...est_Smallest_Largest.cpython-27-PYTEST.pyc | Bin 0 -> 2016 bytes Smallest and Largest in Array/test_Largest.py | 18 +++++++++++ .../test_Smallest.py | 19 ++++++++++++ .../test_sum_of_Array.cpython-27-PYTEST.pyc | Bin 0 -> 1613 bytes Sum_of_Array/sum_of_Array.py | 26 ++++++++++++++++ Sum_of_Array/sum_of_Array.pyc | Bin 0 -> 396 bytes Sum_of_Array/test_sum_of_Array.py | 19 ++++++++++++ 19 files changed, 188 insertions(+), 5 deletions(-) create mode 100644 Mean/Mean_of_the_Array.py create mode 100644 Mean/Mean_of_the_Array.pyc create mode 100644 Mean/__pycache__/test_mean.cpython-27-PYTEST.pyc create mode 100644 Mean/test_mean.py create mode 100644 Smallest and Largest in Array/Largest.py create mode 100644 Smallest and Largest in Array/Largest.pyc create mode 100644 Smallest and Largest in Array/Smallest.py create mode 100644 Smallest and Largest in Array/Smallest.pyc create mode 100644 Smallest and Largest in Array/__pycache__/test_Largest.cpython-27-PYTEST.pyc create mode 100644 Smallest and Largest in Array/__pycache__/test_Smallest.cpython-27-PYTEST.pyc create mode 100644 Smallest and Largest in Array/__pycache__/test_Smallest_Largest.cpython-27-PYTEST.pyc create mode 100644 Smallest and Largest in Array/test_Largest.py create mode 100644 Smallest and Largest in Array/test_Smallest.py create mode 100644 Sum_of_Array/__pycache__/test_sum_of_Array.cpython-27-PYTEST.pyc create mode 100644 Sum_of_Array/sum_of_Array.py create mode 100644 Sum_of_Array/sum_of_Array.pyc create mode 100644 Sum_of_Array/test_sum_of_Array.py diff --git a/.vscode/settings.json b/.vscode/settings.json index 2528801..4106d6a 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -5,12 +5,11 @@ "python.unitTest.unittestArgs": [ "-v", "-s", - "./Lengthofarray", + ".", "-p", "test*.py" ], "python.unitTest.pyTestEnabled": false, "python.unitTest.nosetestsEnabled": false, - "python.unitTest.unittestEnabled": false, - "python.unitTest.promptToConfigure": false + "python.unitTest.unittestEnabled": true } \ No newline at end of file diff --git a/Mean/Mean_of_the_Array.py b/Mean/Mean_of_the_Array.py new file mode 100644 index 0000000..2708cf1 --- /dev/null +++ b/Mean/Mean_of_the_Array.py @@ -0,0 +1,28 @@ +# Find the mean of the given unsorted Array: + +def Mean_of_Array(Array): + + A=len(Array) + sum=0 + + for a in Array: + sum+=a + + Mean=sum//A + return Mean + + # Getting Input from User: + +#N=input("Enter the number of elements: ") + +#Array=[] + +#for a in range(0,N): + + #Elements=input("Enter the Elements in Array: ") + + #Array.append(Elements) + +#print("The given Array is", Array) + +#print("The Mean value of given array is", Mean_of_Array(Array)) \ No newline at end of file diff --git a/Mean/Mean_of_the_Array.pyc b/Mean/Mean_of_the_Array.pyc new file mode 100644 index 0000000000000000000000000000000000000000..758e886c3ae8e2b48819a828722039d2bc09f9f6 GIT binary patch literal 440 zcmb_X(MrQG6g^4nkgKF9MS3yM_>+1$?$Uq{cY>^GOruL>_p?y;S%s=u6yf+N| z0R#8kn{$$rljtWIetj>^3Wue*-*ZvIum(PXCms|Qsb*#+`Vm*eHQ}Ng1`l+=heEI9 zXs_{pCQSBxiatW8(M7mo`t2M`*(qG~F}nERI@_`dQt|d;yt8F0k9dJ`T^FqvZ5%{u z_F-4}n7OGf%9J|-P{z~b+B}l2$!scK!qK9f0GS3Ih{)PDGB*$!iyLanmXYWD?$?yyLieD4} literal 0 HcmV?d00001 diff --git a/Mean/__pycache__/test_mean.cpython-27-PYTEST.pyc b/Mean/__pycache__/test_mean.cpython-27-PYTEST.pyc new file mode 100644 index 0000000000000000000000000000000000000000..fec88832c3f34742067e48f6399b769e63cf6e03 GIT binary patch literal 1566 zcmb_c&2G~`5FXo!lcp*32caS^y&#zbRa;6As6nj?$40^hAyt+vH{P^Po!Ihj1d);p z?HlyK!*J!q>u?9Y87BowZxF@n`JdUDZ|rKNJ05uz1WA72*OmlGL@YYMqgi6`4k@luf&>m3 zi+VO)5S_cEpOBGEu(`0P*cGeFp>I?JQsP|@ItCP zI3lf8Vb&gb`Do*@HeAk|VyKXd2%=kTygF1q*KV3P_VQ79GE7pF3^WoGrCBFRwP}<( zqqGU5!mNS~^;tGdmNtA|zsISbND5I`ojp4HPrK}_yyef*UFe_}(&5C|x zLiHg}qd{b#^rVV;D7lJKzv+P`IrJ{5gXh6pTu}#SdGJ!{bCc!4;mB8cri1;Wh(@o6 zC=tPQaHyg|AO-h9t>+`Ni~u6&AfuGT&8b4F`Kn~Ov|oaS*%}_1WgT^4;6On+6-+b+ zC~9%(DPCY?RVZFzXpTWFvH6F`3tU1=xWp9By4H&Kre9v5qta4<^3tQ(p$ z6$*gN!f#TM_>2%S4zUZV0KSv;^Qcfhm*VrKeQt@*jqqiocnM_x+Sx$Kni>vM2INii zIggp4y@ccDHD99t=?(tb|J(+tkoTF_gKL&qk@L`Uox4txT)LtqS|v{mxzKR-X$V8P zxOu=rEEb}ymp8!XtrzNjk(ly3a4j|5nyE$_>Mugzb6B6hCckbb)W0t~-)Og=#luv+ O5J0k^Nz2r<=bWEwQdY_U literal 0 HcmV?d00001 diff --git a/Mean/test_mean.py b/Mean/test_mean.py new file mode 100644 index 0000000..37d791d --- /dev/null +++ b/Mean/test_mean.py @@ -0,0 +1,18 @@ +# Test condition to find the mean of the given array: + +import Mean_of_the_Array + +def test_canassertTrue(): + assert True + +def test_mean(): + + #Arrange: + Array=[6,0,1,7,11,4,3] + expected=4 + + #Actual: + actual=Mean_of_the_Array.Mean_of_Array(Array) + + #Assert: + assert expected==actual \ No newline at end of file diff --git a/Questions.md b/Questions.md index 0e47ccc..2594a50 100644 --- a/Questions.md +++ b/Questions.md @@ -10,9 +10,9 @@ 6. Given an unsorted integer array A and an integer value X, return the indices of the locations where X is found in A. 7. Given an unsorted integer array A, find the sum of all the elements in A. 8. Given an unsorted integer array A, find the mean. -9. Given an unsorted integer array A, find the number that occurs the most or find the mode of the array. +*9. Given an unsorted integer array A, find the number that occurs the most or find the mode of the array. 10. Given an unsorted integer array A, find the smallest number. -11. Given an unsorted integer array A, find the largest number. +test condition*11. Given an unsorted integer array A, find the largest number. 12. Given an unsorted integer array A, find the number of times the smallest number is found in the array. 13. Given an unsorted integer array A, find the number of times the largest number is found in the array. 14. Given an unsorted integer array A, print the contents of the array in the given format: {arrayindex:value, arrayindex:value}. Note that there is no comma after the last value. diff --git a/Smallest and Largest in Array/Largest.py b/Smallest and Largest in Array/Largest.py new file mode 100644 index 0000000..68554d3 --- /dev/null +++ b/Smallest and Largest in Array/Largest.py @@ -0,0 +1,28 @@ +# Find the Largest Number in the given Array: + +def Largest_in_Array(Array): + + Largest=0 + + for a in Array: + if (a>Largest): + Largest=a + + return Largest + + # Getting Input from User: + +#N=input("Enter the number of elements: ") + +#Array=[] + +#for a in range(0,N): + + #Elements=input("Enter the Elements in Array: ") + + #Array.append(Elements) + +#print("The given Array is", Array) + +#print("The Largest number of the given array is", Largest_in_Array(Array)) + diff --git a/Smallest and Largest in Array/Largest.pyc b/Smallest and Largest in Array/Largest.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2003dba2a684c4dbef195ef33ba84537b91d681b GIT binary patch literal 441 zcmcIeO-lnY6nshjq8RY*Wx>my#H%8rv_~!2MG6urp&NARc6ZH7!G-qbFV;WMNgD7M z7?R1nH!qVJ{Ho#g&rB~UErI(UhZUeC`X+h>5me+7okh?G>5Opm6#(*9(ANcRh{kW{ zw3W2M7PLGdrviuksluM2ySJKDcu9GL;OGwl56+q1AA>y__iowy@S)jHfe{yg(T#p# z>sWtudTe>=+fG0AQ`@zyqr>wWPph_JU93!9qsUBCX2~3dV zM1$v3T1#4C3Yrr+6*%NK73Kuhjny!3+x8>HbxMPyKLFe~XBvM5HeQ&bufgc5FOiz)0Xg61cF;GNJfYVE(oCtH45CI5-tc7Sz2x5ZR*6at=)+rQgfl) z__;`2;mszY9Jqqz9nY6{-prfm`_;W~KR#p+1EMi)o)F(d948{j8&F9!3buMk(}<=m z8nw5cm_{+>A$>(!hw{iPJM!ak(!wRhPdrDy01A<~hB!_!~so1x*(dx z9p>rQZ{0mY%{^KM@og@5(Qr94~bH;M- ze$p%-KX5E?-r0pgEh4!7l9TKplnQq4LL4?rb+RZ*E-Ht@L}fkJrQ^MIjE!TZE#HNy z+*!RSb7f6q)ugOXbg3#mH@xeE`qW5-1=hgBD(dQ$wYBA2l5kqvxn^ZPH>IvLBbay; zR}d5w>-dudCVAmLLK{BM-lIjAoi*7@<7Qkp*_&l*n%ZRpYxVN&0uXVT%Z}%|EMfF? zmG@q2I}yF8dOj`loou}QX36`w-228ruLZ+)e zZzK^oEO@-hLMLWw#%yv=pdRx=m;Y;wvO|B4R^T`h6x|Nu=z5gMcCa+5wu`1z>YKPH zPEY}!`fCcnW8a!jw&3+v{r38?Y$B;NpGx6Wu1#-3T(;}Af4e%;-od=i7o~Y2jre}M Kv`^h|H~Iy3$Qc~~ literal 0 HcmV?d00001 diff --git a/Smallest and Largest in Array/__pycache__/test_Smallest.cpython-27-PYTEST.pyc b/Smallest and Largest in Array/__pycache__/test_Smallest.cpython-27-PYTEST.pyc new file mode 100644 index 0000000000000000000000000000000000000000..4c85167c5d90c3bbb0be30cb8217159f8ea7b212 GIT binary patch literal 1644 zcmcgs%Wl&^6upiUw`o)QKtg4g4U$<<(NelVP1UNfgGjg_L}kfxW2bfM*w)NM5Gh$e z`2Zw-hCkp}SR%1x0q0)FMU-wKipO)`uXAmGUt0M3?Ulc05%p;HtKq$mNAnTkZ&6Bg zY*qIf4Qv|J>9|pG96EL=s?i6i%~52_Wu6U>+&Y{jKk@5I00bgt9pcff+98E+B`Fp5H{ztBZI9*sF z)D0Y=*0D0}J8m()e^(n$=Y<-@h(!d}H9GD*L>}jES~&KLad0w9Qj=sFfr-+*7pB@Q zlrj@*6NJjFgADXpK1!oN#f1t^)BGe%gDf1zrYXX(AG5@8S_hI=l4nnp%9Xjv3jJIS zLleYri!{ta1EDKfEJDaxl=4j%B*~#)<97JSe~A*ce^&U9V|{M&!hbgQ;v(1nfl}f4 z`3Nb(nf8x{VVZ(yhgsBq8md#iCs|w6e5s^T*(k*>LpqW#cdh}h=01?+&_RhL zCi#&;H;^>Y0Em<$!?+`dP94JJaG6>>(}6V`-n2#&+-r1Rqp3|3oAeJd0=sC1$v#}I z&UE@fOPvyUZW2a0XjI^NCngT7F?c=-34932;Av8{Ks(XmpJtycGx&wsm&!~?Hd~~q z#h9y8w8o&F;IhmN0CQfnn>0Zd66X?xs3Rh*15dS^Fq{(E42A)c$H7fZc&?hsPDgXE zXBcgFIs(@%z?E%*hq!0r$YWJOVAwOGFr7ho%LDr_tZ&1(g!s0AXcniuUmxu1D!_%y zDM}I*F3c)86%iy^AlUJ^9uWoDjZ_w(mk*0j#U5wjarqu2#GB)T%ksDzvX9+7i)C#M zyD1&==6Or3QK7#?;N~S=Zo`8s^g~$;IsWl>NOHXVRX4aOnIqZjmSZp5E$qZ6TBUVz zrB<#asJAftAC60|;oi+8(s6GE43FJ<{Q3D^`v0h( X%iSI3(I}1gc*dF;En1^it!e)PDC>6d literal 0 HcmV?d00001 diff --git a/Smallest and Largest in Array/__pycache__/test_Smallest_Largest.cpython-27-PYTEST.pyc b/Smallest and Largest in Array/__pycache__/test_Smallest_Largest.cpython-27-PYTEST.pyc new file mode 100644 index 0000000000000000000000000000000000000000..70f2f6f588662ff54154e903223e4ffdd13c4a7e GIT binary patch literal 2016 zcmcgs-EQ1e5FW30oouqDO`s@;ZPw(D_N&&C-uf_TRvw+ zSK3_A_5qN18Qy@`LE;993;4dVy%nM2GEsbX=FI=hH^=|u#?B|d|1ka26PZc-*Te5) zeD*1h1pl7oBBx$Q_hjzNyf3GN?k14aprg0sbW4(+yoSlPB)$?uN%~6c(A!BkfamOQ z{7p0}qDvp&6MU984!^M^1IZB87w5^mC$B^<0ta*81F*4uUM}+_uG6ZH&-3z`$>YK-Qa4ng zIZG*VOzT+F%F5#Fx-M(?E)~wodSP6gzNm6j7zbgfS?of{EE@UU5Ul874X7s%r%zF$ zoj$LoU#0fKmDTjyRg_kxogUY^I~ zJz0b9$wf~teOdcr{}QK|Om2}qgR8w(=M1RnO9szF!AR$W4n#kxNkBD%=x1et6J-e^ zAa+L{B)k7M`?WKJUzq*YnJG)NT}ej7USE=Zf_Dw#CNBWcZPgyi8d+$Z4H!`e_Ut6& zbSD{Ml@Wg#;eh0E=)!Qmmh91yWv^STj*pHMw)X&A+5#8p%%w?0RYjtixuwZlDBp{4 z{U6NVhj9b-`wFHuPD8&v*wvMQi;yX55*EawB=6#xG=#Z!E-p_7aq&F~SQ zIM^=*S*UoSwB2cU>kYjbU8wVU50Yrp^K0)RBkN1kW_laEB}l}-tu1VT$kO8OQI2DU zmivI0c&#vk!v-UG^A79u$2xP(3%t2?Y(^_l$VTi)L=O>tM|{kq4{^Ndz;!~26+c>( X$udvBaM90?j zZd1>pUX70HQ;ti=E-9NnLajl{k;@Dl9(px6Nq*wjmH-Gu%sRlMnPcz{N!2Mq0Edi4 zJ)16w&RxzLtMVvOQ5b73= zNb9&TtM|Qp^yq;$oX(qK7$X)DSU2c+GZ6WlyJ_Lr%}3$MFiA}^&3)J;`DYLe8R;uX`X#4*e3hgQvj}O4Pww9z2irxykb2)yR+YOb2^K5sh9C zks_Sw;BeRvvu-HdKoZwiIBWUHEWx1&I>x}o7j?`qN-OAY_+bBq@l6<)(B2gARB_7t&B3m(09<$sIYIwbfC!_) zP{hdc85m{}M~Ib31^1n-pGQUPa}qvpo6pVgxq4p~i(4RT*v}Klz_a!3AF37O9A4*OJ$|?UiU|ga!z1*XYg@`78pOC zVrS7Bv=#%(?->?k`}xU+?Z^}8ns`9Csj8xhN@w*pszb5wUC4eR>VU#A<$@dK^MSuFqn literal 0 HcmV?d00001 diff --git a/Sum_of_Array/test_sum_of_Array.py b/Sum_of_Array/test_sum_of_Array.py new file mode 100644 index 0000000..bc9f330 --- /dev/null +++ b/Sum_of_Array/test_sum_of_Array.py @@ -0,0 +1,19 @@ +# Test condition to find the sum of the given unsorted array: + +import sum_of_Array + +def test_canassertTrue(): + assert True + +def test_sum_of_array(): + + #Arrange + Array=[6,2,0,1,7,9] + expected=25 + + #Act + actual=sum_of_Array. Sum_of_array(Array) + + #Assert + assert expected==actual + From 33bdae95908c9b0d745b984d64a2801296c12204 Mon Sep 17 00:00:00 2001 From: Udhaikumar Mohan Date: Mon, 4 Feb 2019 19:54:50 +0530 Subject: [PATCH 17/33] 12,13 --- .vscode/settings.json | 3 +- .../test_count.cpython-27-PYTEST.pyc | Bin 0 -> 2355 bytes .../count_largest.py | 31 ++++++++++++++++++ .../count_largest.pyc | Bin 0 -> 537 bytes .../count_smallest.py | 31 ++++++++++++++++++ .../count_smallest.pyc | Bin 0 -> 542 bytes Smallest and Largest in Array/test_count.py | 31 ++++++++++++++++++ 7 files changed, 95 insertions(+), 1 deletion(-) create mode 100644 Smallest and Largest in Array/__pycache__/test_count.cpython-27-PYTEST.pyc create mode 100644 Smallest and Largest in Array/count_largest.py create mode 100644 Smallest and Largest in Array/count_largest.pyc create mode 100644 Smallest and Largest in Array/count_smallest.py create mode 100644 Smallest and Largest in Array/count_smallest.pyc create mode 100644 Smallest and Largest in Array/test_count.py diff --git a/.vscode/settings.json b/.vscode/settings.json index 4106d6a..7ce4265 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -11,5 +11,6 @@ ], "python.unitTest.pyTestEnabled": false, "python.unitTest.nosetestsEnabled": false, - "python.unitTest.unittestEnabled": true + "python.unitTest.unittestEnabled": false, + "python.unitTest.promptToConfigure": false } \ No newline at end of file diff --git a/Smallest and Largest in Array/__pycache__/test_count.cpython-27-PYTEST.pyc b/Smallest and Largest in Array/__pycache__/test_count.cpython-27-PYTEST.pyc new file mode 100644 index 0000000000000000000000000000000000000000..509a31293f0e1404cf5c5cebbf79ace3c687e34d GIT binary patch literal 2355 zcmeH|QE%Kt5XZ;%o$oHaHcf$2#LK-P%mWcEr4Ohr+BloGqW?h`uhe;8a$ue^j zRVK$7HI8ZRYg&0#e$_NpUVV0EX?3<)HVLvZtYBtxE zEUH!McI&mfhN;^T3%$M^(Hi6jRJ2291ipQAkYG-o{S_YD1@^ME?2hUS=8PbgKJX103 zM8X4PCvqp<`n%gNy&L9*+poQwigW|lm&n{e(j7v(LFWnw0Om-o$FdpH`L7US9jLFv zh#G`BqdFiP(1R7}mJkK@+143T1s!E$gJo45J!Wm?0B} z3pZSb;p(;Y4yrQK3U!=Dxic&>bD0)B=q+zIpUW-ypS~o2rZu3=MHYf)#v<=`fQ!*X zli+2?%Mb5`6w<%kxtWY*;Nb}K9Gh1%)4wj;foEp@G2f7+}&lB Xu8QmnUQ?FaGL>sG^``zLm`wi!Bfs#R literal 0 HcmV?d00001 diff --git a/Smallest and Largest in Array/count_largest.py b/Smallest and Largest in Array/count_largest.py new file mode 100644 index 0000000..894fddb --- /dev/null +++ b/Smallest and Largest in Array/count_largest.py @@ -0,0 +1,31 @@ +# Count of the Largest number in the given array: + +import Largest + +def count_largest(Array): + + count=0 + X=Largest.Largest_in_Array(Array) #X is the return value of Largest.py + + for a in Array: + if (a==X): + count+=1 + + return count + +# Getting Input from User: + +#N=input("Enter the number of elements: ") + +#Array=[] + +#for a in range(0,N): + + #Elements=input("Enter the Elements in Array: ") + + #Array.append(Elements) + +#print("The given Array is", Array) + +#print("Count of the largest number in the given array is", count_largest(Array)) + diff --git a/Smallest and Largest in Array/count_largest.pyc b/Smallest and Largest in Array/count_largest.pyc new file mode 100644 index 0000000000000000000000000000000000000000..9d923f4c9943d2a32a691b08caa6a32be260ec3d GIT binary patch literal 537 zcmcgp!AiqG5S`s>6-iK!Lc!e3$*UkDN~40R!nt|JV=EH`_w- z2V7>}zIoZqyiI!F?#|WqRK>Jf68i;G9{>`Bpq%IlMA8?CU}fU>@HG3u8pi^31If}5 zsTpu+A;=KD3F?SGQA+waVm^94q(zT9gru3IdO#hzN;<(C?*onp2+JAc49zIx89rMx zTY#IWeo3`4dutwMMR-})QR}l6vk9=JWpUXQ#&D0R#mEOG3;Gdkc&hGoT5I)MsZpwD zrmWO$8>CgKmF;rZU|d!fT21Cro}=)hBJox}ysYr-F=YpZ`O@BT)fyMw|A=f%I{=b> lu`6BSh<#~q7O)uf0c&^vVR0K1&*o*)40R!nt|JV=EH)}=x z0hgJVH?y00ZxiQzuyubvS23-Z#PbxXcL51PP)>9UBIyl8aA)Q_*v&q$rm+CsKyqu0 z)C@SZ5@d*;1a(BOC?&n@GoRe;(aNC?A!#A09#My>k`D34^N8aHjW3O9hGCSkhR@ba zA23@+d7f%xhQEq1E5ft7j#{71m`#8!EsM*hFovhhEk-^lSX^= z!jzS|Y=g8awX##L8t7$Zq1Csz7Zr(j5!Daa@Up_Q$CMQc_1fS;)tYUL|J!A2+69p8 mi5)o*t{6&tyMUWP5AfsfUrhEPdAux>CQncJKWhHguKWa>et^yZ literal 0 HcmV?d00001 diff --git a/Smallest and Largest in Array/test_count.py b/Smallest and Largest in Array/test_count.py new file mode 100644 index 0000000..5403f41 --- /dev/null +++ b/Smallest and Largest in Array/test_count.py @@ -0,0 +1,31 @@ +# Test condition for counting largest and smallest array: + +import count_smallest +import count_largest + +def test_canassertTrue(): + assert True + +def test_smallest(): + + #Arrange: + Array=[7,9,2,3,8,2,2] + expected=3 + + #Act + actual=count_smallest.count_smallest(Array) + + #Assert: + assert expected==actual + +def test_largest(): + + #Arrange: + Array=[7,9,2,3,8,2,9] + expected=2 + + #Act + actual=count_largest.count_largest(Array) + + #Assert: + assert expected==actual \ No newline at end of file From 32ad79e6cf7105cd97019dd5fc0176497e72ac66 Mon Sep 17 00:00:00 2001 From: Udhaikumar Mohan Date: Mon, 4 Feb 2019 22:32:53 +0530 Subject: [PATCH 18/33] smallest --- Smallest and Largest in Array/test_Smallest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Smallest and Largest in Array/test_Smallest.py b/Smallest and Largest in Array/test_Smallest.py index 998d0bf..693832f 100644 --- a/Smallest and Largest in Array/test_Smallest.py +++ b/Smallest and Largest in Array/test_Smallest.py @@ -1,4 +1,4 @@ -#Test Condition for the smallest and largest Array: +#Test Condition for the smallest element in array: import Smallest From 0a8f1541431edcccd5c8d2eedc8c42399ac9bf49 Mon Sep 17 00:00:00 2001 From: Udhaikumar Mohan Date: Tue, 5 Feb 2019 14:44:36 +0530 Subject: [PATCH 19/33] test corrected --- .../test_Largest.cpython-27-PYTEST.pyc | Bin 1160 -> 1630 bytes .../test_Smallest.cpython-27-PYTEST.pyc | Bin 1644 -> 1644 bytes Smallest and Largest in Array/test_Largest.py | 4 ++-- X_index/X_index.pyc | Bin 414 -> 414 bytes 4 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Smallest and Largest in Array/__pycache__/test_Largest.cpython-27-PYTEST.pyc b/Smallest and Largest in Array/__pycache__/test_Largest.cpython-27-PYTEST.pyc index ab21b7b5e44b853e06fb73b1de5bb0c20156c433..ce8fa2fc0efa583ec6ffc9bd7185f7aa107565a9 100644 GIT binary patch delta 680 zcmZuvO=}ZT6g~6aOxj7(rV%V%cA+rcsjb}wl~1+WTGDlBL#Tq=|r3k~-RUSUjPN8BNG_BJ&`g;j_V zWw+r&j3cao%Ld%%WzA_w9Yu@l+TGf?Q)+F)#yGXjzj@#9XcQ*x_KsG<kddaJpY| zhb~4Ol*XvK^dj@JDAKuU(=s~}ldE`<&-?4ypWge!S#g#6WAWQ{!8-7~>gaM`7Jz;jG;~L| Y`RFQiae(SZziaI=V?@*(RKNB0ACxVA5dZ)H delta 182 zcmcb|)4|Ef{F#@l`&)R7_D0S?CU0g21_o9jb_U{N3m}og$dJOskiyK6!orZk%8<^= zPzw}fW~gOkC}Cj8Vq~acU}$D!sAXcP0kWAGvY8kdQy3V6HP|NSGs`k*FiqBBQBl_b znOg!f*s-W6v9g2%$V#m!NKGzDO(|gmauSnEN)vM?-)5=h0m(5ii!!n?^D|G*V~ybE P0rG>mL4@Gsi>$o>?1CZR diff --git a/Smallest and Largest in Array/__pycache__/test_Smallest.cpython-27-PYTEST.pyc b/Smallest and Largest in Array/__pycache__/test_Smallest.cpython-27-PYTEST.pyc index 4c85167c5d90c3bbb0be30cb8217159f8ea7b212..826b72b646a31cc480df9adf87bbe7f5ab0ca195 100644 GIT binary patch delta 18 ZcmaFE^M;3$`7 Date: Wed, 6 Feb 2019 12:25:12 +0530 Subject: [PATCH 20/33] Mode --- Mode/Mode.py | 37 ++++++++++++++++++ Mode/Mode.pyc | Bin 0 -> 484 bytes .../test_Mode.cpython-27-PYTEST.pyc | Bin 0 -> 1509 bytes Mode/test_Mode.py | 18 +++++++++ Questions.md | 4 +- user_input.py | 15 +++++++ 6 files changed, 72 insertions(+), 2 deletions(-) create mode 100644 Mode/Mode.py create mode 100644 Mode/Mode.pyc create mode 100644 Mode/__pycache__/test_Mode.cpython-27-PYTEST.pyc create mode 100644 Mode/test_Mode.py create mode 100644 user_input.py diff --git a/Mode/Mode.py b/Mode/Mode.py new file mode 100644 index 0000000..5486bbd --- /dev/null +++ b/Mode/Mode.py @@ -0,0 +1,37 @@ +# Find the mode of the given array: + +def Mode(Array): + + count=0 + maxcount=0 + mode=0 + + for a in Array: + count=0 + + for b in Array: + if(a==b): + count+=1 + + if (count>maxcount): + maxcount=count + mode=a + + return mode + + +#Getting Input from User: + +#N=input("Enter the number of elements: ") + +#Array=[] + +#for a in range(0,N): + + #Elements=input("Enter the Elements in Array: ") + + #Array.append(Elements) + +#print("The given Array is", Array) + +#print("The Mode of given array is", Mode(Array)) \ No newline at end of file diff --git a/Mode/Mode.pyc b/Mode/Mode.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c5afffe186b97e02576235df7273ba3dd858bc5a GIT binary patch literal 484 zcmbtP!AiqG5PjJsMWi`+vnP+{P`nmIL}{-rv_*<#J=8W}h)vS$23kmN{;>zIzS$J~ z0F!+$GjB38Z~gD+@+V*GEzXa}?-OAn(hm3n)(ku>V?|{v^&SxrW5QG|+JkHbLDs_|*Y z=h|6HLMoPGiDEHkL(+3qZB8!Q7Ikjz1-1R=*d=0pU+fYqjT^`BT|aY}5ovs{UrbUN z{ZZ;kVlrEldU{$UWnr|NJ+BjE(;_!|%1Msy%9EARB8WS4O@iuqd{yMo_pVf*d8B5s aEMJJ>ztt}K*M7O@1MgOUCXdbobNm7-jbCg4 literal 0 HcmV?d00001 diff --git a/Mode/__pycache__/test_Mode.cpython-27-PYTEST.pyc b/Mode/__pycache__/test_Mode.cpython-27-PYTEST.pyc new file mode 100644 index 0000000000000000000000000000000000000000..93963496d7f489929cd28091323de8be305f315c GIT binary patch literal 1509 zcmb`G&r{P-5XU!3n-(k}Fe=`-I1>*tfXKn24h(vvGX}kMGLs3-E2N}N%zGW}Oz|LG zJ^8ozANU`6@uuJ1r05_w?KCfMf4tp&+0Q!P7v|qxb%Rxls7KY$#(N)+<|W48qLip> z&Gt4892(T9Tc2rM>bex$bOpBt#g1&6eDK(-AxQEQzm6n8B4X7c9?cqqcSv!a5+rcQ zSTwNdlIYwe{e+BUg3qNz#h!?DJ_2#%uzy^m-TM~^N?tUWBJkm=C&s9+*kZV>11T%XMz4w@E6gf8^s{0Z znNWSm(`XbK7(J=t4vbtyY2Wf7k}P@;yTj+fTU=2GXL;~a>2s6i!O_H5d8UJdqKGE1 z$0!lOba0f#Dv*MCw~1Qw;33Vsc3bn8t)N?Pw}roL@W*VS!K!Ce?6a#N74^(GN-HL} zeW?F}cL#?{W_N^&Do?q;J=smR5yE3?WeAu6pBrtKv4lW66>fXkFpmo5b1t8!#pka3 zd`VvhgISgcoou9J+6;#g)O;Qoe}O$_(3VtfUCSlJPjAT2{wLH@A&({Bk!zM_kaN#+ zoh7FQjK9z_t&t~=Txd9(@Gz8%n}@8#d?3n3c>@g4Mxovpi7ChVS_@8yDvNwjpRw>c itp5PZ@0-c)-)EL@v^UJ+ajIT$mozI{v_dU=&iMuG^GE>z literal 0 HcmV?d00001 diff --git a/Mode/test_Mode.py b/Mode/test_Mode.py new file mode 100644 index 0000000..1269de7 --- /dev/null +++ b/Mode/test_Mode.py @@ -0,0 +1,18 @@ +#Test condition to find the mode of the given array: + +import Mode + +def test_canassertTrue(): + assert True + +def test_Mode(): + + #Arrange + Array=[7,2,0,2,2] + expected=2 + + #Act + actual=Mode.Mode(Array) + + #Assert + assert expected==actual diff --git a/Questions.md b/Questions.md index 2594a50..0e47ccc 100644 --- a/Questions.md +++ b/Questions.md @@ -10,9 +10,9 @@ 6. Given an unsorted integer array A and an integer value X, return the indices of the locations where X is found in A. 7. Given an unsorted integer array A, find the sum of all the elements in A. 8. Given an unsorted integer array A, find the mean. -*9. Given an unsorted integer array A, find the number that occurs the most or find the mode of the array. +9. Given an unsorted integer array A, find the number that occurs the most or find the mode of the array. 10. Given an unsorted integer array A, find the smallest number. -test condition*11. Given an unsorted integer array A, find the largest number. +11. Given an unsorted integer array A, find the largest number. 12. Given an unsorted integer array A, find the number of times the smallest number is found in the array. 13. Given an unsorted integer array A, find the number of times the largest number is found in the array. 14. Given an unsorted integer array A, print the contents of the array in the given format: {arrayindex:value, arrayindex:value}. Note that there is no comma after the last value. diff --git a/user_input.py b/user_input.py new file mode 100644 index 0000000..9f2587d --- /dev/null +++ b/user_input.py @@ -0,0 +1,15 @@ +# Getting Input from User: + +N=input("Enter the number of elements: ") + +Array=[] + +for a in range(0,N): + + Elements=input("Enter the Elements in Array: ") + + Array.append(Elements) + +print("The given Array is", Array) + +print("The sum of given array is") \ No newline at end of file From 288d54e9908f6f0d646c1261fead0c9dc7211611 Mon Sep 17 00:00:00 2001 From: Udhaikumar Mohan Date: Sat, 9 Feb 2019 14:21:20 +0530 Subject: [PATCH 21/33] Two more added --- .../test_dictionary.cpython-27-PYTEST.pyc | Bin 0 -> 1632 bytes Index and Value/dictionary.py | 29 +++++++++++ Index and Value/dictionary.pyc | Bin 0 -> 456 bytes Index and Value/test_dictionary.py | 18 +++++++ Mode/Mode.py | 3 +- Mode/Mode.pyc | Bin 484 -> 476 bytes .../test_same_array.cpython-27-PYTEST.pyc | Bin 0 -> 1598 bytes Same Array/same_array.py | 46 ++++++++++++++++++ Same Array/same_array.pyc | Bin 0 -> 486 bytes Same Array/test_same_array.py | 21 ++++++++ 10 files changed, 115 insertions(+), 2 deletions(-) create mode 100644 Index and Value/__pycache__/test_dictionary.cpython-27-PYTEST.pyc create mode 100644 Index and Value/dictionary.py create mode 100644 Index and Value/dictionary.pyc create mode 100644 Index and Value/test_dictionary.py create mode 100644 Same Array/__pycache__/test_same_array.cpython-27-PYTEST.pyc create mode 100644 Same Array/same_array.py create mode 100644 Same Array/same_array.pyc create mode 100644 Same Array/test_same_array.py diff --git a/Index and Value/__pycache__/test_dictionary.cpython-27-PYTEST.pyc b/Index and Value/__pycache__/test_dictionary.cpython-27-PYTEST.pyc new file mode 100644 index 0000000000000000000000000000000000000000..87581c9cfe680b9b9bd25671a94673b995be166f GIT binary patch literal 1632 zcmcIk%}x_h6h1T4A1Fm=F$UwNnwZpuL=agRY9L^u3z|5f3(`0lI=3)o+L_F~jWlUD z;=;WP-@wQ54SWh8K)-XQEfLw$bne{q|J`%HGtTeD(!;MGTW>6)Hcfsu-aB|SF9H4* zMMTHebZ=AFp>B?j^HWWMjtdmn^aXB33LM$Yao}M+ha}-2{F+h#g@{#qcr8E6*5_~Q#O1DMKa|pz~!~Q{zw(gCQrXa>5jl>B1XSfLd!+HUA znutQFJ6L?JRcdOF>&fuh6KxpIQ94klMFiCiKJ_`6T*hw7Say=3cQObg6ZSO<6Gd^` zkF+UeHlwuh{M4*M^z>OghypKFN$Q)e9PR$BC zbmFw<8&6#%k>B?XjCDb=03)Nw?CW)iB#S=4ZtrF5J&vebXGv>c>2nh&t%ISfl32HP z)6^fn8vr7b>DJqRpe|~DKd621qk(D(_8@Gt)lY|O$ebE3@C78?q9;SO!QpfA$a*y7vmT9a!W+cd)7rgNLd z4vier70U<#g9?is6sS&oI^a!?LZmGbF14GV(&#&JNP*p$Mn6OZQ$%DMl_*#Mgz~>( zKc`{Hi?CnQFcCSdOu-_v571Ybz9VdwSpka9iT6B>fI{lb=!kO!gu%FrMm0lj7a(If z;)Pie;^A~yn30;TjfUoHm{7LXXb5{Zz+Pr1=%Lz11unY^A^o-)_|b&X8!puUQGXM` z8RIvFQyfkMlrbOQs6wk$mlHC6Z~86qJn4tI&q@p)a;;?t!!WL;>Qfq;?87nB8t&M{B7Jt3 lp>R2^%b%aC1Iz9fz7BlE?Oq%VBK1n>%8D{oscg?Xe*u1bYl{E? literal 0 HcmV?d00001 diff --git a/Index and Value/dictionary.py b/Index and Value/dictionary.py new file mode 100644 index 0000000..24611bb --- /dev/null +++ b/Index and Value/dictionary.py @@ -0,0 +1,29 @@ +#Given an unsorted integer array A, print the contents of the array in the +# given format: {arrayindex:value, arrayindex:value}. +# Note that there is no comma after the last value. + +def Dictionary(Array): + + Dictionary={} + X=len(Array) + index=0 + + while (index!=X): + Dictionary[index]=Array[index] + index+=1 + + return Dictionary + +#N=input("Enter the number of elements: ") + +#Array=[] + +#for a in range(0,N): + + #Elements=input("Enter the Elements in Array: ") + + #Array.append(Elements) + +#print("The given Array is", Array) + +#print("The Array in the format", Dictionary(Array)) diff --git a/Index and Value/dictionary.pyc b/Index and Value/dictionary.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6128ba79b20b10358316ebff42ede5303fc3fdc4 GIT binary patch literal 456 zcmb_Y!AiqG6rA1FQi_dd@zP^XUIi(lwxAv?*isc)gpge@G$t{-0Rzd&f*9;pym#gaNH&vyulFeA82q73K-JkSB} z0=?u1y~10JPN9?7DAX4`rO$&-@HHhEiDO!OJ;XgVS22q&NQ@NOCuZ{8%xw{~tKTI$ zuj{1sBdX?E>a(&)>eln>Ll|d;v1Cjqkh`L4cB0qL)=ocHdT!mumzBP0m$oXM4sy4R zbu8udH9wyug_+zXd1JNt^*E~9CI17?;36W(f!GrRxi2CS$wi18HvZiIKY|~U@${uM LO>R#^6i)IDPxxXX literal 0 HcmV?d00001 diff --git a/Index and Value/test_dictionary.py b/Index and Value/test_dictionary.py new file mode 100644 index 0000000..87d767f --- /dev/null +++ b/Index and Value/test_dictionary.py @@ -0,0 +1,18 @@ +#Test condition for creating dictionary in python: + +import dictionary + +def test_canassertTrue(): + assert True + +def test_dictionary(): + + #Arrange: + Array=[6,2,84,9] + expected={0:6,1:2,2:84,3:9} + + #Actual: + actual=dictionary.Dictionary(Array) + + #Assert + assert expected==actual \ No newline at end of file diff --git a/Mode/Mode.py b/Mode/Mode.py index 5486bbd..40615c5 100644 --- a/Mode/Mode.py +++ b/Mode/Mode.py @@ -7,8 +7,7 @@ def Mode(Array): mode=0 for a in Array: - count=0 - + for b in Array: if(a==b): count+=1 diff --git a/Mode/Mode.pyc b/Mode/Mode.pyc index c5afffe186b97e02576235df7273ba3dd858bc5a..f60a452f6f8b839226fe1cb4079c3c61d79bdead 100644 GIT binary patch delta 112 zcmaFDe21Bx`7JGt@9JxWsxh)Uq&Cs6#mN z47IEbH7pD@tPI&q3`J@TH9$>F4CX++g=#=Faq>xCF`#h_Ol*um$izE2o3RoAT)-9? delta 120 zcmcb^{DhgE`7}GSo0IxWooB)UrUOE7T!E z@(i`C3^gnaHLMKTObkUj3^hQlObq5g6AE>JXkzb4ehHwV3`}f{K*+?)$Tm5du@V3* C7#Cy! diff --git a/Same Array/__pycache__/test_same_array.cpython-27-PYTEST.pyc b/Same Array/__pycache__/test_same_array.cpython-27-PYTEST.pyc new file mode 100644 index 0000000000000000000000000000000000000000..fa1cb0ee80670c9ed207173493cc9aa60e469dd3 GIT binary patch literal 1598 zcmcJP&2G~`5XZ-M;(U-o8!A+8y&#zb6)mL))S#Av1P3DF!lkmX+}LTII)|VK;>iNy@S8vA;iz1 zgy_Ji<|d6S8rA5aUTJJPuqia@GnO?dv}Dp`$9<=UP2!(;`Vs(vh*f*|E7oYdeG2Oo zBY;KPppi*uL?2c#tu)|?rXZ;M!G7l;#!*M~LQx^s$cY%w-yE=JftVTt6w@7Rdb zhZjQK#1JSI<$Cp=lg%F9SDMp#n@=OeB7*9gHBJ*Imvh%03_ID(Kb*#ijwcF%iIQ{> zBucjnn~s$BgIupb^wn`XO+r79vfMvP(!(I}C&4(nd9aRWxqqOh+!5J?9060^N0-aC}2yyMJ!9;p+ZX5Q*A0FbRsAuGdq1;3b!Vkou21$wSh70vyd~d?Jzw{gzA6qyKeStqCe#waD zYk#GD*0_v?<_di@Ln6cv(s35#k;^H#+-EK`;arzj_wfjIfaL)y#mOG(2C4v6!}qpUy*G;%cn=qc7|wx8 z^K>!RivpP@v+wf4I>{0{cVg%=PRK^W*ay(|c;S0rlK9o9vB&3#b$B58Lg&QXlg-Jz zWu|Ls>e9?ymwlV1WZHQim$!u__nywl4C0yH_ccRIN3qDqS?SjKohuqiQB2Ve19VgG ls-_NAsJ2v7ZR?)@MSp{}KM((FMBYA~rIRADXWoez`2|&?W#<3@ literal 0 HcmV?d00001 diff --git a/Same Array/test_same_array.py b/Same Array/test_same_array.py new file mode 100644 index 0000000..88a7c83 --- /dev/null +++ b/Same Array/test_same_array.py @@ -0,0 +1,21 @@ +#Test condition to find the same array: + +import same_array + +def test_canassertTrue(): + assert True + +def test_Is_same(): + + #Arrange: + A=[8,3,1,9] + B=[8,3,1,9] + expected=True + + #Act: + actual=same_array.Is_same(A,B) + + #Assert: + assert expected==actual + + From 6b90e8181ee10b48d5faa9ca06d045fa13ec3bf2 Mon Sep 17 00:00:00 2001 From: Udhaikumar Mohan Date: Sat, 16 Feb 2019 19:35:28 +0530 Subject: [PATCH 22/33] updated --- .../test_copy.cpython-27-PYTEST.pyc | Bin 0 -> 1572 bytes Copy of Array/copy.py | 25 ++++++++ Copy of Array/test_copy.py | 18 ++++++ Count Repeated/Greater_comparision.py | 32 ++++++++++ Count Repeated/Greater_comparision.pyc | Bin 0 -> 448 bytes Count Repeated/Lesser_comparision.py | 30 +++++++++ Count Repeated/Lesser_comparision.pyc | Bin 0 -> 445 bytes .../test_greater_count.cpython-27-PYTEST.pyc | Bin 0 -> 1630 bytes .../test_lesser_count.cpython-27-PYTEST.pyc | Bin 0 -> 1624 bytes Count Repeated/test_greater_count.py | 19 ++++++ Count Repeated/test_lesser_count.py | 19 ++++++ .../test_even_numbers.cpython-27-PYTEST.pyc | Bin 0 -> 1602 bytes .../test_odd_numbers.cpython-27-PYTEST.pyc | Bin 0 -> 1596 bytes .../test_prime.cpython-27-PYTEST.pyc | Bin 0 -> 1566 bytes .../test_square.cpython-27-PYTEST.pyc | Bin 0 -> 1569 bytes Numbers/even_numbers.py | 27 ++++++++ Numbers/even_numbers.pyc | Bin 0 -> 433 bytes Numbers/odd_numbers.py | 27 ++++++++ Numbers/odd_numbers.pyc | Bin 0 -> 429 bytes Numbers/perfect_sq.py | 42 +++++++++++++ Numbers/perfect_sq.pyc | Bin 0 -> 750 bytes Numbers/prime_numbers.py | 44 +++++++++++++ Numbers/prime_numbers.pyc | Bin 0 -> 825 bytes Numbers/test_even_numbers.py | 18 ++++++ Numbers/test_odd_numbers.py | 18 ++++++ Numbers/test_prime.py | 18 ++++++ Numbers/test_square.py | 18 ++++++ Questions.md | 4 +- .../test_reverse.cpython-27-PYTEST.pyc | Bin 0 -> 1612 bytes Reverse of Array/rev_array.py | 32 ++++++++++ Reverse of Array/rev_array.pyc | Bin 0 -> 522 bytes Reverse of Array/rev_elements.py | 32 ++++++++++ Reverse of Array/test_reverse.py | 18 ++++++ Rotation/One_right.py | 29 +++++++++ Smallest and Largest in Array/Kth_largest.py | 45 ++++++++++++++ Smallest and Largest in Array/Kth_largest.pyc | Bin 0 -> 651 bytes Smallest and Largest in Array/Kth_smallest.py | 38 ++++++++++++ .../Kth_smallest.pyc | Bin 0 -> 655 bytes Smallest and Largest in Array/Largest.pyc | Bin 441 -> 441 bytes .../test_Kth_Largest.cpython-27-PYTEST.pyc | Bin 0 -> 1666 bytes .../test_Kth_Smallest.cpython-27-PYTEST.pyc | Bin 0 -> 1672 bytes ...st_second_comparison.cpython-27-PYTEST.pyc | Bin 0 -> 2079 bytes .../second_largest_smallest.py | 58 ++++++++++++++++++ .../second_largest_smallest.pyc | Bin 0 -> 951 bytes .../test_Kth_Largest.py | 19 ++++++ .../test_Kth_Smallest.py | 19 ++++++ .../test_second_comparison.py | 21 +++++++ 47 files changed, 668 insertions(+), 2 deletions(-) create mode 100644 Copy of Array/__pycache__/test_copy.cpython-27-PYTEST.pyc create mode 100644 Copy of Array/copy.py create mode 100644 Copy of Array/test_copy.py create mode 100644 Count Repeated/Greater_comparision.py create mode 100644 Count Repeated/Greater_comparision.pyc create mode 100644 Count Repeated/Lesser_comparision.py create mode 100644 Count Repeated/Lesser_comparision.pyc create mode 100644 Count Repeated/__pycache__/test_greater_count.cpython-27-PYTEST.pyc create mode 100644 Count Repeated/__pycache__/test_lesser_count.cpython-27-PYTEST.pyc create mode 100644 Count Repeated/test_greater_count.py create mode 100644 Count Repeated/test_lesser_count.py create mode 100644 Numbers/__pycache__/test_even_numbers.cpython-27-PYTEST.pyc create mode 100644 Numbers/__pycache__/test_odd_numbers.cpython-27-PYTEST.pyc create mode 100644 Numbers/__pycache__/test_prime.cpython-27-PYTEST.pyc create mode 100644 Numbers/__pycache__/test_square.cpython-27-PYTEST.pyc create mode 100644 Numbers/even_numbers.py create mode 100644 Numbers/even_numbers.pyc create mode 100644 Numbers/odd_numbers.py create mode 100644 Numbers/odd_numbers.pyc create mode 100644 Numbers/perfect_sq.py create mode 100644 Numbers/perfect_sq.pyc create mode 100644 Numbers/prime_numbers.py create mode 100644 Numbers/prime_numbers.pyc create mode 100644 Numbers/test_even_numbers.py create mode 100644 Numbers/test_odd_numbers.py create mode 100644 Numbers/test_prime.py create mode 100644 Numbers/test_square.py create mode 100644 Reverse of Array/__pycache__/test_reverse.cpython-27-PYTEST.pyc create mode 100644 Reverse of Array/rev_array.py create mode 100644 Reverse of Array/rev_array.pyc create mode 100644 Reverse of Array/rev_elements.py create mode 100644 Reverse of Array/test_reverse.py create mode 100644 Rotation/One_right.py create mode 100644 Smallest and Largest in Array/Kth_largest.py create mode 100644 Smallest and Largest in Array/Kth_largest.pyc create mode 100644 Smallest and Largest in Array/Kth_smallest.py create mode 100644 Smallest and Largest in Array/Kth_smallest.pyc create mode 100644 Smallest and Largest in Array/__pycache__/test_Kth_Largest.cpython-27-PYTEST.pyc create mode 100644 Smallest and Largest in Array/__pycache__/test_Kth_Smallest.cpython-27-PYTEST.pyc create mode 100644 Smallest and Largest in Array/__pycache__/test_second_comparison.cpython-27-PYTEST.pyc create mode 100644 Smallest and Largest in Array/second_largest_smallest.py create mode 100644 Smallest and Largest in Array/second_largest_smallest.pyc create mode 100644 Smallest and Largest in Array/test_Kth_Largest.py create mode 100644 Smallest and Largest in Array/test_Kth_Smallest.py create mode 100644 Smallest and Largest in Array/test_second_comparison.py diff --git a/Copy of Array/__pycache__/test_copy.cpython-27-PYTEST.pyc b/Copy of Array/__pycache__/test_copy.cpython-27-PYTEST.pyc new file mode 100644 index 0000000000000000000000000000000000000000..0a8966bcca9de530b9880f8f74a8501ae0fd4e6a GIT binary patch literal 1572 zcmcIkO>War5FXo!)3ho5L84(rH%MkdMN8=dHK+7?lts-KPb0Upgn;crn&bYjiV zHVqvb*65@@m$-D|lCtSD%o?N|IV`Z_u~$Qo+&z@+*<-98(<>bcc<%0F}?Rn-<7HJ`GPNNota@Mq;8g>qn_Ji>1!Q z+JsSI+F(O{o=s8}7I9vLXK8jCrQtXl#il9BXb`i;a9Ld`E6K)3MUfTeJ{t_OVicJ$ z{+OrHI5JRrQpFOKTt%th_P~-5eT38D%iuj))WLZkypHvS$@1XM)Q|H_2i>BGrf(-G z5y5nDnB~*WY_KWfKq~J;w3ScIIwF+ZMB^hrv=Pk(;BtO6GN^zoPQU>P;S6HWFeLbQMSrfuy$KT{Gmup x`4PC00zX8RMsC($g}~>q{szde7UlF0H=SGCA7yHi#;=Integer): + count+=1 + + return count + +# Getting Input from User: + +#N=input("Enter the number of elements: ") + +#Array=[] + +#for a in range(0,N): + + #Elements=input("Enter the Elements in Array: ") + + #Array.append(Elements) + +#print("The given Array is", Array) + +#Integer=input("Enter the integer value: ") + +#print("The count is: ",Is_Greater(Array,Integer)) + + \ No newline at end of file diff --git a/Count Repeated/Greater_comparision.pyc b/Count Repeated/Greater_comparision.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a8f0770db7c7333cad90c3932588762cfed07981 GIT binary patch literal 448 zcmcIe!AiqG5S?tSN@)&$f!^GcCqWPqB?alhQd>ljl@gN0hT3f0*+2v7%|G@Bd=m?P zfy>OBw==_=7k?+i?Pz6k+P?_(4#^3iAo?PD1&L^(6*{@V0WwCWNWKJMyi>G2r;cd+ zc1pXLIz&Y40r`YFMTMd(tb8UCFK8^ZC`?NLm2y-I(;^)PfP3$=HXMOXs$k!(@4LBc zst{y7``rg4o&nNp^UT(>S=DB2c^zDB9^1LC9h+Y3sj(bNSFuS&uEH z&}HWB+nL!nFaFhonO>Nj{!fJa9?2R|5d9F%Kq8tZ3YA=74;dp(ppIzx zen#tBVStL4TWhU3gZ$$r7TT^B_bX60T141Z8!uQRl$B(-&b?j zR3XTCwwVVbeg>pB=9R5yv#8C`@-n#EJhc;BJ2t)6OJg~du40pl$T?az3$`$imho|( zyH%a}k}+~wx8WF?Bc5-XVwDE~QU^+_lju~96LB#Szgs6g+liec?73aJqWQFUy&Jsg E582IR&;S4c literal 0 HcmV?d00001 diff --git a/Count Repeated/__pycache__/test_greater_count.cpython-27-PYTEST.pyc b/Count Repeated/__pycache__/test_greater_count.cpython-27-PYTEST.pyc new file mode 100644 index 0000000000000000000000000000000000000000..bfe41ddf0a4aed46560987a80d8f0076faa31c31 GIT binary patch literal 1630 zcmcJP&2G~`5XZ-H;v^+0Z9%BqdO|c7HY(zBNxe&m5vI%|0dk@8W0p5##Gn zN_6DR*CiUbG$_+iWv=n)$fLMKpWs%d*p)?%0}uT&Hc5Wr)0PBCM6BA!&#=bgKcu)q z2@<$u9U7GAoaode^MI^mg3q}_dPl?xhd>;;>>rnD`_37*@x)lAsTg7Z2p6gU(D#t1 zjVPpA#3M3BX}fmM&nFM>8_VUq)nkQRL{MGfh3K$Kxcm$;covQJQt5 z)Yyf>W|gsFr0pui(41uBG!C`Ob=Xg{<0uVB(NNjC7^9wIi{-NRq^u+xz0f+-_7*$z zGChoJs6OOrG>R;YzEp7oMy{f;Z}<>N9_BSx`%gOW(4y&_uB<3j1sY#>Fj6YkzIpHMOMWfDZQ^*&|#Nt>-og4U{A4hQG`^<=T(8$aQEbRv{&#` zg~Tek-bIuO1^@;><$7^leUEToP@akDti<;@aQNb;4xK~q(zHZVmrk)R)3i*c>{y{L zUSzR{z?(Cl9$+a`f)rK4O%5t^c0Ln_c@&%;~^`!Np_ zk;Cc~FEDa|e~Fo$V$oy;0IZ33ou(cK|IHx!hzZlMjI(K@TFeB~mdJF-L9(vZGJMoC zFxOfwVRRFWGJk+Tb#X}ny9#zu*N&rf#_eVR^?!hGA-LdrOUN-ro??AK7(gW0ADD1v3b-B1jfNPCRLJjU?5zT>B;cL{h9qEG0vRoy1{uV5Hc~$8 zEpH>RS{4sRR`rz*c>IDU+vg)t0J(7?7bEfLlKl9ZM}+H=5t*F=cV%wlLGG&KIi9=X zHZU1qXqi^Ymv*^3h{stPAaEkx{ literal 0 HcmV?d00001 diff --git a/Count Repeated/__pycache__/test_lesser_count.cpython-27-PYTEST.pyc b/Count Repeated/__pycache__/test_lesser_count.cpython-27-PYTEST.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1718faa190d1e4613de64f32fe859b10a0773045 GIT binary patch literal 1624 zcmcIky>8P`6h4jN z-D@2&`*#+!jP0=WaSUcJpa)Jc$z%ry7BYl57wr+ANeZ zqqGUa!mNS}^l3IpqM%TD5u7C1ahL>YI98@D!f>cqVmPfmNh{9Mmqn2k<_;?ivtk^Y zKz+!QFbxfau4HiwLe8R;Z@3^y4&BFX|C#>|C2IdP_g^S|X0qIWJ@r(cX@9RM!s(j{ zQiL<@?`Mp16<9;ljYD}37;k?X32CH zktrYmT<|H=#k5Ww!nnXZ7tVQ&$2qciZZnH6z_)2uqnS--xYub`CtbIUfG%2OatOoQ zbDbfuQl}UpnuI})8WnUt6Pq}!#?bjHB+wxwLkBo*(RS4S*X&zmW{cVP%1lT$Yg4qq zhy(VQ7_u{5y37FnTB6;inZw3^LlAXDgk@MpZ~DjGXr71V_TGYOM9Y&Siy|HJndj7wN=32<~7r@UVu>?-`>!ezJ#3|>{x z80TRTYd}bVe4v9;;&CyC%M7p)iNJo4v9j_w505MM7$P2H#go0_Rgf+0XQ^_TZ`h3> z)i8OG8g-%yk9W`Ovb@573CE2~y4;5+SLmlVyC2dW-ubczT$8?wgX~qyu^fBF?qDmv z&@!!(E5))!P<=vzKw4w&GZX6uPwQn}XzzNV-WRbczZaKW>B?LpE%%mS?6F&q-TbLn cZa48!;3{{i?Z4vdT`q_9N;L%JX{4Gj|PORD4 zrh!9)8lBW<5|>U~ifsA{vpI?!In1-;u~$Qo_z!*^Nq|JeqC-5IB?j++qB_M$;E=Is zVACbhg-iM=8Oa2jON)wqVe9MyHg(uOs?pxVDZ;p-oTG^-q5lFCssGq>k*5PMq*?|E zwN{1MeC*}pXHT@@a^4psgB6R|LlcK|%`$?vXqDMMeAgTM_%57FWbX=gsyyZS?qoMN03kd^oPhs2NJMaS z4K+SDX4XIgY(yfk?`6Y0ER@eh_}r<_J^OP^xGSGmLAJ1yrAn67a2P?V&->;tvBeDY zB@(x<_;LrH-{4=!ItaPfo#5VXEep3HgCl3dT5(pKCbr=_tQfP$@&j=tHGEr@M()^Og}~>qK7VHZHGBUZb94K{EE*;170*z! Lph@f0v>VP}zAR-y literal 0 HcmV?d00001 diff --git a/Numbers/__pycache__/test_odd_numbers.cpython-27-PYTEST.pyc b/Numbers/__pycache__/test_odd_numbers.cpython-27-PYTEST.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c86203227f9057688d851057aeb9354b6bf99e6c GIT binary patch literal 1596 zcmb_c&2G~`5FXo!+qCH~5-PV|kj#M!O6dVLs8xX*LAY?KB3W*B(>irx%exUoN-mTW zS57<*Z@{}CaV_7BleCl`8^z(T|$xliUXS;+*O3x|q5VXN!{w(qgMs?hHJF~azwoTHH_q5lFCssAYOk*5hSq*?}v zjnReOd>G`zCy$Kfay}FTja)zikeDdV+Hq>^LaDRb z*eEXS2H41)WrI{jh0crUG|f)pH0sAaZEK>8JDN3?%Q}#|&GOdUVW{)Wv<`|Q9=;!- zLPJ&SYd`mqs|dbnepFqmf6Z;#dKjT4lC_m}?W84lq)o1Sx8S z0d}iX$b2Jq@!5OfZeooyG7jD0%Zo;zLBB?qftwL&@p*q50 zg$01)yja(0geoM@40`B85te{w*-RKja0THzOc-tn-&(>5G`x0=hT%(}Aak?P5Rh&I zr0fe6=(g1=WK+Ri+_r-_od9<`g!n&%@4&eP_KrYjlBYc1p6uoVAVk1`vrMjGMEG}C zml9fo%xpYYH3t49qkYkVa;~MQfoWV^)gbOqkA>^N-BKaTt4aDif3Zd@d zh>TI%Za((&$+IWMaysvIp%9A*tXp*aMTi2<-L`QYs zj141gH$aBwJS);T)GF8ES(=?jX*iBX$~Hw94HQc(r*$Z4CE56m)|s~VSz(arQDj5) zDNmzuWFhn=izNs-i&DPrgCsd*Xh$!5A5fy{o#(yR%3Rni@4cM_D$h*sQ0r*&u0V=# zW_sOXbjq5NbFPz-+R7((9qxqFM^s6R8&n6^aJl3(=&%F~ll;g$myjEV4kVP5!Bo%c zgy~dFkRHt(9^lZaCN*Zo;!lxOWN9JmGGk0<@BkPRFoTg~iQIM_{=FSTf`=ch$El z4p>!?7WHirr4>|n0^9&p$#r>hyPHMls`f`&T%_t1kIOKlP3zQl Go8Dixby>*( literal 0 HcmV?d00001 diff --git a/Numbers/__pycache__/test_square.cpython-27-PYTEST.pyc b/Numbers/__pycache__/test_square.cpython-27-PYTEST.pyc new file mode 100644 index 0000000000000000000000000000000000000000..42dfed957ae623dd191342cf951eabd537b10921 GIT binary patch literal 1569 zcmb_c%}x_h6h1T4mbR2%qrn{;le&-yA`7L423^|3K{uqyWa!+&lxb(U_fE7)yAj@i z$MFq(9rx;Y&a@DbB~9nfJ^z2-8SmFpy*gFhw+>N{Wnh-?Ahe zg%-l5WU&Y#XHm$vn;=OJ)5h)aP4^2*G~KhT`(BxIn`YgQV_#*d>9(~F$DeYf2xq3- z$%iMbDLI>qJk)9{8{2hw5mpajB`@w!8C=8ll2f5}ffy$Fk%3l`9HtH^6r;gdPs@by zFw>(`m!=MnZ{W=4G<9i$yG!Q~c{K6J{3a_1i&mKI!*F$`(+4n06vKIyFttH>j*}}f zsjwR3x8#s!df1uC;R#r^(ZcL5Ie{7PRQDI(vgzwwCqNp>GOj5ORO;mc>%!f z8@d4ft2^}T2VVl|0q=6L7o56`i@e89!&~th0RAT}0^cI)%EE@B(2!71Wyn-&^M9iHN0zXcrtv#2^eAGVfiP$9~x6`n;~QHjFsC ze0SwT7E77V5(Y$|3(h7-_J&+d_SxI1qh+YPy=rI9S7f8eb>k=$RY^8&R*y32M6vuW v#=Z@^EE8RNPL?FGh8`-T_td^l+Fw^}5kVrdHbK|g-MEtl7q(w|PY>Y%bS5r% z0Ym1^6~zs&N#Gsw9&&>j#;vSg`!9 v$G#1FtRfygB^%O+0eYwsy{`^*7T26_G56>GpDXOJ^69#=&5JvW{$l?F6c%1h literal 0 HcmV?d00001 diff --git a/Numbers/perfect_sq.py b/Numbers/perfect_sq.py new file mode 100644 index 0000000..7acff9c --- /dev/null +++ b/Numbers/perfect_sq.py @@ -0,0 +1,42 @@ +# Find the perfect squares in the given array: + +import math + +def Is_perfect_sq(X): + + flag=True + M=math.sqrt(X) + N=round(M) + + if not (M==N): + flag=False + + return flag + +def perfect_sq_array(Array): + + sq_array=[] + + for a in Array: + + if (Is_perfect_sq(a)): + sq_array.append(a) + + return sq_array + +# Getting Input from User: + +#N=input("Enter the number of elements: ") + +#Array=[] + +#for a in range(0,N): + + #Elements=input("Enter the Elements in Array: ") + + #Array.append(Elements) + +#print("The given Array is", Array) + +#print("The perfect squares in the given array is", perfect_sq_array(Array)) + diff --git a/Numbers/perfect_sq.pyc b/Numbers/perfect_sq.pyc new file mode 100644 index 0000000000000000000000000000000000000000..92cac910e226382f7cecaeab4cb27abac4aec56a GIT binary patch literal 750 zcmb_a+e!m55S?Uev9+r{_yv6`KKQ6mL@F(U4_&Y-ima5io8G&ZOcpF`pY)IY0G%0y z`T-5e*)z#-GIO%tmtU`xCLF=v(Dd!l!X`mXQ^6A8g@}evA_`(ph~}gFR)x}L-!y`e zBFZ64bZKFmzyWL&I0bVJCBTP*jRxmIsf7zEJy>YKb8r<-P5?@lX1$=b$098IU<)H; z6}hPp%&l{LZqp)(h22C;G*T2@3Ggg=<7G6FurC<2=mZ3?L#*2lAJJG0r&-uDxNvC} z_SXZGr5IjY8?EmOgKm~47zV}ajWaW2$7bY)n4e{9=aa}S4!4_J6E+AySJjbf=!U9k z@yDY*UgFOMk%{>8e#++bUYp_$^)K#NpN*KSzfk2q(0ux54qH8_5x6Qrlw~G~TdXf; zNbzo;Ld=H|cOv~qyYBy(ZrC>edlT=5dL_lu(+dPFleY@<>@?W zGOhT_FTFH08>@s4EN zvZ28ti3nYDn4SJ)1YAi84jpmTBc*#l%{=Y z_v!7L|BMSbX&&BE4VCe$S3*Iad6>Q6PIsSoFIDOfp0@bvK?%Q3(F1x&+ S%?Hb=`yea_Y1^^wC;tE__p9yz literal 0 HcmV?d00001 diff --git a/Numbers/test_even_numbers.py b/Numbers/test_even_numbers.py new file mode 100644 index 0000000..03cee52 --- /dev/null +++ b/Numbers/test_even_numbers.py @@ -0,0 +1,18 @@ +# Test condition for the even numbers in the given array: + +import even_numbers + +def test_canassertTrue(): + assert True + +def test_even_numbers(): + + #Arrange: + Array=[8,1,5,3,6,4] + expected=[8,6,4] + + #Act: + actual=even_numbers.Even_numbers(Array) + + #Assert: + assert expected==actual \ No newline at end of file diff --git a/Numbers/test_odd_numbers.py b/Numbers/test_odd_numbers.py new file mode 100644 index 0000000..155ef1c --- /dev/null +++ b/Numbers/test_odd_numbers.py @@ -0,0 +1,18 @@ +# Test condition for the odd numbers in the given array: + +import odd_numbers + +def test_canassertTrue(): + assert True + +def test_odd_numbers(): + + #Arrange: + Array=[8,1,5,3,6,4] + expected=[1,5,3] + + #Act: + actual=odd_numbers.Odd_numbers(Array) + + #Assert: + assert expected==actual \ No newline at end of file diff --git a/Numbers/test_prime.py b/Numbers/test_prime.py new file mode 100644 index 0000000..82f9054 --- /dev/null +++ b/Numbers/test_prime.py @@ -0,0 +1,18 @@ +# Test condition for finding prime numbers in the given array: + +import prime_numbers + +def test_canassertTrue(): + assert True + +def test_prime(): + + #Arrange: + Array=[11,5,9,6,2] + expected=[11,5,2] + + #Act: + actual=prime_numbers.prime_array(Array) + + #Assert: + assert expected==actual \ No newline at end of file diff --git a/Numbers/test_square.py b/Numbers/test_square.py new file mode 100644 index 0000000..3fa610e --- /dev/null +++ b/Numbers/test_square.py @@ -0,0 +1,18 @@ +# Test condition for the perfect square in the given array: + +import perfect_sq + +def test_canassertTrue(): + assert True + +def test_square(): + + #Arrange: + Array=[16,5,9,6,2] + expected=[16,9] + + #Act: + actual=perfect_sq.perfect_sq_array(Array) + + #Assert: + assert expected==actual \ No newline at end of file diff --git a/Questions.md b/Questions.md index 0e47ccc..3173e22 100644 --- a/Questions.md +++ b/Questions.md @@ -20,8 +20,8 @@ 16. Wrtie a function that takes an unsorted integer array as input and returns a copy of the array as output. 17. Write a function that takes an unsorted integer array as input and prints the contents of the array in reverse order. 18. Write a function that takes an unsorted integer array as input and returns an array with the values in reverse order. -19. Write a function that takes two unsorted integer arrays as input and returns the index upto which they are identical. Return -1 otherwise. -20. Write a function that takes an unsorted integer array as input and returns an array with the duplicates removed. +*19. Write a function that takes two unsorted integer arrays as input and returns the index upto which they are identical. Return -1 otherwise. +*20. Write a function that takes an unsorted integer array as input and returns an array with the duplicates removed. 21. Given an unsorted integer array as input, return the number of odd numbers in it. 22. Given an unsorted integer array as input, return the number of even numbers in it. 23. Given an unsorted integer array as input, return the number of prime numbers in it. diff --git a/Reverse of Array/__pycache__/test_reverse.cpython-27-PYTEST.pyc b/Reverse of Array/__pycache__/test_reverse.cpython-27-PYTEST.pyc new file mode 100644 index 0000000000000000000000000000000000000000..23cf6116e2946778748821449d8e1c90690841bd GIT binary patch literal 1612 zcmcIk&2G~`5FXo!+q5bDL4t701t}b;=np-h2DK`j5Rq`C7vAS+3~PdL6GzZejQ1GM8u*4JccC}?}(BrrAXkB zb*S&sCDEBr<}q2x1e;5T^scZ~b^$x|*gmPy&b$z_r^t$X+pyjz?)`)1g6PqAc&mnXwC{ z&MIT0Slb5J$eiY*EQz!#baayC$8i=7cov5op+=TmD$Ky96 zl!#y^4AeOcRWt83MH5Q#x|FULW4nfUBI}|6sgUog3aR1F$?<8w#16Ck$Y}4QOw1pk zD2IdrCqA9{gjwOhY(-Qsa76C#T>H*+fEO-JaCYg;r3;TH9+@S_3iOf{W_t*}I<@Hm zF%?P?szw-Rzd8fZ6|sxYW(=Uu!U7}0GJtB7EYMD}_@~>KnH%E5?d!}$21yA2pD!5kCrC*Zzi89Vt<$Y5S`tNF&d+27i>~qWnm+Th!P8n81O^{SKo7 z74;M#Z^j8Z;mp->$3?+e5{fq`;j%2_rQ1Xn@tjM`o=vla7rwv8+0cz#0}VXkDYn=U zIr(6(k#$eay~U&%73PZV*yV+}Sw>vs*7)tWGqx_xGi%loo&2@qE2iZ6Q!EaSily7a xGIabB;@KV`kglt`+R=Nusak4R@2h?&|BJ-)pOt^`(}2L)G*4y|KKFL;rXR~Mai0JH literal 0 HcmV?d00001 diff --git a/Reverse of Array/rev_elements.py b/Reverse of Array/rev_elements.py new file mode 100644 index 0000000..5e20bd0 --- /dev/null +++ b/Reverse of Array/rev_elements.py @@ -0,0 +1,32 @@ +# Print the elements in the given array by the reverse order: + +def Rev_elements(Array): + + + index=1 + Length = len(Array) + + + while (index!=Length): + + elements=(Array[-index]) + print elements + index+=1 + + print Array[0] + +# Getting Input from User: + +N=input("Enter the number of elements: ") + +Array=[] + +for a in range(0,N): + + Elements=input("Enter the Elements in Array: ") + + Array.append(Elements) + +print("The given Array is", Array) + +Rev_elements(Array) \ No newline at end of file diff --git a/Reverse of Array/test_reverse.py b/Reverse of Array/test_reverse.py new file mode 100644 index 0000000..9cd90c7 --- /dev/null +++ b/Reverse of Array/test_reverse.py @@ -0,0 +1,18 @@ +# Test condition for the reverse of the given array: + +import rev_array + +def test_canassertTrue(): + assert True + +def test_reverse(): + + #Arrange: + Array=[8,0,1,4,2,9] + expected=[9,2,4,1,0,8] + + #Act + actual=rev_array.Rev_array(Array) + + #Assert: + assert expected==actual \ No newline at end of file diff --git a/Rotation/One_right.py b/Rotation/One_right.py new file mode 100644 index 0000000..f1a1771 --- /dev/null +++ b/Rotation/One_right.py @@ -0,0 +1,29 @@ +# Rotate the given array by moving one position: + +def One_left(Array): + + rotate=[] + X=Array.pop(-1) + +# To rotate one bit by left: + rotate.append(X) + for a in Array: + rotate.append(a) + + return rotate + + #Getting Input from User: + +N=input("Enter the number of elements: ") + +Array=[] + +for a in range(0,N): + + Elements=input("Enter the Elements in Array: ") + + Array.append(Elements) + +print("The given Array is", Array) + +print("The first rotation of the given array is",One_left(Array)) \ No newline at end of file diff --git a/Smallest and Largest in Array/Kth_largest.py b/Smallest and Largest in Array/Kth_largest.py new file mode 100644 index 0000000..41d73c4 --- /dev/null +++ b/Smallest and Largest in Array/Kth_largest.py @@ -0,0 +1,45 @@ +# Find the Kth largest and smallest number in the given array: + +import Largest + +def Kth_Largest(Array,K): + + Descending=[] + Length=len(Array) + count=0 + + while not(count==Length): + + X=Largest.Largest_in_Array(Array) + Descending.append(X) + Array.remove(X) + count+=1 + + Result=Descending[K-1] + return Result + +# Getting Input from User: + +#N=input("Enter the number of elements: ") + +#Array=[] + +#for a in range(0,N): + + #Elements=input("Enter the Elements in Array: ") + + #Array.append(Elements) + +#print("The given Array is", Array) + +#K=input("Enter the value of K: ") + +#print("The given Kth Largest number in the given array is",Kth_Largest(Array,K) ) + + + + + + + + diff --git a/Smallest and Largest in Array/Kth_largest.pyc b/Smallest and Largest in Array/Kth_largest.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3ce488a84b2941d59cdfed3eebed898dd15d09d0 GIT binary patch literal 651 zcmcIhO;5r=5S`sZHOPkt4-zjNd-7^xjM3l?BoSgTriL`_3Wd_v?qVbq=0-3A2s1Vu!Ta3p=e5u6!07EZ$-tbxxJ zdoWIQVLAm&i8hi9QBL$OXk&5Nrb2IB$}5yxw2-8q$OxLtKTef$Npp+xDwhaU&Ot4M z3JW+xhnEu?gO@{yq~rF+rra(C4MI$&Pyn1Nz_6r9#fIhey=@tH?Nr zsQ^8O*FAUdwaTdhJkFq0FJBB=bmC&_Zr8RmvnS9LlO(B2c*iv~(&= z;1nI6kLez`3`8UywQ`p-wg+q7wE148AN3z9id(NcOq4QkbL0wUqUrLttXvC}$rY-@KTh?HI^ zC$5}$9G(E)gaZ!%-;A9CrB|?$@y_4Q-#50uFD-ogGVl*9qCQnm4ewq2HIoQGi&CN^ zYj&>D(57LXjv6zGLq`rpHF^)TIf`sK%(LU6TgN5I4?H~yfI!5eef%{`4Bi1n4N4He zCS%dCMi)e94(a=3Bob^cEK)ndHrNGhX0v@%r|sM4xW*CX98E4V%8W=YfsWj^6aTnxiUA|V34a( zXoC1{k%n1lpmZgRMJPFoQorGXB_Z0!Y5%eR8YOD~wD1pNeP;5)e=+gmBG>+&QsLy~ z7%Ad1?H`W9GzHTMv#9etR405+vW}SfQpq!O8dRF~Vq)3|Ao4ykl9ai54M;V&f-Hyj zN-)iVW0A~y8F>Q`KuI|@OgwVv#32k1hjXYvYdqYc#Z#PGbWx*oo2E6I+H{6Ldz^yDb$W~wj{)OxO&&Ku z7PFUUvCDG9*9a={i9kS)7tvc{&1@M;G;Un-<#If{!atHd5%TYsg_D$JshYvX>02OV zuUU@e*loLo9r;MBv_`H}&D8|6&r1+UkIWqwV)?M0>t&hP-gOnfQHd$PC6`je-KsRw ldv65-kFWLknqTGrryg+4JEJ@rr|}aWxMo3%+SIBw?Vsu4dEEd2 literal 0 HcmV?d00001 diff --git a/Smallest and Largest in Array/__pycache__/test_Kth_Smallest.cpython-27-PYTEST.pyc b/Smallest and Largest in Array/__pycache__/test_Kth_Smallest.cpython-27-PYTEST.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b440503e6470ad7f2d428be29638e9b3e605bdcb GIT binary patch literal 1672 zcmcgs%Wl(95FOiz+q5aP0im+X2FWa_XenKw2DK_IP$3d7Y$_wmjh)7+V_UvAf=J1R zvSQ1M&*2Y{_!K?>&Wz&%rR!SB_|EIj>x`|RD@%hPeeZ=q)T8-h;=PBzViMwKP(pNU zRA-Zh77c53T(2ZH9orO|^a*AQ6k2jvWXB_?hD+jKc)Ah*frv#1_$!uZynPDm6eEB| z+MuCH=R{{VsRyJb5^T;5Dt3jfvkTbNV*9X0J9lQd#unuQO+^X)N0>Ae=?2}9j6L`iIS`rBuX!p zIvpwP2Zde->#IRFPC~zk^1?q&vXdb3(_j?ohA4x6#2U?M?Mqs5mOd|vtkAdEpq~|^ zK>N{$JPFc3L+MBs%TRI_rGC=^OG4B;oDQCNZ&9N12D$evQfE5Ly;l=A$}{Ed7ez36 zJw}SSOnFD6AW6WqgEVZv42n}e$7x&4JgMYR5B$n(BcJFNB8Z}glq6^FUL8`!y&%J; z{Sr+J;8-NXzJbJn2*9Kq8%7@5bZQf(hr>+9KQno{LxaaSHR#-=nMG5RrWT#yT%&1? zRL#(W!Elw?J{;HPHhn;+MlnJ(2y-3QDpD+aub%_mMLs908vYe5j@4=CJO+^MX_$s)Mn?u5s5lN!fx=0yD?)6DT8niaR~^c zBW7SKR&+Xwn?46@yVDWuZUMXO3vfg|9fdBN3LJx;9tX)B&s#3U{{ep+&L!Tr1yS=j z<@xGhm-hl!IE+JC2?mLpW9dRrp~mIH^cskdJxOF4df6xsipb?8T&~n*q__+jm#cEQ z1+tsnER7tNYraN+iLV6Fq077IuCS)shZ2vQ7ks%Nk1p|#WmSY+!@fv@{7ItBF1NLTj{6j?~Td_|-SY_oYkvE(@`MxND;<6f3+@MDL4Ommic1spfvo nHPU@|6#|#9b@`e<4Y;l@aM8P?EF34%Q=YkEL6ch4G#l1$;edP; literal 0 HcmV?d00001 diff --git a/Smallest and Largest in Array/__pycache__/test_second_comparison.cpython-27-PYTEST.pyc b/Smallest and Largest in Array/__pycache__/test_second_comparison.cpython-27-PYTEST.pyc new file mode 100644 index 0000000000000000000000000000000000000000..cb1738eb7c993360c11167632586fb8d8f897e8c GIT binary patch literal 2079 zcmcgsOK%fN5U%mq4obk+Px(!&e zFTg+G#DxQQ{s{koBj-Kx1K6*sr}F?VtCg_qc2`wbcRjxP{IAO${Z0+8G>C>&f3T;A z_-S4ed_BsDc0IRm(8#AzlXhE96VPrzNrT?tSep`GHVf>y({JLE^cz0g@_+}CRgdt~ ztTFhHC}~lO2YfOfjT-ct=rADtI~jQiXI^_$-50UNE)a8{&nHc~dtr`i0x`B}CPvs_ z;fTb)(+}{@HoWlESuC;EsxrN6{c?K!H*Gkazp9DCTSQR(v!f*9#%#Ux9jN|jY~kQIAz7Ul6+nMEV*_JfqBsL1M`7(Z`VdJLy@%bSdxO7`q8>ae2Y)Di zXo_<1WE!fn(1We2il{*Z`t1Ry0lC}EGK7iDu6mKn%Y0)TfxO(fb z;t8%kh`7LBHLif&MY@}GPP=__ZoasEc5Wgv96OYpVK`zK&M}^6*qmiWo6v6#vqQ5s zJD=hQtN+<~|N|416M@?1pZBq9gbwK=Vvc6;yKn&S4+ zxrxYbE5|uq_)j?{gz3MC#&4&L^;C#}xg}+kpgMpGi<_I8!BkIUZ*x-y^Ckv!1?tQ~ zk|#h7jY>jxk#TXBcxWbZRuAvZ5au7I{5CGL!+qPVvb_fV(XFO?QfqINL8~LQ`=5vT zJze0j|KrO1Vz_Me*ts-a%#!OktNv()RYPT*a=o4mm=hLgglpFn-?KC z?vv2rc9ARLJd6#9i76xGz(Q_GxXcUJ(Ks5i3~=K}wzPEXJNeG9r>S+0lIggnw#e0o z^VL_ekiYH)Uf_4VuD=ALdP}Qxi30C<-Largest): + + Second_largest=Largest + Largest=a + + elif (a==Largest): + Largest=a + + elif (a>Second_largest): + Second_largest=a + + return Second_largest + +def second_smallest(Array): + + Smallest=Array[0] + Second_smallest=Array[1] + + for a in Array: + + if (aSecond_smallest): + Second_smallest=a + + return Second_smallest + +# Getting Input from User: + +#N=input("Enter the number of elements: ") + +#Array=[] + +#for a in range(0,N): + + #Elements=input("Enter the Elements in Array: ") + + #Array.append(Elements) + +#print("The given Array is", Array) + +#print("The second largest number of the given array is", second_largest(Array)) +#print("The second smallest number of the given array is", second_smallest(Array)) \ No newline at end of file diff --git a/Smallest and Largest in Array/second_largest_smallest.pyc b/Smallest and Largest in Array/second_largest_smallest.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ee7c0ad34dc81b72aeaf21082738fcbcd10d26d3 GIT binary patch literal 951 zcmc&y%}T>S5T4!CpN2*+q7*MV=HvrNDN1{@7MdV}tdx)}8k#0Cy9EQy&4=(keF0~- z2@>!oYS@{4GxP24?8jIijy-;tB7){)_`gC^r|4pUH-HBO%m4;4hrqM26cMq9M!^J4 zW$3nsI;@#N9ELTA*MNfQ;| Date: Thu, 21 Feb 2019 14:12:28 +0530 Subject: [PATCH 23/33] Rotation completed --- Questions.md | 4 +- Rotation/K_rotations_left.py | 29 +++++++++++++ Rotation/K_rotations_left.pyc | Bin 0 -> 460 bytes Rotation/K_rotations_right.py | 31 ++++++++++++++ Rotation/K_rotations_right.pyc | Bin 0 -> 471 bytes Rotation/One_left.py | 30 +++++++++++++ Rotation/One_left.pyc | Bin 0 -> 380 bytes Rotation/One_right.py | 28 ++++++------ Rotation/One_right.pyc | Bin 0 -> 391 bytes .../test_I_index.cpython-27-PYTEST.pyc | Bin 0 -> 2355 bytes .../test_K_rotations.cpython-27-PYTEST.pyc | Bin 0 -> 2402 bytes .../test_index.cpython-27-PYTEST.pyc | Bin 0 -> 2290 bytes .../test_one_left.cpython-27-PYTEST.pyc | Bin 0 -> 1577 bytes .../test_one_right.cpython-27-PYTEST.pyc | Bin 0 -> 1582 bytes .../test_two_right.cpython-27-PYTEST.pyc | Bin 0 -> 1585 bytes Rotation/index_R_left.py | 38 +++++++++++++++++ Rotation/index_R_left.pyc | Bin 0 -> 524 bytes Rotation/index_R_right.py | 40 ++++++++++++++++++ Rotation/index_R_right.pyc | Bin 0 -> 530 bytes Rotation/index_left.py | 30 +++++++++++++ Rotation/index_left.pyc | Bin 0 -> 477 bytes Rotation/index_right.py | 30 +++++++++++++ Rotation/index_right.pyc | Bin 0 -> 488 bytes Rotation/test_I_index.py | 40 ++++++++++++++++++ Rotation/test_K_rotations.py | 39 +++++++++++++++++ Rotation/test_index.py | 36 ++++++++++++++++ Rotation/test_one_left.py | 18 ++++++++ Rotation/test_one_right.py | 18 ++++++++ Rotation/test_two_right.py | 18 ++++++++ Rotation/two_left.py | 39 +++++++++++++++++ Rotation/two_right.py | 36 ++++++++++++++++ Rotation/two_right.pyc | Bin 0 -> 455 bytes 32 files changed, 488 insertions(+), 16 deletions(-) create mode 100644 Rotation/K_rotations_left.py create mode 100644 Rotation/K_rotations_left.pyc create mode 100644 Rotation/K_rotations_right.py create mode 100644 Rotation/K_rotations_right.pyc create mode 100644 Rotation/One_left.py create mode 100644 Rotation/One_left.pyc create mode 100644 Rotation/One_right.pyc create mode 100644 Rotation/__pycache__/test_I_index.cpython-27-PYTEST.pyc create mode 100644 Rotation/__pycache__/test_K_rotations.cpython-27-PYTEST.pyc create mode 100644 Rotation/__pycache__/test_index.cpython-27-PYTEST.pyc create mode 100644 Rotation/__pycache__/test_one_left.cpython-27-PYTEST.pyc create mode 100644 Rotation/__pycache__/test_one_right.cpython-27-PYTEST.pyc create mode 100644 Rotation/__pycache__/test_two_right.cpython-27-PYTEST.pyc create mode 100644 Rotation/index_R_left.py create mode 100644 Rotation/index_R_left.pyc create mode 100644 Rotation/index_R_right.py create mode 100644 Rotation/index_R_right.pyc create mode 100644 Rotation/index_left.py create mode 100644 Rotation/index_left.pyc create mode 100644 Rotation/index_right.py create mode 100644 Rotation/index_right.pyc create mode 100644 Rotation/test_I_index.py create mode 100644 Rotation/test_K_rotations.py create mode 100644 Rotation/test_index.py create mode 100644 Rotation/test_one_left.py create mode 100644 Rotation/test_one_right.py create mode 100644 Rotation/test_two_right.py create mode 100644 Rotation/two_left.py create mode 100644 Rotation/two_right.py create mode 100644 Rotation/two_right.pyc diff --git a/Questions.md b/Questions.md index 3173e22..66288ec 100644 --- a/Questions.md +++ b/Questions.md @@ -36,8 +36,8 @@ 32. Given an unsorted integer array of length N as input, rotate the contents of the array to the right/left by K positions, where K is always less than N. 33. Given an unsorted integer array of length N as input, rotate the contents of the array to the right/left by K positions, where K could be greater than N. 34. Given an unsorted integer array, return the count of the elements with values that falls within a given range. -35. Given an unsorted integer array A containing elements from 0-9, find the number of unique elements. -36. Given an unsorted integer array A containing elements from 0-9, count the number of times each number appears. +*35. Given an unsorted integer array A containing elements from 0-9, find the number of unique elements. +*36. Given an unsorted integer array A containing elements from 0-9, count the number of times each number appears. 37. Given an unsorted integer array A, find the value that will be in 3rd position or index after 2 rotations to the right. 38. Given an unsorted integer array A, find the value that will be in 3rd position or index after 2 rotations to the left. 39. Given an unsorted integer array A, find the value that will be in index "I" after "R" rotations to the right. diff --git a/Rotation/K_rotations_left.py b/Rotation/K_rotations_left.py new file mode 100644 index 0000000..715a9ce --- /dev/null +++ b/Rotation/K_rotations_left.py @@ -0,0 +1,29 @@ +def by_left(Array,K): + + position=1 + + while not (position>K): + + X=Array.pop(0) + Array.append(X) + position+=1 + + return Array + +# Getting Input from User: + +#K=input("Enter the number of Rotations: ") + +#N=input("Enter the number of elements: ") + +#Array=[] + +#for a in range(0,N): + + #Elements=input("Enter the Elements in Array: ") + + #Array.append(Elements) + +#print("The given Array is", Array) + +#print("The left rotations of the given array is", by_left(Array,K)) \ No newline at end of file diff --git a/Rotation/K_rotations_left.pyc b/Rotation/K_rotations_left.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a67f925ed3e63ea038c2b389fe68b54d11a92af0 GIT binary patch literal 460 zcmb_WTS@~#5bT+aF^X%hv0wRA5D7{IKY{@_NJIz1njLY?W5(?XxUhcdMLeSyuzCo1 z0SBtOyLzg-lb`hP`*Cd+w0jEi0^k%>5`7UpAW<~UG?ax<2aq@dSP1P8P46evYHAfN zJH$h3iC)pt^oec~OGRxWrNTdWPGNdGpc#HnvjlS{m8`D-ira#S-uci)EWEdyGLz+D z4|G}AMH9p@4n44UT!qSQqI91@p-6mOWDjvAktmk*L{_$V?D`4&gI^}3;zF%9_F8~UAbM^ JVY~x1{Q}jnWXu2n literal 0 HcmV?d00001 diff --git a/Rotation/K_rotations_right.py b/Rotation/K_rotations_right.py new file mode 100644 index 0000000..e8e9536 --- /dev/null +++ b/Rotation/K_rotations_right.py @@ -0,0 +1,31 @@ +# Rotate the given array by K positions: + +def by_right(Array,K): + + position=1 + + while not (position>K): + + X=Array.pop(-1) + Array.insert(0,X) + position+=1 + + return Array + +# Getting Input from User: + +#K=input("Enter the number of Rotations: ") + +#N=input("Enter the number of elements: ") + +#Array=[] + +#for a in range(0,N): + + #Elements=input("Enter the Elements in Array: ") + + #Array.append(Elements) + +#print("The given Array is", Array) + +#print("The right rotations of the given array is", by_right(Array,K)) diff --git a/Rotation/K_rotations_right.pyc b/Rotation/K_rotations_right.pyc new file mode 100644 index 0000000000000000000000000000000000000000..bdf12329105bd4a2a646dc75c96d1fa3519d6fa6 GIT binary patch literal 471 zcmcIe(Mkg`5ZvTyQL)y~xF=sl5wTQ6C>FdTiUvyU1siLdc$yWw$RrnGqq|2cv?NF~uH(F1^@QLfRMN@^i8L?6MINT5G7y&qGfsZlg< z5%;JedI66xASZr#W`f`DJR|=jc#Md<2Ai)Rb8iN}IkpWrU5zVeU!}fSs(3AO>d|>V&)uX{5 z$Us+D^{XcOjvs%%3caD*Q^;ck$AFyZlV}B^=sjtnvXQ zHmPxzb=aC84g0;VSf|!!!t`5Z)}`6{zH59JH~zHzfW@AoUMFtN5;08MfV=7cIzJz5 Lek{!}IE(QwHxN@# literal 0 HcmV?d00001 diff --git a/Rotation/One_right.py b/Rotation/One_right.py index f1a1771..f4ca798 100644 --- a/Rotation/One_right.py +++ b/Rotation/One_right.py @@ -1,29 +1,29 @@ -# Rotate the given array by moving one position: +# Rotate the given array by moving one position to right: -def One_left(Array): +def One_right(Array): - rotate=[] + #rotate=[] X=Array.pop(-1) # To rotate one bit by left: - rotate.append(X) - for a in Array: - rotate.append(a) + Array.insert(0,X) + #for a in Array: + #rotate.append(a) - return rotate + return Array #Getting Input from User: -N=input("Enter the number of elements: ") +#N=input("Enter the number of elements: ") -Array=[] +#Array=[] -for a in range(0,N): +#for a in range(0,N): - Elements=input("Enter the Elements in Array: ") + #Elements=input("Enter the Elements in Array: ") - Array.append(Elements) + #Array.append(Elements) -print("The given Array is", Array) +#print("The given Array is", Array) -print("The first rotation of the given array is",One_left(Array)) \ No newline at end of file +#print("The first rotation of the given array is",One_right(Array)) \ No newline at end of file diff --git a/Rotation/One_right.pyc b/Rotation/One_right.pyc new file mode 100644 index 0000000000000000000000000000000000000000..4094082c625937df00adfaa5b8bd91228b227567 GIT binary patch literal 391 zcmb_WOG*Pl5UrkxqCzlta5F0pAR>{tH6arO2@Mi5jcKFP%~WMEkgVcea;BUk2Z*m) z(F<5muU>s$<%jOYez&x9`Z0sphjSND5q%O(K@3fb43)X|mE`aNoUZ_DqPH}(HMB7) zHB@D^Hnh#ipgk#cVd#%A4@T*lXfcK;r-;60*T{GM1o?f_%vw>s=K??pxDPhCu}_#~ zyNLF|@lryxk8SBvVIp!_oLb%upX YmL0&K>_2Ls;qdK8s8;XpE=eP&F9R4^b^rhX literal 0 HcmV?d00001 diff --git a/Rotation/__pycache__/test_I_index.cpython-27-PYTEST.pyc b/Rotation/__pycache__/test_I_index.cpython-27-PYTEST.pyc new file mode 100644 index 0000000000000000000000000000000000000000..84a689489622d042d3328574bf32b309e63b8b5d GIT binary patch literal 2355 zcmcIl-EJF26h7!1tZ?wxqvQlq7pH=bSk|GxL2j{+}1Rzm2BDZyO>bS^Z!v zck$VW5HbEd$wUsldfbqSFO#Mm1`;>qC%9U*t1X9ZiG4M$)y9q-b|h}9vCC`+{Q#NM zzwk5AsvguPzI*sAEe`)fi33Sd)feZ6Q|`d=ZPof9aRH{K%M%Wk7Bnj zFOjCD&bBPn3IAhE(M28fTc|TY6iQu$h^$RYckPpYG5`Ei>)6f@wr@sc5 zVehU7akrRC~dINS2SH%(`ynbBT3fRJtorLwl0XvN$Z0q709-{3y!8X>^vj zjyj`pLXTrx``T8TProV4ymaqz!Z0Qwl@sS zFW~zof|yQW`^rGZ3-^QaQ(`^K|W2CWR7VRqqqq$L*;!#))_Y7YUEd#y#7?LnDE7O z`j<)y74M80WVtfKa1*H6%Mjx4crE_=JAMy@_(itl%3Cp{r3~?e3;_Y&mLVWU#gMHR z7}7Zp^*1sEmv|QpSwA24Mux0Q+*>hZyJpD7zh($8yg^Esq{<7Pe~PbSh_Yq{-&fG2 zLJ1MBP%*qzU&RWu0q1|F1YucIB1^{35!zq`$4Ur8j=diLhU=~#m`j|zLqR}21HE~l zDxVYc0mT1+X(b|`t?$tJN2u`{NLRN3c^KBOU>NEe9lHzhcp%emMNm94yJhlYnY!x9 zdur9KT6wCiVn(w`@gc=kijN_lE%)8>cn!JloaON>OTN-On5Ws3ZRrHPMrX6v_!~hI B-wyx) literal 0 HcmV?d00001 diff --git a/Rotation/__pycache__/test_K_rotations.cpython-27-PYTEST.pyc b/Rotation/__pycache__/test_K_rotations.cpython-27-PYTEST.pyc new file mode 100644 index 0000000000000000000000000000000000000000..39136f20d7be9bb0770981b69065573e12cca956 GIT binary patch literal 2402 zcmcJQO>f&q5Qc}OL|KlU$WH9KK@PqYWezo(&qELwG2EhuA_lT z^{M(pou1&+&r!tqcPJy;cj~%JLyv|H+HX?q(rbkLI@F^57R8=87iwpl_S+OU#JR|$ z?FCJYoc@i!U76K^*}%7hPqWA1H>9{pDQ5M^I5c$WjOf@W{S_IR9&OGXDj$p4RWs?FByO*+nl*brnUVbyAv*FM?w7^=)l9ogd3_g1Ly` zx};68fRN(cO$Wu3ViF#V)6AqJjfsh}ydP!SEZUe!vX5!nC_|E$gn+0`iHQrY`s}b zBn9#JF}arXc%yiqG%uSRpSG=L1OE}eQbb!qC+G3pJPHb}2IMpPLuvpK*}D^;5Tbkm>|lP(etb=a(B z^fPf6pPR9aeiai+5tC&Esa~Onap(PRzt`P7>Go&cO-%0Ap?HbahlN~c`A$*kvIAON zkk)OQ`rLV5j#vjs+Y4@Br*>1`Go*}yC5Ayz;G)wjj0WEK7nbt4C z=jKIx4x7S`C+x_r$M^_h9Qqh=x-~f0YH+$2z=3M#!TG5sz=HEjO~4EsT>Nc-bB?#) z>TVXCKk9BXa4c^E&TQ`%Qe#QmAI{%Znc`fte=KOEL zS800{+FpH6+xB)~GQ;}83`1F``JA12WAG4dT4eDaZI;Q4GBx&foOxxts)*e#9#L^N piic4*x!^?Jt^3oHy@2r_pXBj4OTLkNnK!>fE7Wdw+;+F){sRwC@!$Xe literal 0 HcmV?d00001 diff --git a/Rotation/__pycache__/test_index.cpython-27-PYTEST.pyc b/Rotation/__pycache__/test_index.cpython-27-PYTEST.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e28a936d7980a67fdf765c5544677ffc44ce1c8d GIT binary patch literal 2290 zcmd^=O>YxP5Qb}JY$pyTA$%>nd*Om)4n%w(Rs<0R4lC_O+756CmPUi8os2W_jHcUK zEIAy2D<^&n|A2qQh1>GJHFnr#0co|lVWm4=UDZ|9-B0yI?@um0elqGk3`P1f`(Z5i z(A*<*DgFYfd*vj4I?i&RjT{1t-K$7_I{rjTNbXjQB}$0k1T!`dw>tLn68eHpcQ*b?)IShDl!(etphoMX{4rL#zNT!jv z58@TLbcNyoeooD720)@A8Qd-k?rYeb6Y^Y_v}i^`UaJTQR3srlvn{vNrGGAaJ6{IB zSoUtdOhqmOye9}&L()}}ImKX^6QB<%AkDT+k%h)NA`SaM5p8#QdRy57`iw`Gksdff z$7*n_y7hHOs~LkA*Vh%t>%fu5xNqC{HZ?R=!jirpC;1G~>ju;RV)-T(*9hNKNM>>B z@t1>rjyha)iI!)lFvL~1yXRFl9L2v95yO4>Rdg}H&z0_eaZo0eHB7;wpEO*)}*H!1=6sr%t>0z(XO$(b|lxR-}p?vrPOP8Oz59t60Bg|d90_v!q)qe z=v>f>R-z7=eDj^ z`DZMSb!YxZtcvmega5U<0P&SrtL&du=Id|P(X3}>&oufT7*?)f`51or41JlO(S6$P fan|V~Jl{De(s6F@^38EP?T(z5cC!<War5FXo!)3ho5L84*T4U$<<(Nemo8q}&~Nf0hw znw@PLI5eoyNqr`9>BObjrjIadQ0&NIjvbG^8iFK0@aswfBqA0a;?XQIc!w0%DM12< zj70;RE{V=v(vQeUCfHnBRO|^`XBV&|hwbAU?cBRS7*~`Hnu-$o4=|DXk3AQ8y6{4( zJ0OwPsxa#hynOQbp*CF3>td{siwL4yY`i(Be6HQJK=$)V_;#G6CK+iYCQ7qjlxj0y z>WtDRj0)2R8|t%coW^0H@*+Go zkqOoNJdH+?fzp#I7NF!RO8uq>mW1ddoDO$`H)v4@XL)d>^ts9M;KjsOd8UJdqKGE1 z#wZcNbl_)3!Uj@wHd0}#`eq}am{kN4VGo(5G`^%dq?%hM%cX-7G|ciNGhIV{7(CEW zP6v~XT{?9ML%Jb^8Otpm=zyxpUD!0WXlm2BO&1PL9ny%xP~2j`)hJ$N#7=Qo zVgXRu5bHUb*4g=Y1fq|aunRoWZqfivc>JgvgyEOqp+xSMWu1=Z+phq+-suQdw}4f~ zA;6$|M#Vmx3jCs;8AoY_-z^{Fzkt3C=MvxBf*@VyDbKejySWDl;W5Ich?f;od@kCo zfP`3qRB+zQhIv#dpY!?Lp3ms;xo=+jH4Horc2*G<{w$e~~R_ATQCkdCixg ze{zF=`ahOH>fm*rZ3fpb!y%__wVfrW1?XSV3bo0Twz%kU_H_tDxdd~ch1e-X+9jEE|YT&}+ifzM(6HIQFj%IV+jJ9oA>%;IsXp7G=~3tF^FExYOb E1Zs*~2><{9 literal 0 HcmV?d00001 diff --git a/Rotation/__pycache__/test_one_right.cpython-27-PYTEST.pyc b/Rotation/__pycache__/test_one_right.cpython-27-PYTEST.pyc new file mode 100644 index 0000000000000000000000000000000000000000..cc44a24837bc8d0b9624e71b388db6af69ea4e69 GIT binary patch literal 1582 zcmcIkO>War5FXo!)3ho5L84*T4U$<<(NelVP1UM&Nf0hlf}}t3>q-J7A{HIu(JV1|hZNT-MFNM6 zMFX2IiOyZpPsm6n*j!qqc7?683)qpv_Hm7N9$X-dE6N5=O0J^RZ+c)!h(5yU@I~+rE$ZN`2wo=o+~h^@YT_qFu7d-mqRE>v zN<=Un__>j=ffSvOl2E0mXJ(_Am{mj)X%DHTHom1gq?&ss%cX-7HO%rOLtR6Gm^|Q6 zjt8TST{?9MQ^MhviscqhbU@YUE^L}wG_~p6rVEFr4(Ua!ghjl}Y#+f_Dw{sAQlk{P zniWTJf)`68@au?(Fi#q+ciFWhwdHgiKIjGo C*<8>7 literal 0 HcmV?d00001 diff --git a/Rotation/__pycache__/test_two_right.cpython-27-PYTEST.pyc b/Rotation/__pycache__/test_two_right.cpython-27-PYTEST.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ac07e287260daaaf15bd4d9fa18d3baded185a80 GIT binary patch literal 1585 zcmb_c%TC)+5FOijknju@72UC^Vx-|XSc<;iV^uzgse-N)AmQxj#KCZdG?GfbrZW4DGp9e5$t z5=fwRl$(vGZZ>}LOdBreBp*e{MFi13Htrl$ifcCuAp6J~|K`+e* zf$^h{SrQBb1Enif%tOgl6#6X}ED6y^I32$BKA=VIU1Z+dNMD*X^WKeBl%?7`$n#+Q zeuNScOnWLd64sNV%~k5>@%e?>%*JLFkwn@>YN?HHsS2s)p2@1wL4g`(`H`WvP#`7` zI27Z-XwR#J5n)s~&r~e5c$R%@I<#w>COF%4Y16es6Nhx&G6J`7nb{t~u1sxuKuLvS zWSJw3uwN}f^Oe}8#%2tf@4^BX!ZK(8%m(d-&D(B2OE<)Y+pp41SaxetIL}x^7cBpfOt>G#3n07KNr#cFsNpbzPsLlN7TKaidV#>L z8DAj(*+yvgv+xx*C$h62=v(}ttX8{ZFjasx$t~ADF`{hT%_vISQ6Bc5# zuzZ_EKiI*|Ji5wbQ+yF-Qo|QD)yVa#6$liERs3D~*XKhw%dPDV(r}bSZ+Li`1q-xF I3wFc#3qpHfL;wH) literal 0 HcmV?d00001 diff --git a/Rotation/index_R_left.py b/Rotation/index_R_left.py new file mode 100644 index 0000000..4b68933 --- /dev/null +++ b/Rotation/index_R_left.py @@ -0,0 +1,38 @@ +## Rotate the given array by R positions and find the Integer in the given index I: + + +def by_left(Array,R,I): + + Rotation=1 + + while not (Rotation>R): + + X=Array.pop(0) + Array.append(X) + Rotation+=1 + + Value=-1 + + if (IQmLZlQtnNx#V-^8@tE zqWA+Y%$duXnLQJIrn?{WN-gN;3HVc(O97hbo#+vPpqoshvWNgZ82fXWTLM6DBibBN z7f~l@6_XoNNAwIz(i_+~q=LGbQ-MCr9AW5nK=(SLZ9<(SFS!j3E22hojN(4H3Q+secFt*LY1n`A-{-jYxi9J}lpaFk zU0$wD295$aK6G)cZk=hIT3U5s+{)KhUA0qVYp25E>$P#b$En|qs;IQt%%-!_Joy9L w`W@_zR): + + X=Array.pop(-1) + Array.insert(0,X) + Rotation+=1 + + Value=-1 + + if (I`K$}x) z18N1OA=x3dM9+{U?VyJKD=0xjNIOXatr$DO+-sK}(6)`JmE}7ipygl@ zT!gqcHf+;;;u#Q%*^Of;i_)<@lUrRmU&?eIbIC=3VO7l=$I}y!*KUt_;pWa1xi3BX z#`}3z>lhk&up_YLnYzPTtJb9&X`8yDR5#5;mxWb+@olXw@3HE4qcVA-H?zsCGOM*a wE*pPu(R}~eu^sRc*^zzO7l+~iY#@4K9D9>pXn!vL!OHndk<^*K@K)H#7q7~5O#lD@ literal 0 HcmV?d00001 diff --git a/Rotation/index_left.py b/Rotation/index_left.py new file mode 100644 index 0000000..90075b9 --- /dev/null +++ b/Rotation/index_left.py @@ -0,0 +1,30 @@ +# Find the 3rd index of the given array after two rotations: + +def Left_Index(Array): + + rotation=1 + + while not (rotation>2): + + X=Array.pop(0) + Array.append(X) + rotation+=1 + + Value=Array[3] + return Value + +# Getting Input from User: + +#N=input("Enter the number of elements: ") + +#Array=[] + +#for a in range(0,N): + + #Elements=input("Enter the Elements in Array: ") + + #Array.append(Elements) + +#print("The given Array is", Array) + +#print("The third index of the given array after two rotations:",Left_Index(Array) ) \ No newline at end of file diff --git a/Rotation/index_left.pyc b/Rotation/index_left.pyc new file mode 100644 index 0000000000000000000000000000000000000000..454d11020b222081e0e63a16ed9624e0f82c1d2e GIT binary patch literal 477 zcmb_WT}#6-6un97n1yc7{)0aG;Ddt5aLgCM4XpTq1V&jR*3~vP8LZGf=`Zsy`3F2V z4EzHI?#($lH|L({Cr!RjYPF*M5x6f=E=AKsUqsIUg6=Yjmlf+VipdP+=4g<2g0`pB z3(}I-F}Vr#L~oEH`h+S271T?ng69OC;nT+~>=u`#6>F9aULtvt3r^#UI2): + + X=Array.pop(-1) + Array.insert(0,X) + rotation+=1 + + Value=Array[3] + return Value + +# Getting Input from User: + +#N=input("Enter the number of elements: ") + +#Array=[] + +#for a in range(0,N): + + #Elements=input("Enter the Elements in Array: ") + + #Array.append(Elements) + +#print("The given Array is", Array) + +#print("The third index of the given array after two rotations:",Right_Index(Array) ) \ No newline at end of file diff --git a/Rotation/index_right.pyc b/Rotation/index_right.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1ab4938025df19b2e86b6c9e97bcf114e755ae74 GIT binary patch literal 488 zcmb_WOG*Pl6s+z^Bu0|B^#-$Y;YJh@W8Anf=!hSrA%sk0+QgZ0x&sMJR`CGd)dOg~ zA>ajUc-8f~Ue~MWyVL$U%FG1Yqj+Die20(%pTG-=!hNjyG7-JOidX}dza>y!D=be? zDWn>+27DhC@J1=ZhN`Yxstr^c8x19+3dj8Sv5O}Tr%fEJBUBMr?a*}SWS5hz?uW;b zz{%b^Nf1`#MUYvSd0U29f`ulbUzX!lXpxn97zdYULCl_O@o_v~*qAM9@RwwRQ}aLz zZ>EL0vVIow!rZJ9Tjbuu6k-+U2NpuhVc?tim2`5@|-)B1k;nB|z`! jp6;oA)zxh^j3r1Sq5mTMYmOGJ&))NNF}LS+2=@2|!vJdg literal 0 HcmV?d00001 diff --git a/Rotation/test_I_index.py b/Rotation/test_I_index.py new file mode 100644 index 0000000..e1b379d --- /dev/null +++ b/Rotation/test_I_index.py @@ -0,0 +1,40 @@ +# Test case for Ith index after R rotations: + +def test_canassertTrue(): + assert True + +# Rotation to the Right: + +import index_R_right + +def test_Right(): + + #Arrange: + Array=[6,2,5,9,3] + R=3 + I=2 + expected=3 + + #Act: + actual=index_R_right.by_right(Array,R,I) + + #Assert: + assert expected==actual + +# Rotation to the Left: + +import index_R_left + +def test_Left(): + + #Arrange: + Array=[4,9,1,0,3] + R=2 + I=4 + expected=9 + + #Act: + actual=index_R_left.by_left(Array,R,I) + + #Assert: + assert expected==actual \ No newline at end of file diff --git a/Rotation/test_K_rotations.py b/Rotation/test_K_rotations.py new file mode 100644 index 0000000..f425b19 --- /dev/null +++ b/Rotation/test_K_rotations.py @@ -0,0 +1,39 @@ +# Test case for Rotating the given array by K times: + +def test_canasssertTrue(): + assert True + +# For rotating right: + +import K_rotations_right + +def test_rotate_right(): + + #Arrange: + Array=[6,2,8,1,0,5] + K=3 + expected=[1,0,5,6,2,8] + + #Act: + actual=K_rotations_right.by_right(Array,K) + + #Assert: + assert expected==actual + + +# For rotating Left: + +import K_rotations_left + +def test_rotate_left(): + + #Arrange: + Array=[6,9,2,0,1] + K=2 + expected=[2,0,1,6,9] + + #Act: + actual=K_rotations_left.by_left(Array,K) + + #Assert: + assert expected==actual \ No newline at end of file diff --git a/Rotation/test_index.py b/Rotation/test_index.py new file mode 100644 index 0000000..78d9bf7 --- /dev/null +++ b/Rotation/test_index.py @@ -0,0 +1,36 @@ +# Test condition for finding the value in the 3rd index after Two rotations of the given array: + +def test_canassertTrue(): + assert True + +# Rotation to right: + +import index_right + +def test_right_index(): + + #Arrange: + Array=[7,3,8,1,5] + expected=3 + + #Act: + actual=index_right.Right_Index(Array) + + #Assert: + assert expected==actual + +# Rotation to Left: + +import index_left + +def test_left_index(): + + #Arrange: + Array=[7,2,8,4,6] + expected=7 + + #Act: + actual=index_left.Left_Index(Array) + + #Assert: + assert expected==actual \ No newline at end of file diff --git a/Rotation/test_one_left.py b/Rotation/test_one_left.py new file mode 100644 index 0000000..1ab726e --- /dev/null +++ b/Rotation/test_one_left.py @@ -0,0 +1,18 @@ +# Test ccondition for rotating array to left by one bit: + +import One_left + +def test_canassertTrue(): + assert True + +def test_one_left(): + + #Arrange: + Array=[7,9,2,4,0,5] + expected=[9,2,4,0,5,7] + + #Act: + actual=One_left.One_left(Array) + + #Assert: + assert expected==actual \ No newline at end of file diff --git a/Rotation/test_one_right.py b/Rotation/test_one_right.py new file mode 100644 index 0000000..070b335 --- /dev/null +++ b/Rotation/test_one_right.py @@ -0,0 +1,18 @@ +# Test ccondition for rotating array to left by one bit: + +import One_right + +def test_canassertTrue(): + assert True + +def test_one_right(): + + #Arrange: + Array=[7,9,2,4,0,5] + expected=[5,7,9,2,4,0] + + #Act: + actual=One_right.One_right(Array) + + #Assert: + assert expected==actual \ No newline at end of file diff --git a/Rotation/test_two_right.py b/Rotation/test_two_right.py new file mode 100644 index 0000000..caa7bf9 --- /dev/null +++ b/Rotation/test_two_right.py @@ -0,0 +1,18 @@ +# Test case for rotation of the array by the two bits: + +import two_right + +def test_canassertTrue(): + assert True + +def test_two_right(): + + #Arrange: + Array=[8,3,0,1,2] + expected=[1,2,8,3,0] + + #Act: + actual=two_right.Two_right(Array) + + #Assert: + assert expected==actual \ No newline at end of file diff --git a/Rotation/two_left.py b/Rotation/two_left.py new file mode 100644 index 0000000..4892be7 --- /dev/null +++ b/Rotation/two_left.py @@ -0,0 +1,39 @@ +# Rotate the given array to the right by two positions: + +def Two_left(Array): + + #move=[] + #rotate=[] + position=0 + + #To rotate right by two bits: + while not (position>=2): + + X=Array.pop(0) + Array.append(X) + position+=1 + + #for a in Array: + #rotate.insert(0,a) + + #rotate+=move + + #return rotate + return Array + +# Getting Input from User: + +N=input("Enter the number of elements: ") + +Array=[] + +for a in range(0,N): + + Elements=input("Enter the Elements in Array: ") + + Array.append(Elements) + +print("The given Array is", Array) + +print("The rotation of the given array by the two positions to the right is:",Two_left(Array) ) + diff --git a/Rotation/two_right.py b/Rotation/two_right.py new file mode 100644 index 0000000..e0feccd --- /dev/null +++ b/Rotation/two_right.py @@ -0,0 +1,36 @@ +# Rotate the given array to the right by two positions: + +def Two_right(Array): + + #rotate=[] + position=0 + + #To rotate right by two bits: + while not (position>=2): + + X=Array.pop(-1) + Array.insert(0,X) + position+=1 + + #for a in Array: + #rotate.append(a) + + #return rotate + return Array + +# Getting Input from User: + +#N=input("Enter the number of elements: ") + +#Array=[] + +#for a in range(0,N): + + #Elements=input("Enter the Elements in Array: ") + + #Array.append(Elements) + +#print("The given Array is", Array) + +#print("The rotation of the given array by the two positions to the right is:",Two_right(Array) ) + diff --git a/Rotation/two_right.pyc b/Rotation/two_right.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c6a5efe5a24fc1343134ff87028f3a80915977bd GIT binary patch literal 455 zcmb_W(MkhB44mDwr4?)ajC=A`6p@ySZx*~NiY!R!9d@nlUN0$na6Z*P_5(CoD*k|h zolP>COp>qO{yJN_8FpdhAIPJgKn{EYkCGTnQY)RA^2zRvc-90u3Y^ow+*^lAD+AvY-Wr(p}eCQ3i5x#m%N5Rg=pC zPc?J=7M?2qJm=%G=B_Nc{cWf_9S9(4Cw<#DN9M3SPSrTmqyEhQ@q&&lK3|4>^IBZQ H1Ej_e@@iyh literal 0 HcmV?d00001 From 76a54fc5a267d2eaa43267fd0edf86b48775f87f Mon Sep 17 00:00:00 2001 From: Udhaikumar Mohan Date: Tue, 26 Feb 2019 19:49:54 +0530 Subject: [PATCH 24/33] revised rotation --- Rotation/complete_rotation_right.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Rotation/complete_rotation_right.py diff --git a/Rotation/complete_rotation_right.py b/Rotation/complete_rotation_right.py new file mode 100644 index 0000000..cd13436 --- /dev/null +++ b/Rotation/complete_rotation_right.py @@ -0,0 +1,18 @@ +# Write the rotation code for the given for one complete Rotations: +# Without using Inbuilt functions. + +def complete_rotation_right(Array): + + count=0 + while not (count==len(Array)): + + index=-1 + swap=0 + while not (index==len(Array)): + Array[index],swap=swap,Array[index] + index+=1 + count+=1 + return Array + +Array=[1,2,3,4,5] +print complete_rotation_right(Array) \ No newline at end of file From 9e8bb1032f924b44e7b590f3618b0c4b7abe25a8 Mon Sep 17 00:00:00 2001 From: Udhaikumar Mohan Date: Tue, 12 Mar 2019 10:02:22 +0530 Subject: [PATCH 25/33] duplicates --- ...st_remove_duplicates.cpython-27-PYTEST.pyc | Bin 0 -> 1626 bytes Duplicates/remove_duplicates.py | 27 ++++++++++ Duplicates/remove_duplicates.pyc | Bin 0 -> 441 bytes Duplicates/test_remove_duplicates.py | 18 +++++++ .../test_identical.cpython-27-PYTEST.pyc | Bin 0 -> 1609 bytes Identical/identical.py | 47 ++++++++++++++++++ Identical/identical.pyc | Bin 0 -> 513 bytes Identical/test_identical.py | 19 +++++++ Questions.md | 4 +- Rotation/index_R_right.pyc | Bin 530 -> 530 bytes 10 files changed, 113 insertions(+), 2 deletions(-) create mode 100644 Duplicates/__pycache__/test_remove_duplicates.cpython-27-PYTEST.pyc create mode 100644 Duplicates/remove_duplicates.py create mode 100644 Duplicates/remove_duplicates.pyc create mode 100644 Duplicates/test_remove_duplicates.py create mode 100644 Identical/__pycache__/test_identical.cpython-27-PYTEST.pyc create mode 100644 Identical/identical.py create mode 100644 Identical/identical.pyc create mode 100644 Identical/test_identical.py diff --git a/Duplicates/__pycache__/test_remove_duplicates.cpython-27-PYTEST.pyc b/Duplicates/__pycache__/test_remove_duplicates.cpython-27-PYTEST.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a7ef635f75496584836b30eb27813b3a3a65f87c GIT binary patch literal 1626 zcmcIkOK#Ip6uq|dE$J5t$^>gTGcECDV0GxZBk7zq>6kosl|GabU{8?Psy7=KATSRS|{A|4U@n|Ly{uU)fr`Ggr zQ`ezxiB8KD+4LQ%%2ZXQ(<()d2y5(k;+7C3{)=Br5+D(==n#))iNQOds7x^uIAkp9 z+H^&9St0#`jAVk%l|}iUuw`}u+jrPLD$(wvF~U?tS*4LEq5lRGssF^SAWsWkNVNnK zYOQj!@yyMJFQ03}<$TNs3b}|Ny2Hk;LFIAnrU9~_4TG~moS3+;k(ek++hL;3LZLHC zn;^{1I@my8q=O_1a+T%5d6J%mNze~_%G5;}b`)z2mvtaz#cBUto~OBa$OfG>?}a8% zU$Z3ahXzVls(1h;S5fGgDi>LAxie8>|FKI&nk#!;>~Pm)(}&)Z4@C@^1OIln!6{fLI(wYnB`d=;?a*$ zDlh<$@I`@^gq8Dojc{voZHdlHG`9F|yVm3q$2N^{w&~KQu|p$=^rB@1e$f)M9Ry#V z*mQuJ62-_;C0uE@JO$A;u}g)`7(_pX1x|!z5CO3@+KuY}yZxHFAuim0Pu+xNw>m`& zj6F29!r&d@u*d=cv?kVd8leiwGXo>~hzM)3iUGCaGAK$0;laf+QD&P>%`=}Mbfei6 zux8c(_OdWn9@pXV+IifzS7pMDdAt;|kFB(?WNi(H5zKnLdEO#h zOwnIpacjmG+wkfJ|5_G9$h~aGGMB_FKX0C!ksBoEskP=TI}NJPHLcP*xzZzd5KO-z zK_C+`Pgsa`L#)lBHLU1nuD;~4DLxo8so|MTG%{(ABYG=L__H%_`TqLmCii-2G)UB2 OK`sj#v_^HOVgCb?dvKWm literal 0 HcmV?d00001 diff --git a/Duplicates/remove_duplicates.py b/Duplicates/remove_duplicates.py new file mode 100644 index 0000000..03fda4b --- /dev/null +++ b/Duplicates/remove_duplicates.py @@ -0,0 +1,27 @@ +# Remove the Duplicates from the given array: + +def duplicates(Array): + + duplicates_removed=[] + + for a in Array: + if a not in duplicates_removed: + duplicates_removed.append(a) + + return duplicates_removed + +# Getting Input from User: + +#N=input("Enter the number of elements: ") + +#Array=[] + +#for a in range(0,N): + + #Elements=input("Enter the Elements in Array: ") + + #Array.append(Elements) + +#print("The given Array is", Array) + +#print("The array without duplicates:", duplicates(Array)) \ No newline at end of file diff --git a/Duplicates/remove_duplicates.pyc b/Duplicates/remove_duplicates.pyc new file mode 100644 index 0000000000000000000000000000000000000000..0e28db5e07f18625f1dc70bb1ff41e7e8c4a20f7 GIT binary patch literal 441 zcmcIeO-lnY5PeCtN--Dl7kFAccrA#C(me?Zwum5+vTQ=F{YcDY#fA2y^bh+7oNSBx z3k)-F9&gB-*ZEPs{$!&|?4ICx%}t8I0N=nf6M<1CSt--Lv+Ds*>N8A$wZP{YRzUu8 zinYXwOJH_@pb~jQQoaPly8_n}Yojcg-8UG!ObhSr(qzd#?latkP}K35nW_AIS{BjL zIM{{zuqLLzMaF;z=$6^wLO+rXq+h+xEzP3y`mP>Y??^Xh50#}jbxYFupQGM7j@ujO rzK%V%Yn2pg)21nEQ&g2(FG%iz3QF4pYEVl7i35>v;Zj+$+<4PEbz;lA0V1Ur z${TRy4R{>hfLGuF;G40N($XVX$$IB+XJ+U7Z2w$rnBDjOjz!d^@~PmxkH6+6!q1|F z=-8U>E7Z5CU!~*PRO8UGLs5l3!>vw{Et@$GJaVfzB>sh`BMFd*SapcMW{tr+pr}SM z64+!c>R0HJ=-eUwfQ)2<&!t8Ao`^LLfjG3;KdRF1>IIH*#8{_^7-9be7pecqb&#in zD5ScBCDdBwX8pdKjUR4k!{xlqM+&)!pt{A!orB5a+D#M7el`wHMsZ@|p+;h&B<+TY zHjTn&lr}+_n>C1mK1)YQ6yz$)gVQ8E36o$L4wRV}W7tz{Ft!zcbbw5a{F%zv)*xk)qs_1IHcs{MmJ z565ptC=rKg|5c=hCPwwXR2@&n&1`I1I7+l#f)O4O7f`YM>Ju^WTvn}|*+GKd-!EzoY%ydL&_8fHt_k7<~Q9M+_0 zk+Fv^Rv5e!Y?fF7B-X`yjwTKV{|QF)5fNx{7q``k8FBFjFMO-u)789GA;oQ)io;e*j3;dcFibEN<43QQ2zz|Z3Gv1-xfrbd5Zn*$!_uj zN4Si5f$|JE9(Q7vu>?R>BEavagDlLI#|b^Ao5!trj2cgv#bgj3cG978S&uP;5wbq> zm~-ADYp1v`;P_}J7d&`;L*Ds6yx`egXA9U4R>ujbyJ`YnEfT>?UaOg_dcJTm>W1!|{u0G_kDLxc4Es#Z2TI8m^B`7>T*5l93Rl~CTmtOlen(B)): + A,B=B,A + + for i in range(0,len(A)): + + index=i + if not (A[i]==B[i]): + index=i-1 + break + index=(len(A)-1) + + return index + + +# Getting Input from User: + +#N=input("Enter the number of elements in Array A: ") + +#A=[] + +#for a in range(0,N): + + #Elements=input("Enter the Elements in Array A: ") + + #A.append(Elements) + +# Getting Input from User: + +#N=input("Enter the number of elements for Array B: ") + +#B=[] + +#for a in range(0,N): + + #Elements=input("Enter the Elements in Array B: ") + + #B.append(Elements) + +#print("The given Array A is", A) + +#print("The given Array B is", B) + +#print("The identical elements in the given array A and B upto the index of: ",identical(A,B)) diff --git a/Identical/identical.pyc b/Identical/identical.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6e6633a07d2564df7d64393f6efbd7f8d66370c0 GIT binary patch literal 513 zcmb`C!AiqG5QhKR#G-|QNDmc!fSf#f5DCWi;=!VoBFK6O$)ZbQ60=)rAvx7I_63|> zYJC9%`_G?$XC_~Q@6k|Qe98>FhqzwzF(Z~7_yV5U5FR7JN#-Qnohett4X{85Y{?sP zrU=nS=*Z=w2YNyUte3FlmhA_&0<)JGy+9|>2d*iA3x(x}$R zw?@vCDQw-yyUjv1wUJ5NrkjVAGFI1>k+(U2NM~s&^{+c`Hui|O>;uPRPFNr&bS%!q ifW|bWkj7#jIjY5g<&WV%K@NHI)q9<w!e#Z~ib7%Vi literal 0 HcmV?d00001 diff --git a/Identical/test_identical.py b/Identical/test_identical.py new file mode 100644 index 0000000..6249a97 --- /dev/null +++ b/Identical/test_identical.py @@ -0,0 +1,19 @@ +# Test case for the identical elements: + +import identical + +def test_canassertTrue(): + assert True + +def test_identical_array(): + + #Arrange: + A=[3,41,5,64,2,1] + B=[3,41,5,6,2,1] + expected=2 + + #Act: + actual=identical.identical(A,B) + + #Assert: + assert expected==actual \ No newline at end of file diff --git a/Questions.md b/Questions.md index 66288ec..0d57ebc 100644 --- a/Questions.md +++ b/Questions.md @@ -20,8 +20,8 @@ 16. Wrtie a function that takes an unsorted integer array as input and returns a copy of the array as output. 17. Write a function that takes an unsorted integer array as input and prints the contents of the array in reverse order. 18. Write a function that takes an unsorted integer array as input and returns an array with the values in reverse order. -*19. Write a function that takes two unsorted integer arrays as input and returns the index upto which they are identical. Return -1 otherwise. -*20. Write a function that takes an unsorted integer array as input and returns an array with the duplicates removed. +19. Write a function that takes two unsorted integer arrays as input and returns the index upto which they are identical. Return -1 otherwise. +20. Write a function that takes an unsorted integer array as input and returns an array with the duplicates removed. 21. Given an unsorted integer array as input, return the number of odd numbers in it. 22. Given an unsorted integer array as input, return the number of even numbers in it. 23. Given an unsorted integer array as input, return the number of prime numbers in it. diff --git a/Rotation/index_R_right.pyc b/Rotation/index_R_right.pyc index 79d4ace558841bc76e217e0d16d933758974da46..a57e695653b04a34396ad5e49135b6d366db6b01 100644 GIT binary patch delta 46 xcmbQlGKqzq`7}rgR&Xe^RyTGJ}piORmN@-529Ww(1LopCD001B_3f=$! delta 46 xcmbQlGKqzq`7}rgR$&>XMyTGJ}piORmN@-529Ww(1LopCD001rD3s3+6 From 31c05b0991be5ab5ac215c4639463fe720d819d0 Mon Sep 17 00:00:00 2001 From: Udhaikumar Mohan Date: Mon, 6 May 2019 10:36:37 +0530 Subject: [PATCH 26/33] subset problems --- .pytest_cache/v/cache/lastfailed | 1 + .pytest_cache/v/cache/nodeids | 76 ++++++++++++++++++ .pytest_cache/v/cache/stepwise | 1 + .vscode/settings.json | 12 +-- Lengthofarray/Lengthofarray.pyc | Bin 398 -> 398 bytes Rotation/index_R_right.py | 2 +- Rotation/index_R_right.pyc | Bin 530 -> 530 bytes .../test_Kth_Largest.cpython-27-PYTEST.pyc | Bin 1666 -> 1666 bytes Subset/Indices.py | 46 +++++++++++ Subset/Indices.pyc | Bin 0 -> 563 bytes Subset/IsExists(3).py | 1 + Subset/IsExists.py | 52 ++++++++++++ Subset/IsExists.pyc | Bin 0 -> 538 bytes Subset/Values.py | 46 +++++++++++ Subset/Values.pyc | Bin 0 -> 569 bytes .../__pycache__/test_41.cpython-27-PYTEST.pyc | Bin 0 -> 1560 bytes .../__pycache__/test_42.cpython-27-PYTEST.pyc | Bin 0 -> 1609 bytes .../__pycache__/test_43.cpython-27-PYTEST.pyc | Bin 0 -> 1600 bytes Subset/test_41.py | 19 +++++ Subset/test_42.py | 19 +++++ Subset/test_43.py | 21 +++++ 21 files changed, 290 insertions(+), 6 deletions(-) create mode 100644 .pytest_cache/v/cache/lastfailed create mode 100644 .pytest_cache/v/cache/nodeids create mode 100644 .pytest_cache/v/cache/stepwise create mode 100644 Subset/Indices.py create mode 100644 Subset/Indices.pyc create mode 100644 Subset/IsExists(3).py create mode 100644 Subset/IsExists.py create mode 100644 Subset/IsExists.pyc create mode 100644 Subset/Values.py create mode 100644 Subset/Values.pyc create mode 100644 Subset/__pycache__/test_41.cpython-27-PYTEST.pyc create mode 100644 Subset/__pycache__/test_42.cpython-27-PYTEST.pyc create mode 100644 Subset/__pycache__/test_43.cpython-27-PYTEST.pyc create mode 100644 Subset/test_41.py create mode 100644 Subset/test_42.py create mode 100644 Subset/test_43.py diff --git a/.pytest_cache/v/cache/lastfailed b/.pytest_cache/v/cache/lastfailed new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/.pytest_cache/v/cache/lastfailed @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/.pytest_cache/v/cache/nodeids b/.pytest_cache/v/cache/nodeids new file mode 100644 index 0000000..760d166 --- /dev/null +++ b/.pytest_cache/v/cache/nodeids @@ -0,0 +1,76 @@ +[ + "Copy of Array/test_copy.py::test_canassertTrue", + "Copy of Array/test_copy.py::test_copy", + "Count Repeated/test_count_repeated.py::test_canassertTrue", + "Count Repeated/test_count_repeated.py::test_count_repeated", + "Count Repeated/test_greater_count.py::test_canassertTrue", + "Count Repeated/test_greater_count.py::test_Greater", + "Count Repeated/test_lesser_count.py::test_canassertTrue", + "Count Repeated/test_lesser_count.py::test_Lesser", + "Duplicates/test_remove_duplicates.py::test_canassertTrue", + "Duplicates/test_remove_duplicates.py::test_duplicates", + "Identical/test_identical.py::test_canassertTrue", + "Identical/test_identical.py::test_identical_array", + "Index and Value/test_dictionary.py::test_canassertTrue", + "Index and Value/test_dictionary.py::test_dictionary", + "Lengthofarray/test_lengthofarray.py::test_canassertTrue", + "Lengthofarray/test_lengthofarray.py::test_len_of_array", + "Mean/test_mean.py::test_canassertTrue", + "Mean/test_mean.py::test_mean", + "Mode/test_Mode.py::test_canassertTrue", + "Mode/test_Mode.py::test_Mode", + "Multiple Integers/test_repeated.py::test_canassertTrue", + "Multiple Integers/test_repeated.py::test_isRepeated", + "Numbers/test_even_numbers.py::test_canassertTrue", + "Numbers/test_even_numbers.py::test_even_numbers", + "Numbers/test_odd_numbers.py::test_canassertTrue", + "Numbers/test_odd_numbers.py::test_odd_numbers", + "Numbers/test_prime.py::test_canassertTrue", + "Numbers/test_prime.py::test_prime", + "Numbers/test_square.py::test_canassertTrue", + "Numbers/test_square.py::test_square", + "Reverse of Array/test_reverse.py::test_canassertTrue", + "Reverse of Array/test_reverse.py::test_reverse", + "Rotation/test_I_index.py::test_canassertTrue", + "Rotation/test_I_index.py::test_Right", + "Rotation/test_I_index.py::test_Left", + "Rotation/test_K_rotations.py::test_canasssertTrue", + "Rotation/test_K_rotations.py::test_rotate_right", + "Rotation/test_K_rotations.py::test_rotate_left", + "Rotation/test_index.py::test_canassertTrue", + "Rotation/test_index.py::test_right_index", + "Rotation/test_index.py::test_left_index", + "Rotation/test_one_left.py::test_canassertTrue", + "Rotation/test_one_left.py::test_one_left", + "Rotation/test_one_right.py::test_canassertTrue", + "Rotation/test_one_right.py::test_one_right", + "Rotation/test_two_right.py::test_canassertTrue", + "Rotation/test_two_right.py::test_two_right", + "Same Array/test_same_array.py::test_canassertTrue", + "Same Array/test_same_array.py::test_Is_same", + "Smallest and Largest in Array/test_Kth_Largest.py::test_canassertTrue", + "Smallest and Largest in Array/test_Kth_Largest.py::test_Largest", + "Smallest and Largest in Array/test_Kth_Smallest.py::test_canassertTrue", + "Smallest and Largest in Array/test_Kth_Smallest.py::test_Smallest", + "Smallest and Largest in Array/test_Largest.py::test_canassertTrue", + "Smallest and Largest in Array/test_Largest.py::test_Largest", + "Smallest and Largest in Array/test_Smallest.py::test_canassertTrue", + "Smallest and Largest in Array/test_Smallest.py::test_Smallest", + "Smallest and Largest in Array/test_count.py::test_canassertTrue", + "Smallest and Largest in Array/test_count.py::test_smallest", + "Smallest and Largest in Array/test_count.py::test_largest", + "Smallest and Largest in Array/test_second_comparison.py::test_canassertTrue", + "Smallest and Largest in Array/test_second_comparison.py::test_Largest_smallest", + "Subset/test_41.py::test_canassertTrue", + "Subset/test_41.py::test_IsExists", + "Subset/test_42.py::test_canassertTrue", + "Subset/test_42.py::test_Subset_Index", + "Subset/test_43.py::test_canassertTrue", + "Subset/test_43.py::test_subset_values", + "Sum_of_Array/test_sum_of_Array.py::test_canassertTrue", + "Sum_of_Array/test_sum_of_Array.py::test_sum_of_array", + "X_in_given_array/test_X_in_array.py::test_canassertTrue", + "X_in_given_array/test_X_in_array.py::test_X_in_array", + "X_index/test_X_index.py::test_canassertTrue", + "X_index/test_X_index.py::test_X_index" +] \ No newline at end of file diff --git a/.pytest_cache/v/cache/stepwise b/.pytest_cache/v/cache/stepwise new file mode 100644 index 0000000..0637a08 --- /dev/null +++ b/.pytest_cache/v/cache/stepwise @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json index 7ce4265..5857df9 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -2,15 +2,17 @@ "python.pythonPath": "C:\\Users\\hp\\Anaconda2\\python.exe", "python.linting.pylintEnabled": true, "python.linting.enabled": true, - "python.unitTest.unittestArgs": [ + "python.testing.unittestArgs": [ "-v", "-s", ".", "-p", "test*.py" ], - "python.unitTest.pyTestEnabled": false, - "python.unitTest.nosetestsEnabled": false, - "python.unitTest.unittestEnabled": false, - "python.unitTest.promptToConfigure": false + "python.testing.pyTestEnabled": true, + "python.testing.nosetestsEnabled": false, + "python.testing.unittestEnabled": false, + "python.testing.pyTestArgs": [ + "." + ] } \ No newline at end of file diff --git a/Lengthofarray/Lengthofarray.pyc b/Lengthofarray/Lengthofarray.pyc index 9ddc70abef95e0c7190b400d5b6aebbb93bc9ee7..1212c8694a10ed0bedc71601e9d3510ce8e7e4f1 100644 GIT binary patch delta 16 XcmeBU?qg;mj{_ONd_I5@9E7S## delta 16 XcmeBU?qg;mzo)@^0y`2#NB;o{J diff --git a/Rotation/index_R_right.py b/Rotation/index_R_right.py index 308ce20..53a391a 100644 --- a/Rotation/index_R_right.py +++ b/Rotation/index_R_right.py @@ -37,4 +37,4 @@ def by_right(Array,R,I): #print("The given Array is", Array) -#print("The I index of the given array after R rotations is", by_right(Array,R)) +#print("The I index of the given array after R rotations is", by_right(Array,R,I)) diff --git a/Rotation/index_R_right.pyc b/Rotation/index_R_right.pyc index a57e695653b04a34396ad5e49135b6d366db6b01..6d02d18a79656da3dae6041aa999b52f65c4fa9c 100644 GIT binary patch delta 16 XcmbQlGKqzq`7;l|@#6GG_G&f&Dl`RG delta 16 XcmZqTZQ^BT{>;nu{(Ra-_G&f&ET#pJ diff --git a/Subset/Indices.py b/Subset/Indices.py new file mode 100644 index 0000000..1f79cb0 --- /dev/null +++ b/Subset/Indices.py @@ -0,0 +1,46 @@ + #Given an unsorted integer array A and a value X, check if there exists a subset of A of size two that adds upto X and print the indices of the values that adds upto X. + +def Subset_Index(Array,X): + + Length=len(Array) + Subset=[] + + #Primary Index = I + #Secondary Index = J + + I=0 + + while not (I==Length): + + J=I+1 + + while not (J==Length): + + + if (Array[I]+Array[J]==X): + Indices ={I,J} + Subset.append(Indices) + + J=J+1 + + I=I+1 + + return Subset + +# Getting Input from User: + +#N=input("Enter the number of elements: ") + +#Array=[] + +#for a in range(0,N): + + #Elements=input("Enter the Elements in Array: ") + + #Array.append(Elements) + +#print("The given Array is", Array) + +#X=input("Enter the Sum: ") + +#print("The Subset of Given Array is:",Subset_Index(Array,X)) \ No newline at end of file diff --git a/Subset/Indices.pyc b/Subset/Indices.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ca5df7eee370bc48627d72d8983b6dead7ef1ec8 GIT binary patch literal 563 zcmb_X!A=4(5Pj{ks}c}zK=cFlI4z+0X$N{Fbp|$#uj!cJc=%b`XbPP z0p1x(jtNkDmQYr(EMO`y95W8}Y3qoiS^8M^Vf^jj&5~)>w#i4kX_zJC+L3)sIm!UW z!wZ86>@zHJH#cI76Wnj5D_9)T$s@bgVLv87Y(M4fYulX5LVMerQ*^c*GOR9eWI>hTEnVE0A6E(AMggR@`l%9HFm)FY4=0x Zc(6zC=i{Hu?2>5bHI0h7Jab0qj9*#6a%}(r literal 0 HcmV?d00001 diff --git a/Subset/IsExists(3).py b/Subset/IsExists(3).py new file mode 100644 index 0000000..8930261 --- /dev/null +++ b/Subset/IsExists(3).py @@ -0,0 +1 @@ +#Given an unsorted integer array A and a value X, check if there exists a subset of A of size three that adds upto X. \ No newline at end of file diff --git a/Subset/IsExists.py b/Subset/IsExists.py new file mode 100644 index 0000000..cfdbcd0 --- /dev/null +++ b/Subset/IsExists.py @@ -0,0 +1,52 @@ +#Given an unsorted integer array A and a value X, check if there exists a subset of A of size two that adds upto X (Subset sum for a pair). + +def Is_Exists(Array,X): + + Length=len(Array) + flag=False + + #Primary Index = I + #Secondary Index = J + + I=0 + + while not (I==Length): + + J=I+1 + + while not (J==Length): + + + if (Array[I]+Array[J]==X): + flag=True + return flag + + J=J+1 + + I=I+1 + + return flag + +# Getting Input from User: + +#N=input("Enter the number of elements: ") + +#Array=[] + +#for a in range(0,N): + + #Elements=input("Enter the Elements in Array: ") + + #Array.append(Elements) + +#print("The given Array is", Array) + +#X=input("Enter the Sum: ") + +#print("The subset of size two that adds upto X is Exists:",Is_Exists(Array,X)) + + + + + + diff --git a/Subset/IsExists.pyc b/Subset/IsExists.pyc new file mode 100644 index 0000000000000000000000000000000000000000..45de9c300fd937ef6c21171292ffd5386474989e GIT binary patch literal 538 zcmb_X+fKqj5Ix;qqD15o&>!fNPd*tm8ZQY(Nd%3?Y+|6SP^q+Zwh1Kdi~4(hjX&V* zitz{BX3or<)0sW%e${I)JD)Pb`Z%1AIjGJs20nmCE*uO(!AxWz;BYxkIp~c+110e8 zpc2rGt{JF2EF+X2N`aXGRi+*bG%Fv=4od%5NX;;7ZIgVoo26q0@)5K!yGj=W=GUW( zecb;p^03(Dj`h&^>BS6)%@b^|4VkF9_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eAZ!Ch@Qoj2K7Ar=utm)JNnP`RADX@P8~6K{VU#U>hQ1SX1; zz>l?Q<~pOa@%+pzf%WuZGLAzpQ)%WM#L2!Ndn13S%&aK=zG98xw00z|C>g!TvLrK$ zY|u}#p>I5OoW}mhH&8l~#T=BJMXq0Sz>*NXg;Vgj_ZB7U-eKB%uJn;f(%!3ytI|aG zcCyT$ydEP(IMcn|@xE53Cn;~Nuci~zh67;(M3j`cIWm4hl_EST$w#RCfgkOm!Kv^k5(RSFiulS(moOmAw@DI_*cD>Sv~2;S+}fl;B$rUFGjFk?S1u)OX<{1@mqa5=~NhM=j4 zlbhszu2 zasym;<8omxw?bC4n~apha!eLW!tljMg6N&gaol;%bB?B*1ZYxyT<=iDA%+#Ou})jp77K(3tH5sR%O=y1#UcB!vFvP literal 0 HcmV?d00001 diff --git a/Subset/__pycache__/test_43.cpython-27-PYTEST.pyc b/Subset/__pycache__/test_43.cpython-27-PYTEST.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f9cee654012f7021f439572f7cd5a3565b7fe7fb GIT binary patch literal 1600 zcmb_cOK#Ip6upieH%U{V0il8r>Hv@#P|*(^pcb`i84?K>5UMO$ZtS#9o!Ihw0V1Un z$`058J76I!fE_Sr0dVfMU7&PWD|vqR|2x;_&$-s}-EZEmLDZx2so}kazv3gr&!B{8 z->B|28kjV&Xun=@Y}&UetkEZ^%}{8{rNM@Kjs++2FFaidfI!5o9sCt@G~Paib&3(d zByG^3MyEu_HmOIXB@%Q_4azr!tg{Kok;(d@Me8?D;Kml=3{6D{`A4Wo{(Fv%I9*sF z)D;|oQcpJ#@k6CKomcrdLM$S%F3@or5V@SYZsXX>CjP-VPINp{2uzfuy&zG# zRmgOtv>)Vp0i>^v(s2^{d6eb;VUivMi9ZU4k#34G=tnHkoYuCa6{n-;d7kF_IxFCjy`j92TD9{i(lEo~9oJApDc0iIGY6G{Or`~InsJx@h+l|z*PBZVt#Er64dE0p& zOkR$WBAh92Z+xI4?McdOt4rBLci=$C9wJIg+?+bNic2NKrtJbOGoY9yvwVQOFmRxt zn989=7z^flV(`FNWYQrU>h$5(q8L6Kr0X=WD*%0|Kp}DSuR=E1sss=~+NAZc^{?6Y%FGnp{iw`@WZbnV zoMqf$1LhgHQ(Uev11M~Yc8jLS0;T)~MAQ)yR)Ra+jTurgLk{*hxREh~Lh=4>ZYtI) zA-cG^DQH~*TGM>58szg=v&Oh>Y Date: Mon, 6 May 2019 10:38:06 +0530 Subject: [PATCH 27/33] check --- X_index/X_index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/X_index/X_index.py b/X_index/X_index.py index 26dd35c..60914fa 100644 --- a/X_index/X_index.py +++ b/X_index/X_index.py @@ -13,7 +13,7 @@ def X_index(Array,X): return Index -# Getting Input from User: +#Getting Input from User: #N=input("Enter the number of elements: ") From b84f5b38ef872254cffae6739b007646489445ba Mon Sep 17 00:00:00 2001 From: Udhaikumar Mohan Date: Mon, 6 May 2019 10:41:25 +0530 Subject: [PATCH 28/33] check --- X_index/X_index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/X_index/X_index.py b/X_index/X_index.py index 60914fa..26dd35c 100644 --- a/X_index/X_index.py +++ b/X_index/X_index.py @@ -13,7 +13,7 @@ def X_index(Array,X): return Index -#Getting Input from User: +# Getting Input from User: #N=input("Enter the number of elements: ") From 9beb472c6b16fd645a8601f2eff4380c54f2b740 Mon Sep 17 00:00:00 2001 From: Udhaikumar Mohan Date: Tue, 7 May 2019 09:55:49 +0530 Subject: [PATCH 29/33] change --- X_index/X_index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/X_index/X_index.py b/X_index/X_index.py index 26dd35c..60914fa 100644 --- a/X_index/X_index.py +++ b/X_index/X_index.py @@ -13,7 +13,7 @@ def X_index(Array,X): return Index -# Getting Input from User: +#Getting Input from User: #N=input("Enter the number of elements: ") From 71ff739aa66b15618b6dd57b0c08a29963bd6bb8 Mon Sep 17 00:00:00 2001 From: Udhaikumar Mohan Date: Tue, 14 May 2019 10:43:41 +0530 Subject: [PATCH 30/33] min and max --- .pytest_cache/v/cache/lastfailed | 1 - .pytest_cache/v/cache/nodeids | 2 + Min and Max/Largest.py | 28 ++++++++++++++ Min and Max/Largest.pyc | Bin 0 -> 405 bytes Min and Max/Minmax.py | 36 ++++++++++++++++++ Min and Max/Smallest.py | 28 ++++++++++++++ Min and Max/Smallest.pyc | Bin 0 -> 409 bytes .../test_Pallindrome.cpython-27-PYTEST.pyc | Bin 0 -> 1596 bytes Min and Max/pallindrome.py | 32 ++++++++++++++++ Min and Max/pallindrome.pyc | Bin 0 -> 475 bytes Min and Max/rev_array.py | 32 ++++++++++++++++ Min and Max/rev_array.pyc | Bin 0 -> 512 bytes Min and Max/test_Pallindrome.py | 21 ++++++++++ Subset/Multiples.py | 0 X_index/X_index.pyc | Bin 414 -> 414 bytes 15 files changed, 179 insertions(+), 1 deletion(-) delete mode 100644 .pytest_cache/v/cache/lastfailed create mode 100644 Min and Max/Largest.py create mode 100644 Min and Max/Largest.pyc create mode 100644 Min and Max/Minmax.py create mode 100644 Min and Max/Smallest.py create mode 100644 Min and Max/Smallest.pyc create mode 100644 Min and Max/__pycache__/test_Pallindrome.cpython-27-PYTEST.pyc create mode 100644 Min and Max/pallindrome.py create mode 100644 Min and Max/pallindrome.pyc create mode 100644 Min and Max/rev_array.py create mode 100644 Min and Max/rev_array.pyc create mode 100644 Min and Max/test_Pallindrome.py create mode 100644 Subset/Multiples.py diff --git a/.pytest_cache/v/cache/lastfailed b/.pytest_cache/v/cache/lastfailed deleted file mode 100644 index 9e26dfe..0000000 --- a/.pytest_cache/v/cache/lastfailed +++ /dev/null @@ -1 +0,0 @@ -{} \ No newline at end of file diff --git a/.pytest_cache/v/cache/nodeids b/.pytest_cache/v/cache/nodeids index 760d166..fb41931 100644 --- a/.pytest_cache/v/cache/nodeids +++ b/.pytest_cache/v/cache/nodeids @@ -17,6 +17,8 @@ "Lengthofarray/test_lengthofarray.py::test_len_of_array", "Mean/test_mean.py::test_canassertTrue", "Mean/test_mean.py::test_mean", + "Min and Max/test_Pallindrome.py::test_canassertTrue", + "Min and Max/test_Pallindrome.py::test_pallindrome", "Mode/test_Mode.py::test_canassertTrue", "Mode/test_Mode.py::test_Mode", "Multiple Integers/test_repeated.py::test_canassertTrue", diff --git a/Min and Max/Largest.py b/Min and Max/Largest.py new file mode 100644 index 0000000..68554d3 --- /dev/null +++ b/Min and Max/Largest.py @@ -0,0 +1,28 @@ +# Find the Largest Number in the given Array: + +def Largest_in_Array(Array): + + Largest=0 + + for a in Array: + if (a>Largest): + Largest=a + + return Largest + + # Getting Input from User: + +#N=input("Enter the number of elements: ") + +#Array=[] + +#for a in range(0,N): + + #Elements=input("Enter the Elements in Array: ") + + #Array.append(Elements) + +#print("The given Array is", Array) + +#print("The Largest number of the given array is", Largest_in_Array(Array)) + diff --git a/Min and Max/Largest.pyc b/Min and Max/Largest.pyc new file mode 100644 index 0000000000000000000000000000000000000000..0b1e9b14f165fded1a0ec072c40a920ec82b29cd GIT binary patch literal 405 zcmb_W!Ab)$5S^sjN;TlUm(pJLB%VdYVvlaYiU^WY!fw!|y1Qml=t6t*2mKa*z?XEP zKhQAq=FLpz&2;`$e{}wJ!lTACR{+~aGqzy pyc-iA+y{_8)<&HvqsNgLm`LZ(M92QiiTw6(sF=&qOp*!h*78 zf%q2wfFIyn*sz0hubsA(E+LA?bKkFXUHCCq|Ge_Od(R^3QU0^>-oc~!@bR}OBs#Qa zcbf(U8WicUG~<-%uuQ&9AE8zuzaWWZa1#8&uOk5vh?up9M>EIZ?UG-j009bQ zEE?E!Ms!jpeV>d(g3g&m>9&w1HUSwGSl=(w)~zYrltoyfi3lP802RsqpjAek4y+Jr z9*3v3N=@@lD;Ynys|}~~Ivpv*A_D6gomLehhjTX#96QO_eLD(56GR$;iNd(&h1%3J znNixfUTRiBy81XCg}$4rBz2F%_^lVZkvCMPCPJ^TSYkM>T}dm5qi1Ovr)Gr}`f)n+ zjH^zQ(2G0+VN0^O0U>9R$=6#TNe=x2x4p;RHz-kekCX0GrB6(pboa-ON@CsJO;d0D zYJ?QwOn3K#sOd$1bKg7dO5QKMFbpC;jfZM28JlIe6MhfzB|&ag30%#ElU1hO3_48m zBa^j}CB_d-@F`N60*uxIaGklDsB0-Kh3_*%-|OY`!+KZk`Y!Tzs?9NlE26h zo!~OZ48Rb+0M9y2N^E=?a;U>6fPV@7=mfF?yj21B2TssDCfjYz?agu6Y_|oH8-OIk z4Kr6gqkM-|1!Z2(jJz<1>4pRLUwGbxaR%c}0ZJYxyI&vdD%|0s#UMv}iJk-2$}rlJ z3tR|&2`3I~8m`sF8ia!NUOY^^R5_fC!wqn_cBjIJEED5jR<9FBN;Xsi3OpT-@655r z4Cop5*3an-_z$npkN)2xEOIuy*q0i?g~$l0c+)Bu7m5vRz!zGgRcc9noV`2yRJg8m z!`x;jRtwJ7va+y=YpHsd1}6J1oO2ELE0;)@9qzKjZXI@WQLfzn_40Fl+r!u&h3W|p NQZu7L%ha%Ih2Kc*W+(sv literal 0 HcmV?d00001 diff --git a/Min and Max/pallindrome.py b/Min and Max/pallindrome.py new file mode 100644 index 0000000..e434270 --- /dev/null +++ b/Min and Max/pallindrome.py @@ -0,0 +1,32 @@ +#49. Given an unsorted integer array A, check if the array A is a palindrome or not. + +import rev_array + +def Pallindrome(Array): + + flag=True + + Reverse=rev_array.Rev_array(Array) + + if not (Array==Reverse): + + flag=False + + return flag + +# Getting Input from User: + +#N=input("Enter the number of elements: ") + +#Array=[] + +#for a in range(0,N): + + #Elements=input("Enter the Elements in Array: ") + + #Array.append(Elements) + +#print("The given Array is", Array) + +#print("The Given Array is pallindrome",Pallindrome(Array)) + diff --git a/Min and Max/pallindrome.pyc b/Min and Max/pallindrome.pyc new file mode 100644 index 0000000000000000000000000000000000000000..07f9582edf6d27d544cf1f2dbbd7d1c86bffc778 GIT binary patch literal 475 zcmb_ZOHRWu5FI=GT8db(V%KHFq6a_-feP$Wl>i%L30aMSP}hk(4kA*rf(vpM4gfP2 zq8Gr5U*7y)UhL#+Z`dDvss;QmN$)e-ct}vtBftXO6Or&iL~!ONO{iLa)0!;=Q4V=> zN*gBx0iYKU1iVP-0Nw@kk#rK467UE@!VM0fV>#BCr5ilRaO)cr21LAhebC300b^h$a!0UE%R;w%0YP6ul^_YSO4cV)hinuSfLoTY{*jb|{Ou z==C#E&j1Q$ypU72zK%O73btu1-n@jXvP@Qf6WM?lTsjVHW>a2<{w~{*ANvLxc*-+u zaWQfV!O7Q#XXf5v(u@mp!*1g9!t_=HE^=qW_S-o-pXJt>US>OqO*_40X-Zx^B_e)Y zto#=CK>vpjyY3KybY0cej^5Kv)l$3qK=ot!+Cc37x%giz4eUOj<>`FN7r_bM^bJw` BZ8!h` literal 0 HcmV?d00001 diff --git a/Min and Max/test_Pallindrome.py b/Min and Max/test_Pallindrome.py new file mode 100644 index 0000000..d1c0d6c --- /dev/null +++ b/Min and Max/test_Pallindrome.py @@ -0,0 +1,21 @@ +#Test Case to find Pallindrome or not: + +import pallindrome + +def test_canassertTrue(): + assert True + +def test_pallindrome(): + + #Arrange: + + Array=[4,2,4,6,1] + expected=False + + #Act: + + actual=pallindrome.Pallindrome(Array) + + #Assert: + + assert expected==actual \ No newline at end of file diff --git a/Subset/Multiples.py b/Subset/Multiples.py new file mode 100644 index 0000000..e69de29 diff --git a/X_index/X_index.pyc b/X_index/X_index.pyc index 317a4a5c8f4104b2fb00b9afcef31662acca7a3e..35002620e1c0bda99664e0d0059866602bafa33a 100644 GIT binary patch delta 16 YcmbQoJdc^3`7 Date: Thu, 25 Jul 2019 11:54:12 +0530 Subject: [PATCH 31/33] restore --- .pytest_cache/v/cache/nodeids | 150 +++++++++--------- .vscode/settings.json | 6 +- .../test_copy.cpython-37-PYTEST.pyc | Bin 0 -> 1663 bytes Copy of Array/copy.py | 14 +- .../__pycache__/Count_Repeated.cpython-37.pyc | Bin 0 -> 337 bytes .../Greater_comparision.cpython-37.pyc | Bin 0 -> 344 bytes .../Lesser_comparision.cpython-37.pyc | Bin 0 -> 342 bytes .../test_count_repeated.cpython-37-PYTEST.pyc | Bin 0 -> 1710 bytes .../test_greater_count.cpython-37-PYTEST.pyc | Bin 0 -> 1718 bytes .../test_lesser_count.cpython-37-PYTEST.pyc | Bin 0 -> 1712 bytes .../remove_duplicates.cpython-37.pyc | Bin 0 -> 339 bytes ...st_remove_duplicates.cpython-37-PYTEST.pyc | Bin 0 -> 1714 bytes .../__pycache__/identical.cpython-37.pyc | Bin 0 -> 393 bytes .../test_identical.cpython-37-PYTEST.pyc | Bin 0 -> 1694 bytes .../__pycache__/dictionary.cpython-37.pyc | Bin 0 -> 354 bytes .../test_dictionary.cpython-37-PYTEST.pyc | Bin 0 -> 1717 bytes Index and Value/exam.py | 28 ++++ Indices/Indices.py | 18 +-- .../__pycache__/Lengthofarray.cpython-37.pyc | Bin 0 -> 318 bytes .../test_lengthofarray.cpython-37-PYTEST.pyc | Bin 0 -> 1690 bytes .../Mean_of_the_Array.cpython-37.pyc | Bin 0 -> 340 bytes .../test_mean.cpython-37-PYTEST.pyc | Bin 0 -> 1654 bytes .../__pycache__/pallindrome.cpython-37.pyc | Bin 0 -> 353 bytes .../__pycache__/rev_array.cpython-37.pyc | Bin 0 -> 401 bytes .../test_Pallindrome.cpython-37-PYTEST.pyc | Bin 0 -> 1682 bytes Mode/__pycache__/Mode.cpython-37.pyc | Bin 0 -> 373 bytes .../test_Mode.cpython-37-PYTEST.pyc | Bin 0 -> 1602 bytes .../__pycache__/Repeated.cpython-37.pyc | Bin 0 -> 366 bytes .../test_repeated.cpython-37-PYTEST.pyc | Bin 0 -> 1705 bytes .../__pycache__/even_numbers.cpython-37.pyc | Bin 0 -> 339 bytes .../__pycache__/odd_numbers.cpython-37.pyc | Bin 0 -> 336 bytes Numbers/__pycache__/perfect_sq.cpython-37.pyc | Bin 0 -> 528 bytes .../__pycache__/prime_numbers.cpython-37.pyc | Bin 0 -> 586 bytes .../test_even_numbers.cpython-37-PYTEST.pyc | Bin 0 -> 1693 bytes .../test_odd_numbers.cpython-37-PYTEST.pyc | Bin 0 -> 1687 bytes .../test_prime.cpython-37-PYTEST.pyc | Bin 0 -> 1658 bytes .../test_square.cpython-37-PYTEST.pyc | Bin 0 -> 1662 bytes .../test_reverse.cpython-37-PYTEST.pyc | Bin 0 -> 1695 bytes .../K_rotations_left.cpython-37.pyc | Bin 0 -> 353 bytes .../K_rotations_right.cpython-37.pyc | Bin 0 -> 362 bytes Rotation/__pycache__/One_left.cpython-37.pyc | Bin 0 -> 296 bytes Rotation/__pycache__/One_right.cpython-37.pyc | Bin 0 -> 305 bytes .../__pycache__/index_R_left.cpython-37.pyc | Bin 0 -> 399 bytes .../__pycache__/index_R_right.cpython-37.pyc | Bin 0 -> 403 bytes .../__pycache__/index_left.cpython-37.pyc | Bin 0 -> 374 bytes .../__pycache__/index_right.cpython-37.pyc | Bin 0 -> 383 bytes .../test_I_index.cpython-37-PYTEST.pyc | Bin 0 -> 2448 bytes .../test_K_rotations.cpython-37-PYTEST.pyc | Bin 0 -> 2487 bytes .../test_index.cpython-37-PYTEST.pyc | Bin 0 -> 2406 bytes .../test_one_left.cpython-37-PYTEST.pyc | Bin 0 -> 1663 bytes .../test_one_right.cpython-37-PYTEST.pyc | Bin 0 -> 1668 bytes .../test_two_right.cpython-37-PYTEST.pyc | Bin 0 -> 1670 bytes Rotation/__pycache__/two_right.cpython-37.pyc | Bin 0 -> 357 bytes .../__pycache__/same_array.cpython-37.pyc | Bin 0 -> 354 bytes .../test_same_array.cpython-37-PYTEST.pyc | Bin 0 -> 1680 bytes .../__pycache__/Kth_largest.cpython-37.pyc | Bin 0 -> 495 bytes .../__pycache__/Kth_smallest.cpython-37.pyc | Bin 0 -> 498 bytes .../__pycache__/Largest.cpython-37.pyc | Bin 0 -> 337 bytes .../__pycache__/Smallest.cpython-37.pyc | Bin 0 -> 340 bytes .../__pycache__/count_largest.cpython-37.pyc | Bin 0 -> 406 bytes .../__pycache__/count_smallest.cpython-37.pyc | Bin 0 -> 410 bytes .../second_largest_smallest.cpython-37.pyc | Bin 0 -> 672 bytes .../test_Kth_Largest.cpython-37-PYTEST.pyc | Bin 0 -> 1754 bytes .../test_Kth_Smallest.cpython-37-PYTEST.pyc | Bin 0 -> 1760 bytes .../test_Largest.cpython-37-PYTEST.pyc | Bin 0 -> 1720 bytes .../test_Smallest.cpython-37-PYTEST.pyc | Bin 0 -> 1738 bytes .../test_count.cpython-37-PYTEST.pyc | Bin 0 -> 2473 bytes ...st_second_comparison.cpython-37-PYTEST.pyc | Bin 0 -> 2102 bytes Subset/__pycache__/Indices.cpython-37.pyc | Bin 0 -> 437 bytes Subset/__pycache__/IsExists.cpython-37.pyc | Bin 0 -> 408 bytes Subset/__pycache__/Values.cpython-37.pyc | Bin 0 -> 444 bytes .../__pycache__/test_41.cpython-37-PYTEST.pyc | Bin 0 -> 1646 bytes .../__pycache__/test_42.cpython-37-PYTEST.pyc | Bin 0 -> 1681 bytes .../__pycache__/test_43.cpython-37-PYTEST.pyc | Bin 0 -> 1677 bytes .../__pycache__/sum_of_Array.cpython-37.pyc | Bin 0 -> 311 bytes .../test_sum_of_Array.cpython-37-PYTEST.pyc | Bin 0 -> 1702 bytes .../__pycache__/X_in_Array.cpython-37.pyc | Bin 0 -> 322 bytes .../test_X_in_array.cpython-37-PYTEST.pyc | Bin 0 -> 1721 bytes X_index/__pycache__/X_index.cpython-37.pyc | Bin 0 -> 321 bytes .../test_X_index.cpython-37-PYTEST.pyc | Bin 0 -> 1666 bytes 80 files changed, 122 insertions(+), 94 deletions(-) create mode 100644 Copy of Array/__pycache__/test_copy.cpython-37-PYTEST.pyc create mode 100644 Count Repeated/__pycache__/Count_Repeated.cpython-37.pyc create mode 100644 Count Repeated/__pycache__/Greater_comparision.cpython-37.pyc create mode 100644 Count Repeated/__pycache__/Lesser_comparision.cpython-37.pyc create mode 100644 Count Repeated/__pycache__/test_count_repeated.cpython-37-PYTEST.pyc create mode 100644 Count Repeated/__pycache__/test_greater_count.cpython-37-PYTEST.pyc create mode 100644 Count Repeated/__pycache__/test_lesser_count.cpython-37-PYTEST.pyc create mode 100644 Duplicates/__pycache__/remove_duplicates.cpython-37.pyc create mode 100644 Duplicates/__pycache__/test_remove_duplicates.cpython-37-PYTEST.pyc create mode 100644 Identical/__pycache__/identical.cpython-37.pyc create mode 100644 Identical/__pycache__/test_identical.cpython-37-PYTEST.pyc create mode 100644 Index and Value/__pycache__/dictionary.cpython-37.pyc create mode 100644 Index and Value/__pycache__/test_dictionary.cpython-37-PYTEST.pyc create mode 100644 Index and Value/exam.py create mode 100644 Lengthofarray/__pycache__/Lengthofarray.cpython-37.pyc create mode 100644 Lengthofarray/__pycache__/test_lengthofarray.cpython-37-PYTEST.pyc create mode 100644 Mean/__pycache__/Mean_of_the_Array.cpython-37.pyc create mode 100644 Mean/__pycache__/test_mean.cpython-37-PYTEST.pyc create mode 100644 Min and Max/__pycache__/pallindrome.cpython-37.pyc create mode 100644 Min and Max/__pycache__/rev_array.cpython-37.pyc create mode 100644 Min and Max/__pycache__/test_Pallindrome.cpython-37-PYTEST.pyc create mode 100644 Mode/__pycache__/Mode.cpython-37.pyc create mode 100644 Mode/__pycache__/test_Mode.cpython-37-PYTEST.pyc create mode 100644 Multiple Integers/__pycache__/Repeated.cpython-37.pyc create mode 100644 Multiple Integers/__pycache__/test_repeated.cpython-37-PYTEST.pyc create mode 100644 Numbers/__pycache__/even_numbers.cpython-37.pyc create mode 100644 Numbers/__pycache__/odd_numbers.cpython-37.pyc create mode 100644 Numbers/__pycache__/perfect_sq.cpython-37.pyc create mode 100644 Numbers/__pycache__/prime_numbers.cpython-37.pyc create mode 100644 Numbers/__pycache__/test_even_numbers.cpython-37-PYTEST.pyc create mode 100644 Numbers/__pycache__/test_odd_numbers.cpython-37-PYTEST.pyc create mode 100644 Numbers/__pycache__/test_prime.cpython-37-PYTEST.pyc create mode 100644 Numbers/__pycache__/test_square.cpython-37-PYTEST.pyc create mode 100644 Reverse of Array/__pycache__/test_reverse.cpython-37-PYTEST.pyc create mode 100644 Rotation/__pycache__/K_rotations_left.cpython-37.pyc create mode 100644 Rotation/__pycache__/K_rotations_right.cpython-37.pyc create mode 100644 Rotation/__pycache__/One_left.cpython-37.pyc create mode 100644 Rotation/__pycache__/One_right.cpython-37.pyc create mode 100644 Rotation/__pycache__/index_R_left.cpython-37.pyc create mode 100644 Rotation/__pycache__/index_R_right.cpython-37.pyc create mode 100644 Rotation/__pycache__/index_left.cpython-37.pyc create mode 100644 Rotation/__pycache__/index_right.cpython-37.pyc create mode 100644 Rotation/__pycache__/test_I_index.cpython-37-PYTEST.pyc create mode 100644 Rotation/__pycache__/test_K_rotations.cpython-37-PYTEST.pyc create mode 100644 Rotation/__pycache__/test_index.cpython-37-PYTEST.pyc create mode 100644 Rotation/__pycache__/test_one_left.cpython-37-PYTEST.pyc create mode 100644 Rotation/__pycache__/test_one_right.cpython-37-PYTEST.pyc create mode 100644 Rotation/__pycache__/test_two_right.cpython-37-PYTEST.pyc create mode 100644 Rotation/__pycache__/two_right.cpython-37.pyc create mode 100644 Same Array/__pycache__/same_array.cpython-37.pyc create mode 100644 Same Array/__pycache__/test_same_array.cpython-37-PYTEST.pyc create mode 100644 Smallest and Largest in Array/__pycache__/Kth_largest.cpython-37.pyc create mode 100644 Smallest and Largest in Array/__pycache__/Kth_smallest.cpython-37.pyc create mode 100644 Smallest and Largest in Array/__pycache__/Largest.cpython-37.pyc create mode 100644 Smallest and Largest in Array/__pycache__/Smallest.cpython-37.pyc create mode 100644 Smallest and Largest in Array/__pycache__/count_largest.cpython-37.pyc create mode 100644 Smallest and Largest in Array/__pycache__/count_smallest.cpython-37.pyc create mode 100644 Smallest and Largest in Array/__pycache__/second_largest_smallest.cpython-37.pyc create mode 100644 Smallest and Largest in Array/__pycache__/test_Kth_Largest.cpython-37-PYTEST.pyc create mode 100644 Smallest and Largest in Array/__pycache__/test_Kth_Smallest.cpython-37-PYTEST.pyc create mode 100644 Smallest and Largest in Array/__pycache__/test_Largest.cpython-37-PYTEST.pyc create mode 100644 Smallest and Largest in Array/__pycache__/test_Smallest.cpython-37-PYTEST.pyc create mode 100644 Smallest and Largest in Array/__pycache__/test_count.cpython-37-PYTEST.pyc create mode 100644 Smallest and Largest in Array/__pycache__/test_second_comparison.cpython-37-PYTEST.pyc create mode 100644 Subset/__pycache__/Indices.cpython-37.pyc create mode 100644 Subset/__pycache__/IsExists.cpython-37.pyc create mode 100644 Subset/__pycache__/Values.cpython-37.pyc create mode 100644 Subset/__pycache__/test_41.cpython-37-PYTEST.pyc create mode 100644 Subset/__pycache__/test_42.cpython-37-PYTEST.pyc create mode 100644 Subset/__pycache__/test_43.cpython-37-PYTEST.pyc create mode 100644 Sum_of_Array/__pycache__/sum_of_Array.cpython-37.pyc create mode 100644 Sum_of_Array/__pycache__/test_sum_of_Array.cpython-37-PYTEST.pyc create mode 100644 X_in_given_array/__pycache__/X_in_Array.cpython-37.pyc create mode 100644 X_in_given_array/__pycache__/test_X_in_array.cpython-37-PYTEST.pyc create mode 100644 X_index/__pycache__/X_index.cpython-37.pyc create mode 100644 X_index/__pycache__/test_X_index.cpython-37-PYTEST.pyc diff --git a/.pytest_cache/v/cache/nodeids b/.pytest_cache/v/cache/nodeids index fb41931..eebbbaa 100644 --- a/.pytest_cache/v/cache/nodeids +++ b/.pytest_cache/v/cache/nodeids @@ -1,78 +1,78 @@ [ - "Copy of Array/test_copy.py::test_canassertTrue", - "Copy of Array/test_copy.py::test_copy", - "Count Repeated/test_count_repeated.py::test_canassertTrue", - "Count Repeated/test_count_repeated.py::test_count_repeated", - "Count Repeated/test_greater_count.py::test_canassertTrue", - "Count Repeated/test_greater_count.py::test_Greater", - "Count Repeated/test_lesser_count.py::test_canassertTrue", - "Count Repeated/test_lesser_count.py::test_Lesser", - "Duplicates/test_remove_duplicates.py::test_canassertTrue", - "Duplicates/test_remove_duplicates.py::test_duplicates", - "Identical/test_identical.py::test_canassertTrue", - "Identical/test_identical.py::test_identical_array", - "Index and Value/test_dictionary.py::test_canassertTrue", - "Index and Value/test_dictionary.py::test_dictionary", - "Lengthofarray/test_lengthofarray.py::test_canassertTrue", - "Lengthofarray/test_lengthofarray.py::test_len_of_array", - "Mean/test_mean.py::test_canassertTrue", - "Mean/test_mean.py::test_mean", - "Min and Max/test_Pallindrome.py::test_canassertTrue", - "Min and Max/test_Pallindrome.py::test_pallindrome", - "Mode/test_Mode.py::test_canassertTrue", - "Mode/test_Mode.py::test_Mode", - "Multiple Integers/test_repeated.py::test_canassertTrue", - "Multiple Integers/test_repeated.py::test_isRepeated", - "Numbers/test_even_numbers.py::test_canassertTrue", - "Numbers/test_even_numbers.py::test_even_numbers", - "Numbers/test_odd_numbers.py::test_canassertTrue", - "Numbers/test_odd_numbers.py::test_odd_numbers", - "Numbers/test_prime.py::test_canassertTrue", - "Numbers/test_prime.py::test_prime", - "Numbers/test_square.py::test_canassertTrue", - "Numbers/test_square.py::test_square", - "Reverse of Array/test_reverse.py::test_canassertTrue", - "Reverse of Array/test_reverse.py::test_reverse", - "Rotation/test_I_index.py::test_canassertTrue", - "Rotation/test_I_index.py::test_Right", - "Rotation/test_I_index.py::test_Left", - "Rotation/test_K_rotations.py::test_canasssertTrue", - "Rotation/test_K_rotations.py::test_rotate_right", - "Rotation/test_K_rotations.py::test_rotate_left", - "Rotation/test_index.py::test_canassertTrue", - "Rotation/test_index.py::test_right_index", - "Rotation/test_index.py::test_left_index", - "Rotation/test_one_left.py::test_canassertTrue", - "Rotation/test_one_left.py::test_one_left", - "Rotation/test_one_right.py::test_canassertTrue", - "Rotation/test_one_right.py::test_one_right", - "Rotation/test_two_right.py::test_canassertTrue", - "Rotation/test_two_right.py::test_two_right", - "Same Array/test_same_array.py::test_canassertTrue", - "Same Array/test_same_array.py::test_Is_same", - "Smallest and Largest in Array/test_Kth_Largest.py::test_canassertTrue", - "Smallest and Largest in Array/test_Kth_Largest.py::test_Largest", - "Smallest and Largest in Array/test_Kth_Smallest.py::test_canassertTrue", - "Smallest and Largest in Array/test_Kth_Smallest.py::test_Smallest", - "Smallest and Largest in Array/test_Largest.py::test_canassertTrue", - "Smallest and Largest in Array/test_Largest.py::test_Largest", - "Smallest and Largest in Array/test_Smallest.py::test_canassertTrue", - "Smallest and Largest in Array/test_Smallest.py::test_Smallest", - "Smallest and Largest in Array/test_count.py::test_canassertTrue", - "Smallest and Largest in Array/test_count.py::test_smallest", - "Smallest and Largest in Array/test_count.py::test_largest", - "Smallest and Largest in Array/test_second_comparison.py::test_canassertTrue", - "Smallest and Largest in Array/test_second_comparison.py::test_Largest_smallest", - "Subset/test_41.py::test_canassertTrue", - "Subset/test_41.py::test_IsExists", - "Subset/test_42.py::test_canassertTrue", - "Subset/test_42.py::test_Subset_Index", - "Subset/test_43.py::test_canassertTrue", - "Subset/test_43.py::test_subset_values", - "Sum_of_Array/test_sum_of_Array.py::test_canassertTrue", - "Sum_of_Array/test_sum_of_Array.py::test_sum_of_array", - "X_in_given_array/test_X_in_array.py::test_canassertTrue", - "X_in_given_array/test_X_in_array.py::test_X_in_array", - "X_index/test_X_index.py::test_canassertTrue", + "Copy of Array/test_copy.py::test_canassertTrue", + "Copy of Array/test_copy.py::test_copy", + "Count Repeated/test_count_repeated.py::test_canassertTrue", + "Count Repeated/test_count_repeated.py::test_count_repeated", + "Count Repeated/test_greater_count.py::test_canassertTrue", + "Count Repeated/test_greater_count.py::test_Greater", + "Count Repeated/test_lesser_count.py::test_canassertTrue", + "Count Repeated/test_lesser_count.py::test_Lesser", + "Duplicates/test_remove_duplicates.py::test_canassertTrue", + "Duplicates/test_remove_duplicates.py::test_duplicates", + "Identical/test_identical.py::test_canassertTrue", + "Identical/test_identical.py::test_identical_array", + "Index and Value/test_dictionary.py::test_canassertTrue", + "Index and Value/test_dictionary.py::test_dictionary", + "Lengthofarray/test_lengthofarray.py::test_canassertTrue", + "Lengthofarray/test_lengthofarray.py::test_len_of_array", + "Mean/test_mean.py::test_canassertTrue", + "Mean/test_mean.py::test_mean", + "Min and Max/test_Pallindrome.py::test_canassertTrue", + "Min and Max/test_Pallindrome.py::test_pallindrome", + "Mode/test_Mode.py::test_canassertTrue", + "Mode/test_Mode.py::test_Mode", + "Multiple Integers/test_repeated.py::test_canassertTrue", + "Multiple Integers/test_repeated.py::test_isRepeated", + "Numbers/test_even_numbers.py::test_canassertTrue", + "Numbers/test_even_numbers.py::test_even_numbers", + "Numbers/test_odd_numbers.py::test_canassertTrue", + "Numbers/test_odd_numbers.py::test_odd_numbers", + "Numbers/test_prime.py::test_canassertTrue", + "Numbers/test_prime.py::test_prime", + "Numbers/test_square.py::test_canassertTrue", + "Numbers/test_square.py::test_square", + "Reverse of Array/test_reverse.py::test_canassertTrue", + "Reverse of Array/test_reverse.py::test_reverse", + "Rotation/test_I_index.py::test_canassertTrue", + "Rotation/test_I_index.py::test_Right", + "Rotation/test_I_index.py::test_Left", + "Rotation/test_K_rotations.py::test_canasssertTrue", + "Rotation/test_K_rotations.py::test_rotate_right", + "Rotation/test_K_rotations.py::test_rotate_left", + "Rotation/test_index.py::test_canassertTrue", + "Rotation/test_index.py::test_right_index", + "Rotation/test_index.py::test_left_index", + "Rotation/test_one_left.py::test_canassertTrue", + "Rotation/test_one_left.py::test_one_left", + "Rotation/test_one_right.py::test_canassertTrue", + "Rotation/test_one_right.py::test_one_right", + "Rotation/test_two_right.py::test_canassertTrue", + "Rotation/test_two_right.py::test_two_right", + "Same Array/test_same_array.py::test_canassertTrue", + "Same Array/test_same_array.py::test_Is_same", + "Smallest and Largest in Array/test_Kth_Largest.py::test_canassertTrue", + "Smallest and Largest in Array/test_Kth_Largest.py::test_Largest", + "Smallest and Largest in Array/test_Kth_Smallest.py::test_canassertTrue", + "Smallest and Largest in Array/test_Kth_Smallest.py::test_Smallest", + "Smallest and Largest in Array/test_Largest.py::test_canassertTrue", + "Smallest and Largest in Array/test_Largest.py::test_Largest", + "Smallest and Largest in Array/test_Smallest.py::test_canassertTrue", + "Smallest and Largest in Array/test_Smallest.py::test_Smallest", + "Smallest and Largest in Array/test_count.py::test_canassertTrue", + "Smallest and Largest in Array/test_count.py::test_smallest", + "Smallest and Largest in Array/test_count.py::test_largest", + "Smallest and Largest in Array/test_second_comparison.py::test_canassertTrue", + "Smallest and Largest in Array/test_second_comparison.py::test_Largest_smallest", + "Subset/test_41.py::test_canassertTrue", + "Subset/test_41.py::test_IsExists", + "Subset/test_42.py::test_canassertTrue", + "Subset/test_42.py::test_Subset_Index", + "Subset/test_43.py::test_canassertTrue", + "Subset/test_43.py::test_subset_values", + "Sum_of_Array/test_sum_of_Array.py::test_canassertTrue", + "Sum_of_Array/test_sum_of_Array.py::test_sum_of_array", + "X_in_given_array/test_X_in_array.py::test_canassertTrue", + "X_in_given_array/test_X_in_array.py::test_X_in_array", + "X_index/test_X_index.py::test_canassertTrue", "X_index/test_X_index.py::test_X_index" ] \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json index 5857df9..d64e1ea 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,5 +1,5 @@ { - "python.pythonPath": "C:\\Users\\hp\\Anaconda2\\python.exe", + "python.pythonPath": "C:\\Users\\GRENINJA\\Anaconda3\\python.exe", "python.linting.pylintEnabled": true, "python.linting.enabled": true, "python.testing.unittestArgs": [ @@ -9,10 +9,10 @@ "-p", "test*.py" ], - "python.testing.pyTestEnabled": true, + "python.testing.pytestEnabled": true, "python.testing.nosetestsEnabled": false, "python.testing.unittestEnabled": false, - "python.testing.pyTestArgs": [ + "python.testing.pytestArgs": [ "." ] } \ No newline at end of file diff --git a/Copy of Array/__pycache__/test_copy.cpython-37-PYTEST.pyc b/Copy of Array/__pycache__/test_copy.cpython-37-PYTEST.pyc new file mode 100644 index 0000000000000000000000000000000000000000..95181f6da3d4639fb063df7fdadda80d2747ae2b GIT binary patch literal 1663 zcmd6n&5zqe6u@U}$8kQJOU^77>a>lv>`RbIQ8T^7(tMXHWZ>-%n`6pV^LCDHD#U0xVOu?%=^g!8&M(a zv3}*8cWSbxDSd%7cICo*x3<^xG5rDj8;A^93}*KwoQ?!kk3L^jTvcDkGEegpG&}+| z;@_1bP15S@R;(1470mh7L+*bYizWAGMb6*!OTlBs{Uwa+t(TuFGk5*$)8yUoD_E$) zkM7-_eLVZ*IQ)>S)2b-L&sO(%S*Y+>%6Rp~5;jkZT!nXva^)8b-P- zpupB%5?B1BkSpyiQo-{$Lk%|{w@>1&YaeMwEzbj=S_2p<$$Skf*h2lKMGFih|L0}7+qaoDfSJ#nE|o_(hkIfp)5(+2vlwoa|au5Ht)3+zHcGpm741idHh z%xQpyx>Gx>Z#s3rhHPXy)mDF3opYCsYkNW2C5*MO)()Fg-E(hEPF?jg%=c=#rt(+N z`l#g=o3OpD#~;SS0*^n92Wa52$ELqn(DyF8%&yd~VW3+Lz++f!TmWJ&Goa=={}(Xe%?7r_WF>+j@c;pRVjUd?^lXX%90bZgI`UCH z1QtAinI{!z+KrQH8H>O|J`Uy}4xb_CW}wh`GZ<+H;ghBiSRC0$fuP6%2)!32u@Dg= zk`!4PORk5Az=LHf;A5cx%mO@=z80y6#ZoZi8l8yZK`bIfR}L}Q2*nr#z}hkB%a_pf zGKgKMZag2Vw{{7;W%z2v1lH@`_A7#|t}rmMCv;->ZEuH+Z-5YB<29HKdfIz>1ouq)C_Az^Z{AydLv_Ijbjh4SLk|K zIW{+baiE{PI2LzS87nTQ7yOD}kHkdTMWst|(@a&VtqAjZt!y>dODo2H$v#YLRJeQojYFWRiQ$PJpfM38EOf&!h literal 0 HcmV?d00001 diff --git a/Count Repeated/__pycache__/Greater_comparision.cpython-37.pyc b/Count Repeated/__pycache__/Greater_comparision.cpython-37.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ac7b66a4f84f9bca08d66acb6b7072b45fad9764 GIT binary patch literal 344 zcmYLF!Ait15S^qg*0Ou^=)sfFi&sHJTz92Z*n%r6NMtEZ&}H4GW?FEez4d+^>9kW0f_|3Uf~WTzk=8+oaf*ZJ>r;% z`y`Te{AIU=3Eb~=UhB1N8JMW$k{?3HpQBr7`-E&m!?0l_ZxH)77#WkV?N(aW>OmPB z6uK#E%W~u5d-=L4j>I)8gCd!oXK8jZ5)*~XT32Gao~cTs=u<8mh4n(0D8?>ik1Unf zN{Ym|YUYJrRk>Lp%^Xx~8>Kk^wcKUce+l<_#6vdVW}Ei1nDzDlH9xD6JR2Ubv}~T# Ji97vCgm3hlPkaCX literal 0 HcmV?d00001 diff --git a/Count Repeated/__pycache__/Lesser_comparision.cpython-37.pyc b/Count Repeated/__pycache__/Lesser_comparision.cpython-37.pyc new file mode 100644 index 0000000000000000000000000000000000000000..04d0ec7a6dad8e6531a8ad49215055f006bea6e9 GIT binary patch literal 342 zcmYLFK}*9h6n;rN?8|5eA^otlh$@8&P(;A zjO}H*%1g^q@38oLwYway1eYg{x8*;<}!xLZj$XZYqW4Qs*efE@Yo9 zm6l41sX`iGWO`ksW{K2tSk$&3<6`T$tFZeJ?(>ibY`{&Q&XS0A>;GG}yMR0!oUFC1 LUeu|Z{wBgNC1Oss literal 0 HcmV?d00001 diff --git a/Count Repeated/__pycache__/test_count_repeated.cpython-37-PYTEST.pyc b/Count Repeated/__pycache__/test_count_repeated.cpython-37-PYTEST.pyc new file mode 100644 index 0000000000000000000000000000000000000000..9c0a7e4beda9326c7729189e0f8a883f3a4ba1ec GIT binary patch literal 1710 zcmd6n&2Jnv6u|A7*%|L=lTAS&IE*48F{p~tv_%LJlu#-J5-VEDhoX_D)3G-lWxiz3 zQZ|~oP_A(1z#)6&#+knW@hAAe1qo^Yg`RlNlSD!46^UK>+4KDT{QUfW{$M;F{PFw! z@PHEX7rFAYV0-{gy$ymBPBU^uO>gD4MJUOgqaN*M+#{D;-2R>%dEDVW=ozP(<>8SK+qlr&aDdG8tS?Q)N^9~{sT z74kkG)XrJ2AuF2Fmq}~aE_{29y`s6BzwokuI-VMKi zg)02$!M)kXvri7g4~06Z%PRbI`9M^q3J;}>m-iR2d0G}Kyjw1c+J`9-*Mf%_RFt4D zlIOaeYPrT-1-51h7#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R=$p9{Sz~aglu2|DAlFHZctoZyFvp0@gy?XWg)yIQD_p|bNHl~F9 zNv=E===Wf#_dsyMX-1~he659T5lR-$)TOP*n|j>h_K#%hbBDX|Wt@IPLT>|e$s|FE zj|0PlaUX`_AUJJE4LMGjd>=DpWI-DWSuO5luufx9Qd>3U?lWB5<349UIbb7d#yh-Q zIcIK7)-aDbdu?bGOWlc7JQq@wQV;jrMilu2DGRB$qj@10ab;Q+=P~XgbaW49 zM{NzeCViXKnA-_^zY)0w3%&SHdZb6Da|u*r>OGW8;lgTa1cFe9Fw%$jB|zSY42j$Z z>m?dH@Z-ZUX#5KlP62lmUYk2d9-zl+KyR#yoY9)pbZs>@pwT|D8mD#)Y9Dczdj_e< z1(*Aovv3;^5bD(~X9l%^Q{FSEb<`h~cjohc?aV13V6M5fcKEPjXPq@U@zl@Y@7C6u z%3nb1p_W^G$gf>S{B9xuz_2!1GuUF=7`2?qV@#ZA-l51O?j#Z#G9LU%4r+CR6MPRTc5qG6)R dd8IPEC!{HleYhz2G7}$Re-#$UfWXXR_TRAd;X42T literal 0 HcmV?d00001 diff --git a/Duplicates/__pycache__/remove_duplicates.cpython-37.pyc b/Duplicates/__pycache__/remove_duplicates.cpython-37.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ab0d376f45e22d93c9315a98d7cb48c361bc5612 GIT binary patch literal 339 zcmZ?b<>g`kf@LS$Vq}>Z7#@Q-FaYE;H~?`m50FSxhB5y+BX0m)V| zp~b01#WC(du6~|=UXC#?sm0kP`2{h)l|iWm`Nc6{V**Q4i%T-|^NM3!;Ks#3jEhHD zpjS|NiwnU8d8HT}8cZxqT#Ouyd`v}bKrx^@!8F(jNCYcT?iPnlZhlH>PO2S9_h%qx F003swP~`vs literal 0 HcmV?d00001 diff --git a/Duplicates/__pycache__/test_remove_duplicates.cpython-37-PYTEST.pyc b/Duplicates/__pycache__/test_remove_duplicates.cpython-37-PYTEST.pyc new file mode 100644 index 0000000000000000000000000000000000000000..21a2c9c0c1b26381e595e3a44cb2634e707406e5 GIT binary patch literal 1714 zcmd6n&5ImG6u_(cv*vTNvr+swI4lS@$gjUJF|J|kw_f8!nYsP*2h;b$2k@Z^ zKfZTo^2y}Wlkm1sXH`*#cNh0WS*Y+t%6Rd44T~p5uEN_jt{6iyAtn?_krj_c#JA>y za`hO;jyP zp(LKEW*0UkZG7$CYF(pP>Q1EMnUJECdU(=SqR8(^SxCJX%?g>tm8n&n$GDBa(LMM& zYI8U=;oG3b+4Jr(ue<5=)Dmc61fM~ zZ9g)2!D0IGPf$3;E`;HL2G2Qz9%^mQ+*#6!tSI)|5_+<+&a9=~*rt1D+~uC>Sm;jB z{nW|aCGgR>jl-GgUg%feGu>;eKPqqK^L}H`C?8;~nYDKKuwtvunw)v+2bk|RbWPfL`Zsk<-ulpS0dODDT1OzC={>D_1=rzsF! z%4w06u@t(Glsv4H6mAv;>=xjm^ed5iRMaUquF*U#9>!^ebjvf~~;v=^aDOi|rr<3d0loD(%}{n_U9uD*y=431BwpX!d*~ zavu!()#q1D%O6||2U0wdNhNe=YtsIOO=5`*gz^p4Fy^J)@S>0=LH2%D@H!PAU}04Y K>WDC#S$_dWPvl|% literal 0 HcmV?d00001 diff --git a/Identical/__pycache__/identical.cpython-37.pyc b/Identical/__pycache__/identical.cpython-37.pyc new file mode 100644 index 0000000000000000000000000000000000000000..062410228e645ff48ff5845c83689f49e17d1a48 GIT binary patch literal 393 zcmYk2!Ab)`42F~J7TRi|hzIoz)vQVBU85jFg=fIfF84deq|XdV+JVBm zSk3yap7w9Rcy4#N;5D#7MnKjZsl=ADLGqvi-(t&R+hSx(Q6km!9kL3yeRqck;##Xr zi*ElU?1iT-(NQ|i)3G?8_0>4lqLpQX+2us(JW3NSdQv5MG#rdXw9XpinXUX)d@Rsg q44^tzX`6hkV;KqSlx^^97~nE4KkyIk+_rr9n99jW9l0rA?C=9U!dG|z literal 0 HcmV?d00001 diff --git a/Identical/__pycache__/test_identical.cpython-37-PYTEST.pyc b/Identical/__p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?f`Ld|Lo@c!L`!ywJHssn=nlp5 zwK`inD`x|W58m6I*_q#-4u=7diqA*!!T>&8@hhs~gls|z2@>Dn0VKPIh^I&`Cy&g@ zXJm6gkwJ?!Sa`*jNo@IgWVvNauJQ`@h(t R>25H7D&;Cy$Byvj06+E`POks} literal 0 HcmV?d00001 diff --git a/Index and Value/__pycache__/test_dictionary.cpython-37-PYTEST.pyc b/Index and Value/__pycache__/test_dictionary.cpython-37-PYTEST.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2949aa32a5a272c565c9a066c8a0ed1e9a0ca613 GIT binary patch literal 1717 zcmd6n&5zqe6u@U}$8nsG?PeFm*TGr|2}@|TU0Q??i@MMXibMqM0#X#=PCb*YwT^Ag zIJ8;W7s?gHkwXugBR9_cDRbb0gcSaSo_KGZhArZXM51|qe)Ih1&71d|5Bh!o$3MTG zd`t=Xom~1^px=O@-Uh)5rzsgz^R#BRMJSm$;}&gZ+_B3oZhuF{ZSL?EJUveDlF(hj zw`3Hf#GeDhh4CQ_#X)ddlL}&-dGZ~Mkdhg#DMYonlfpW+MM-5qTi^hHwJr3>%v%3jjP^jq++Au?pq9i2$n9SN!Kf3_%vD!*bfOR`fm zJOniokBT&jlk)sJQ%cAZ=7REp2)<$ITm+*$6K@7ZDwq<%9L8Sb6(q{c?VaC^-<^B` zAF9bmcW#Ytk3Kn`+!X4p%!|pVi#wvo)#O-8w)lJwizj)eCbu tAAp!I!wk1ha~G z65}kBi~VA;!a{|%_F`6w(_AjJH%(HJv6;|rnq(r&&j;&7UVo!lTn&}B@!{zgqQY!* zA2$bkiONMGl*AL&-rA<5jj#TV#x-J6cOu26LW)A_!EsZEJi8@jF7-|{&E<@hrcx|p zm}cncE_@v|IUJbqO;BTQJ~;fD$Zc5Y>3>loJv3#DAt96QiJXfTET)Da2z7`@dhp+c zz8jJOkvm}B^r8nZZ5XB({{V$k>_G0EI?y+3owuGiH7&^n#V)I%6D#Y?s_n`)J$ny3 z()20xB2QMD?EcTCUvyvuv0XKnRc>0Y#Xzp|&44=~o$S~`5I^e#F}a^|WZ zVBW9jlFFYz>!Oxfe2ZV%c>H2KEb#c%cz^~TSNQf53kY!ekndEkp`l&&z@uNaH#9)b zK*R1xB8DsMhSdp*4v5e(h^&wkxr5o^xnRJadV-NIcMxKDCaH zLV7+#EDk~y932Iy9s(gApf2K4aP6|VoU=5vkeUM&htKhJt>NifIMDvzV2=Hp8%QM< zu4#K8HB+%JXnH$}S(-+OQk>5UCWY=HD);9}3YUulfOGIr`lU!c$mc0HuF+|l-)Cur zh|3;E?4uZf0H|B$29d9#=`|3S;k)|p@V(XeG$dX(95w>$rnmla=O7U36%fSk(ShyT z-X(tS0Y^Yk2(w{Fd(So^_rRcEesN: + + I=0 + + if mod_count%N==0: + + Dictionary[count+1]=Index[I] + + count+=1 + mod_count+=1 + I+=1 + + mod_count+=1 + I+=1 + +print Dictionary + \ No newline at end of file diff --git a/Indices/Indices.py b/Indices/Indices.py index a00360c..02bdc34 100644 --- a/Indices/Indices.py +++ b/Indices/Indices.py @@ -6,23 +6,23 @@ def Indices_of_X(Array,X): for i in range(0,len(Array)): if Array[i]==X: - print i + print (i) # Getting Input from User: -#N=input("Enter the number of elements: ") +N=input("Enter the number of elements: ") -#Array=[] +Array=[] -#for a in range(0,N): +for a in range(0,N): - #Elements=input("Enter the Elements in Array: ") + Elements=input("Enter the Elements in Array: ") - #Array.append(Elements) + Array.append(Elements) -#print("The Given array is: " ,Array) +print("The Given array is: " ,Array) -#X=input("Enter the search Elements: ") +X=input("Enter the search Elements: ") -#Indices_of_X(Array,X) \ No newline at end of file +Indices_of_X(Array,X) \ No newline at end of file diff --git a/Lengthofarray/__pycache__/Lengthofarray.cpython-37.pyc b/Lengthofarray/__pycache__/Lengthofarray.cpython-37.pyc new file mode 100644 index 0000000000000000000000000000000000000000..17a38bbb564e98368e13d55f264622556d3abfee GIT binary patch literal 318 zcmZ?b<>g`kf@>aUVkR>(FgylvV1Nn8Z~)?B9w3pzkiyu)5XF$f6wIK>oD5V81|T)e zKlFa4pz;=P4zfJRqGApp!NA1A#K*|PRKyNs g`)M+QX@olQnW`ZWpN4eTY8 z6ea!~7%q&DVMqpo(T3Cz?9~OZ9CcimaHU;VGyw z|DnpWG*f5y6Dhe+uokEj9(Sv^|9;aOS8=nG!V)k!%^&>Ue-alUQZt5zGV zRA_5IO%$J(Vx|3A22RO>Yd6mdUX*8}i%i~lyIS21rMB_o>zCuo+;b0a2bYP}s^U^$ zOSOMtlfuSn??LMtCqj2)nasH0mC&Q3wh(3UP>53K-FQ}tMWRfpk|M!dgpTgR?zqii z--K_28gskh;CCW+;Gh@(NsaW_lrDvgOuolr$vbeG9D^X#AwC(v|0O`)n2dq~kj3Nf-HsHo-s3PYSvDEm$;$VZ_zo3Qb zTu4pt{$CWpHiovqmI|bUz`rs(z7wbem|7K;bDO40WiP^F7s4zrrjh}%Onpi zWW_#;gKK=b*Yf3FIMTywbes;aQBid9V62(wp)iH(gQj=lG|BTA36qwKDiK@{kPuIn zSq^WA1e%uMA@!@VJSmqsGp_MGFP|iNj6@a#j5tIw0s+*eN8%PvUjwmCue<+FuXkFX zmTUJ7(^`R*(>s?BOI*%?;PBKS<|W1^c8@xC&-S+{@*PkGNb(k}hF$GnUPA<6(6=t% zl$L40|2@H(lc17^Pdo%mygPqeL7y#jW|5kh=z`J?;fl+coR6a=t8LnXt8Jj`K7u0Lvl5*l1 zQ4L9I=-?H5%&=!KyB&<+&hL50I(`5>d)~PL%5e{Rr*mi%i$7=xLezXI^U&39R8?uK zG16Q$D~;*gnaDJMgKCTVHsi&ixK^@K;$nIpU&iA|jHG(1i&9M5sVoa6?1HOCs`|0W zl`zv*lHxw8A7oP|iM*D+*;!#a|N2?-hmh#xl He-Ysadc{pX literal 0 HcmV?d00001 diff --git a/Mean/__pycache__/test_mean.cpython-37-PYTEST.pyc b/Mean/__pycache__/test_mean.cpython-37-PYTEST.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6ef295f4c6cd3752bd5ffa117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diff --git a/Min and Max/__pycache__/rev_array.cpython-37.pyc b/Min and Max/__pycache__/rev_array.cpython-37.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1d3f024edc3409f40eb65e9c80cf6ba15aab0263 GIT binary patch literal 401 zcmYjNJxc>Y6nt;*PLoSwkwQq9(loY;h!{VRNOE8#2w_2v>=Hwgz4P`G61c1MhiK`~ zvE9}xwVjo3F9;6ITV{5ddF(~4<^y40fARqX__E>;q~V;Xt26`%e1#zhb`LFQgk)KG zM3;C;)Lj~5$WdUEB1Rg=op6d@#xRl?3 z;s$L`u(3rOBD9!sW>T4*Fpi}XEzfxEBnj7Mw=b76(b9MmCFE+j)0JwRKADo7$+=Xi z{(z)R0Y9D52_I;B%5VDDK_|Fv^DC*RX%zF`x-a8M^CIzXA$2;5l;*vOYKBTQd*O;F za`_nA!ozrN%G9}44khclU68rxVu|_8M<1(f50eVHL2G*!EBqVw+fC_o9*M5?=M0 zES^lLKR%w0b@Og@Mn!a@~& ze*fO&i^-S!(WgQk*JTwQEbfb{RMEbaZ1L3`Hc!h!MF(jSu!08%>{)~v#fL1*(t^t} z7u(h147(KC+D}+5j!L=E{w&Qz!E&KJ@DoLOGCI%V?HkqNR;aX%A75XID^ue(RtAN{ z^`a6=;&E#K+@_?BzrDMyYs{qX#){2^6qVGY{k92ZaZk!p>aBQI%AD1vO{`#8LFni{ ztd83pc1-v-s4=$-c7G*u6E=GJ+WVu&rfCUeV{&~U=fZ`Z)EESz4)MtV-phcvF&PoL z1=b4``tZ|%VNm!dD4YV`D7U$D8nS zebfqzU*a1V9={k53p{=^9-x882H*VI0?d1S%(oiP;J;H3z+>2SF7OXI1O6{h&X9O# z2mxs{WW#6YoG?chQge9!AN*f|3`1MunM&k>!~+ZIOKWd0q$gv<{7$HXy}ba{U4Xw2 zBo;|6xb|35&si2)NQoU3yZ<7~?UpRJ!;$V+|IlvQU*n+c;-;o!J=BmdvJXOU#tE#6 zkts=;S4;{$Kqfqzrx{!v3iw%qhtgML^|+j8+_=U^S^0=%F)~;VFxU{q2n2A}HMfJj zhNd?`taIzue{<{I)~6-f9YeELAOrM(({ubaihKuD0g}7}vtd{J zuPTuN81%JQ_esk%;QqE0Pi0yQ-MujB&biI>NWKLN4d+bEwdC+NkS0U_!@T74Onii$ NRhXU+RP`<2{u=>Z)a?KO literal 0 HcmV?d00001 diff --git a/Mode/__pycache__/Mode.cpython-37.pyc b/Mode/__pycache__/Mode.cpython-37.pyc new file mode 100644 index 0000000000000000000000000000000000000000..9f1831f608c8b8c1f44ae71670d9451df282f046 GIT binary patch literal 373 zcmYLF!AiqG5S`g7P!uxy@_YB~}ioYNYrv%j}N+7{ESVF>XVdTU}B^w@r z6V3_hnkc~*35?*>V+~VyJZO0xblGm}YOdXk$v|Vm4xzNP#FPG1E00mb1^1poj5 literal 0 HcmV?d00001 diff --git a/Mode/__pycache__/test_Mode.cpython-37-PYTEST.pyc b/Mode/__pycache__/test_Mode.cpython-37-PYTEST.pyc new file mode 100644 index 0000000000000000000000000000000000000000..5070b4315584c4e1349052054f65a45a08184d20 GIT binary patch literal 1602 zcmc&!-HRMW5by5!*x66LJ0po8E&;^>IWA`+A$XFD22seOF`_I3<7B$`GF;CG-Lr{% z%)A)!P4Ex!;r2~m{bPLS2N49}{)IeQ)pJ=+@G;;nRZ~-4T~%HE`^}y4c<|@n^Js?> z@)x=AV_@F~(eHucgi}f8)IM46FhWW0&OO?#_;a5#?tD+?J??T3o&l#{kkCJay=0c6 z#-9t~gM0|0IVetB(m;;mK;6U)lH|0dkd<*)LY5Aijmn(8X}}K*8xqNX_`ORV{S=RicWlI6}u0Fk|s; zC9^cEPi`by3su9~w0P>geP9 zcW0l>K0S;+68g9I8mk_>trF6sFax;cE>J@yGoVH?8J*w@@1{}n*hHklB$1KthN0(j|xSfu>{ z2B(NG5O(ANE?7%zatb(F(-!d6uw&LbjboAcHN?4+=Bx#zf$d2rcU!=E<25e#EfN8T zyl;`{=-+Ga)aQf7Sx`R2Tnn~#`Ka!l25WNc>mOjf-_SKxKY=wst6+S@$D4>>Yy^Xd z-)sa}5HaSHpBdoV=P&V>8{cBQR}Ud#)butOhn@lBTeCAf?ipVCIoRzDh1A~B{|Rio zuFz3N2{nfVxPKYyVA0PO-6IR5}Cl(_c* literal 0 HcmV?d00001 diff --git a/Multiple Integers/__pycache__/Repeated.cpython-37.pyc b/Multiple Integers/__pycache__/Repeated.cpython-37.pyc new file mode 100644 index 0000000000000000000000000000000000000000..18bb91080a035c27fc679fbbae789f5f9eea1057 GIT binary patch literal 366 zcmYLF!Ait16nsfjDZB3C!4KG@y?9g*5m#5G!WOKGA`vM~T*}tACM{TKZ+?Wo;4kIs zY0sYY+%$+(hYyKGE9&=2a@+qdZr6rhYS(xV>nEQ#vl aUg)pt|7BJy`=`d+e=0 zP~y*n5y1EahTcM4V(@L8F2rD%XX5&xNJXr~U;*P=?KMc0ox67WaPr~!Ygnkp zpFg-eJRW{=H2zem6P*|1d&>u+$kq5r%6NHy0h=dzrpEUcsZJo|;5gG_hAT0zNQy$l zTJXJMxyC|;u3-}}%yPLjY?`DZi|4`wX_AR7Kkc0-^3J=(@A-&%`mRrU zMDBof(~C`bX~3|(_!lUgVh2M1y4;@y&^vxbc~Ci;oY9h$bmdeo^rCy>R9@-Xo_&J- zX!{gNXz*t0&HXBX{tQZ=w`|Y0d53px&wA<)9h^0Iuk@yrU%^;YXXWuN&CZ%DauTSY zV7^s4D=L2mt&Ljd@GZW*@%YVpK!?lUtp{k}vCaFxI6y#y@9^ESVQFBx10LOyZD@d; zfrhKYHP%QXi)-wGwbig3pPgf3uQH_eGXGad>_U>ED{cOWhr|mE=}YJEFr=q_#9%*E zgTuoCss}&>1GL2ih%!Mu(Tg|@9i(I*#lb)LxmojbGwc}#$XX0X?PIlJQeuhfE^ncR zwUccSW;>e1X^M_=lFy4+3e!O{o-PugJX64H4j#(98mVXbBIVXKnx*;EIE|2K*}-64 z6g?1O)A;s-Vd!J|I$GZVaT&K8|Bl;xwNK67ElXZ4kO*_d;*zL~<1sL*H$f0@i+a>^ zJ1)D#%oAV-s0m>n5@Hvpk#B>+yms-8snLV)!JZV)Wuk>?ZcL_eZnJfgZ^1$fp^bSd bJN!aOn*-iO9MMDz&?7(iIodn?FR4{-sc0p5M_7mSiUf{BSFNPLC~NOlHEl#@0@MBE}A z5X>gg4J`0!!@>YA*B8t(iEHGUGR-Z%fMu_U@W3y?qMws4{gNdC5_IjXs#GD9$gT9X z&YB4yKC0p>^SQ(94Ro7?pGWz&I5$cgaX22P$LUF543wG9%SxO!V^x(#1pBB~W`0)| zMx^!Z+Uu1cSNs%PRpa6?|F_|vV#05*7IGHjD$`x+r3r>JEdNIxx^vx~St;v#wd>s< G1o#G{PEAGt literal 0 HcmV?d00001 diff --git a/Numbers/__pycache__/odd_numbers.cpython-37.pyc b/Numbers/__pycache__/odd_numbers.cpython-37.pyc new file mode 100644 index 0000000000000000000000000000000000000000..24768b3f2d64b8eb630ff51b31ac31e3327133e0 GIT binary patch literal 336 zcmYjN!Ab)$5S_`^TG!U22anzs#19Y=tCgZ)#EJ+dBHJd2)Na`gp4i3$$9mzm6aGbBfyP6`x!q{J5jyocg17$t`U+a{7A@fn67*%f5Tn6xnx;s)WE zV0Vb_VS)2)2R*pmS}?~XZjxuhZ0hg@9D7BCr}PFKhBO78sS24Tex++n zUJutUq`b>R>M?%<(tXtD9o}K%SFi@Atc@GYwCIj!7|*!+AFWc)xAv!6R*&i+xIYN+ E4M+7$#Q*>R literal 0 HcmV?d00001 diff --git a/Numbers/__pycache__/perfect_sq.cpython-37.pyc b/Numbers/__pycache__/perfect_sq.cpython-37.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e44fa1906903242841fce2a3387449679ef2947b GIT binary patch literal 528 zcmYk3&q~8U5XNUV+fq}jJ$Vuj9>iRH01@#|tyE~hswgE=Vs~4`wn=wWu#lYeLG00I z@J;sM#gnh#$=MXG12dZ$hL7);IjU4#ph!Ms@Xi1}ZSxz{!vUpUry@Y$0NNm!a9*H| zf{O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} z1EBI)ai-lUR#lV+7P8|2#o^z0bGzlu?O?2j+Z3D+PqqjtdblkzNc2&d$_+r%lQ53b zG(_6OMOH?F>mkzOv`SKVLL`v201v5O3FYIWN||vD&(h*FN<*Zx7-GZ`iZKWvaL2q8 z;&n8=0b-kIxBi`I@3cNG>+TrNwE}CWC;xb15DD@%5X9c0eYW6hL@OZ?sakEfEkdY^x)FGL2E< z=Rk9zy$4M)5R5jYh8Sm_cnc$>B%=+5s1|cl*r%~5sjZr_&QsjmWnJcd?|_ZSIqR{$ zaxOYGS<{5RNE%zYFz(j&nm(o9f`0>%A&bHEp@7qofa=j_E5)VyDiV2;FVXM>)R2Eu zrb(Qr^E;80Tqv0H)no2|9iURLV>Nl zI8uCBh?VvhNy_sm)_%egn-zZl%1F3E7JbgVZ&G`=SRB(t;tx7HhUZwUf zZBp1c?B8o$!${~}D5C`zycBwT(iWh|?+Z}~y%#PDkwwasD9R(uK5+B^R)=j4hbDX* z)R@}^M?Vv>3mZNAPivzmreHB-V)A?_D&B!zT|kQ&E$xOXazPPS4PdXf&aB3+ZG+NBh(Lo(Kq2V8)X6#x@SyJ0 z4(l6~4%m>53`%YJn{qF@Y+Tz5%3i=&3v2DL9pzp0*5u5UKfrvyrfVvG1Z{v?Zm}J< zd*$(q@vy+-SK|R1czUdN+)tG!2n5 zagmjg;ChIZIIWTtUJnUGEx<$SmqPits8VKJ!)02WMrnvt7DJ3ULNNvb6d>{jd3GVYGyTPv_~dgq^y3!*^20)p5(v~TxqZ;LOFfH%OH0A_=p_MV?a z?1MqS{QO~QX$OzMf#6R>qPXr|nRNHkCa^}rM}Y)1F}IS#XF-?@y}Mb#s+7Njm6e#D K2fXzx&;Aqm;?@lS literal 0 HcmV?d00001 diff --git a/Numbers/__pycache__/test_prime.cpython-37-PYTEST.pyc b/Numbers/__pycache__/test_prime.cpython-37-PYTEST.pyc new file mode 100644 index 0000000000000000000000000000000000000000..45986584f1254524b57296e4c27e4270b376b09d GIT binary patch literal 1658 zcm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5P-75;I)sq{{8s^AV=^Lg53HA%V=(AI zGno4W6iyLoh|`4&2%+3wSPd=7IYlHjfVSE?wHmv&4K4#joxvjD4s@0}OSb{!*KY0b zuEAxG_xZr!(pI|k&O3Zq+jGiC7;A2=9e$-`=iN0q_0$hA->d1G%AY{%qn26x3g5Z( z_|cnGiFn8v5Px;L*@2U8ut=LO2#L(w zAQ&!~U~bN*=I;J?)Z;b!w!~~DGC<;e`SiJUbmY^sF(UoISCgZo395$xdIpRYaVfa= zqPVQ0)VGib2Ph8zL6KW6MQ-^c-7AEg!z$q0Z0BzsXaLldrc9t z8X`yHd|3cf^#D0=QY9(86bhJ`gNM?ugz8aVrQEoNi!?up(h#{T2N-OKVgv%%>YC?3 zzJ{jPL2R??#=o=bX6w^Z?6x6TE3kUHzx9wH;uVG__J}gOXR|GWd;>%Qid=_TzpL4c zL&!J5pkICQh_pNd!tYD*L?)%s-Aj}1T-Z!`$_t+WX_8|fEOTC^;zKN| M!t@vrm08UG3qY67ZU6uP literal 0 HcmV?d00001 diff --git a/Reverse of Array/__pycache__/test_reverse.cpython-37-PYTEST.pyc b/Reverse of Array/__pycache__/test_reverse.cpython-37-PYTEST.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6e236fd68aaf11cfa745d5c7164738d467b044b0 GIT binary patch literal 1695 zcmd6n&x_cGN`_Y}|207y>cdRXy8GItf+j zU3*AhT(90dip(7S2R!?C)Kw80{0sKv_f=+x7Cd^en|k%~>Q&XNSMO6F4hG#nV;SG# zjQ!3weh&1zX!;!p!359PF}J-lcOAyr+&gaZX2d`Cg(KYW*>PKVqJ=&X{7V-3Ys_Wi z2}$~SXg=CUXj(uBzG5}jI1SXhv_i(_e8sV8;w^u({}8}+5O3T@mH9r z<4=z6jXxcKb{Kyw^=Va<@#o7USr$4zR4QHGUtsfDk?Z(KK8Cvti)m;_VhSr!jdizN zt|?8CYl2By$&*4YO)#BhGEe8y_}MI%d2u$p4C9SA%jL~T8<)DkypWXkkh^p=oFu81 zrPPY<(*&0`tz7!--fdiyRGChq)2URlRAzYCWTD9KDOD)5lS~UWPb-_JG*9UWk!O0C zois7*+2xx>t+|=7{|i&w*y!1RpCB``8Ji#+8|(wMkS%PbM-YsAEMR^7ucPKhY{=9O ztXFjy;G>OZ>+mlqf>ZTT?F#?IN8R|)JXjpT@y#oC&Z*8;sKwejbyjZe+Nzzxqirh{ zRS7-Fym@N{F6vh8iH@z>uIP!rty)+AQTgX>F{s@s7eiWW>Rfo@S{0mkF4(EBf5dpV z<`-Q346R36?uct*>&oL->*2uTH|qfn9$RAjCkG7pVkCBI-}2C|`tTUk?JFJ-GkCZ@ zUQ+@r6KeuvO(B0dz|VZ@&~2L};98xaS4kq!?I zLQ?mEL;$koq>{q;>7-huS>zBVdnES%0nqIRpxe>Vbbuj<0I#M4P8(HGW|}JRl18af zJqWX%Owud^yQP{G^DvB}!ae`oDhjoRNd;@C0 z%Uc+YIwp923iUb+=H=&aO9LI=fn6n^s97aV=gMT-mo}Rp6=I^r&#t)<7`+V2Mi;z4 UFT^5~A5c~`g%^O@zzN*H0k-1VJOBUy literal 0 HcmV?d00001 diff --git a/Rotation/__pycache__/K_rotations_left.cpython-37.pyc b/Rotation/__pycache__/K_rotations_left.cpython-37.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1cc146110c25d51a8a28344ee225bc1ed47076dc GIT binary patch literal 353 zcmYjN%Sr<=6umby);hM}XE-1(+z29KeIQyo;D{&^C}R_$^pTiM!GX-q53x&s!Vk&T zRoCuZc{3<@;GCSBo0Hc`x0?WA>tn{d4B#^qf1nzUiMB%`K;SDpfM7R}Mx)RRh=~#L zlxX)z1lH_j+cAfe*zP!Zqr?*Hh#b0Ti3pAf+=rSyx9-3}*ezQjC09g9nUA#6zEx-~ z=OT^$TF;oG^4Rxnt?alQtGUPfcQ6~Y{ChAu;I~#9%P;ct>@vIR@iS>BrP6#*<&qM- z$zLy|4N=Q;RTjbV{?PndJDkd=a#vS={jq9%xKHzJU@=Qrf(dq**`(Pl#b#`d|0m%a Qefw~x#9}IsLjH>gKa}}V{r~^~ literal 0 HcmV?d00001 diff --git a/Rotation/__pycache__/K_rotations_right.cpython-37.pyc b/Rotation/__pycache__/K_rotations_right.cpython-37.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2cab4bae4343cc3ff3c1ff3f02194da6dfbc10ab GIT binary patch literal 362 zcmYjNO-sW-5S`hLCB*cH#6wSlAS%`mL`wrkM3IG3yFo*3H}0ljAi4QN?9m_LAK8=O zDQ9n9bT(G-!JB!*%o}F+pxX_A@cuRvyA0sN6@Q=__K7B>AVK0Y+<;^k5b=rYIe04` zQZ}0uB-ZR{qhb|KJ=3e;g&a$)IVqI9;!B25F^OAHv&YUAR6zT@xIywZ--Lz)M9lJB z<+hW}O{$B?vuk~=$EC%A^>byiB2#mV*RP=6{a^89TU^ql5huxUd>Wti#ZhXeh04XS zOj2@))_=Z8jk6k&sABAt7>x8vnvu@#?u%YtTK~5EEjVp&-w(`V0Shq1kZJcJafEGd W5BL|>sb~G2nUaf#bkF%eiSPphb6I2n literal 0 HcmV?d00001 diff --git a/Rotation/__pycache__/One_left.cpython-37.pyc b/Rotation/__pycache__/One_left.cpython-37.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f223d9bf2456a366f259e684db46a0691b6a92e3 GIT binary patch literal 296 zcmYjLO-sW-5S>kE457XE7ZiH&2Z%^NDHeo9vX|1jmWN+$R*?RH#MJ|Ekce%Nc53C)_Rk6&k z^Yv6NG`}{+%A2;(*0AhW?)I9S7gMt=Oj8CXZ)^Qr>1}gvTc4gp_#cPM6lX~mxfCoP Yi>`Jr{!3?=`SfyU)V|VJVe<&kA5}0x&kaAQF($1RboCkfe)&y7NQq(qGEfRoCv^ z*pmUp1Lx+Rd(X)|7>zOl&a#=@;zXZG`~sTxK|e%Mq}UtXlj1j&iz&k>A$dCBA?P3N#eUR(H@qIGgk+)cS zd0HM9=f%ZX9%=s^jFp#7sjcy{ja<*Q50$CCEKQiCPF~ge!Bvk>VcRxw@TUa6_1$z{ gWMbHH19U~s+PA&=uk^8t{oNO%<}5$j)CFkr+#$U=$T6-r|gvne#NIq8GgqYonZ z414v|vo|j~sR(}X&3-e>{&o&J9Un;RZ>e}^03S{BC+cCJtlLy1NPLD{kn92iKIAlN z3Vq zYd|xXesRJ%5^+w3`8O%xmgiY+y*STRDlJb`8hF<27DZfHj4bwSE6U2a9A&A+8|z-h z$wa+E(ILcFZ@42awJNkYjgG@!*zbxXrN?EKi?b?Hd8WmJbUsnKA!zZ(5~EbA=^z>; z>b~5{E4y@8EwV#gz1l3u9Og40eQZ-|V+)HFnufvexme&|S*APN+I`66BvE?}<&z9Q Dt!rWR literal 0 HcmV?d00001 diff --git a/Rotation/__pycache__/index_R_right.cpython-37.pyc b/Rotation/__pycache__/index_R_right.cpython-37.pyc new file mode 100644 index 0000000000000000000000000000000000000000..376d76b4e4a2b3e4b5568db84c71c891ee8f6889 GIT binary patch literal 403 zcmYjN%}T>S5T4mhN+_uZZ$3gj^eTvm^#^UyfDwNv3#E1!4XsJcrqICVqz~cI9zFOF zzQ*FsQ_tSK=%l6K2jBcM-^}iQqfrOK%ln7;WB^}PvI6C>N7OzU2@;>72a;VtlMgwS zD%6M$@qnmL$w(~ubklHyBS*Ikywb!BONSzq+&D9aV7SCBDEVXUn!2THSk4SQ;Rv!5 z1BPt?)m+-+1alzN@9yQ z*1Z~xC+ZEd>J2~L;kLM>K`oBMqo5OX+u~5^QJ$pYtO!+_Xt7W_pD0}^XtB}~Q7qN8 zANI58?mlm&h4pTWWm0{GUaziW4y&^|`sh>SqleiVRfFczFHZPp8q~Ai&O;(6W3^kU Hd=udhJyc_) literal 0 HcmV?d00001 diff --git a/Rotation/__pycache__/index_left.cpython-37.pyc b/Rotation/__pycache__/index_left.cpython-37.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1a32b4b7806470ac39f4212568dfb6b6bb342666 GIT binary patch literal 374 zcmYk2%SyvQ6o${4NlJ;0d*8r-xNsvB5$lCe(SQ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u-qQ^o|3$Xv9(dm>pF0SNOhB z@M8|&V6REN%#(|9>D1#p=i#Bp56%O7=&>Z1zx9yeRkhOL%`BittEio_9dkyu zuXX2C?wl5APQ}lO`|}FIi3;4Vh1~7izs~qI%q#T4rAJ2tQ1T(a?`>~~{BVU>z8UJy z_I8K5TS$0;YE=WHq^-sSGl|pCBN1#8Z2dtVS4w$Y3EQ^mBo;xkw{LpQU3x?}Np(=C zNl7NqAfRP~CW2j#26383q>Vv78pojQ0&)NLBuVjv(5T29J+yr^();-&mCiNVOY_@t z8j)sUfr7ON+6bu9iaQ422{Jv2a8^y1&sWncrB5lXt4>%Y5c%zrQ-&+6JVmGo{Wt>i z+dS|azBr?f&rl_(j}YJfZGGT*{6EtN5a;G@%P(LL=+K=z?v=O1e@Y+EV{+%{189rS z7s&7I3O#s=3Va&j&%%IbC_vjbN@1jGXnKwJ5Fa87c$Olr6Ff&i`Td3GaFML1EQc3p z=oZ|`>qQz~BA{#H44W4nn<9hy70dWC>xMIQ9EGWAdkVK z3Bw`pZ%{Zzydhe7cp3syHY-kHO$|8*l&$Cz&{ug=Z|PUQ!|4Q0G$oyROTZ!MO!~86 z2~4OORlr*gr)}QhU58U&|79BIA@5cGgz`Sdns}>#Uop*dwj$F|{|x)Bims^o6|^>L zxyP^Yt&PX;&cg$bKb!|>;IYNGfAIkIAs_IaDs&8Jnhtn$tLBCQP%|*#>S&FZU$;;o z9@fZ2M~XGJFrw}=!i4DfKd=D5Y2+&`P9Y-{)*sPV-r-?H&jyJ6{YVcF4~M8800|h7 zSd5L}HcZE6p32BWV(g=!@fbJ)?1*4DYFYOB8fq5| z_MO*HNKG+#p!Sq_rZOXJYh$v_3!7_@8p1(GHW%|!W%vLnS04LhR`9tLcd@M+%VWS% H<}v>tkaEm| literal 0 HcmV?d00001 diff --git a/Rotation/__pycache__/test_one_right.cpython-37-PYTEST.pyc b/Rotation/__pycache__/test_one_right.cpython-37-PYTEST.pyc new file mode 100644 index 0000000000000000000000000000000000000000..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ZagW)JW-}XNnuhB9o>c1ag)Qo z3Eu=Y=4QdcuSD#?Mo<3B(&&MyRtkxjG*88Xw_p=F070ljeA0veS-{zV1VrqDb&EY8 z1|Bqny}v+V6cLAbowfie&^HzsQAMsO;%WuhtF4)}vTNI*^bA(G2AP0D(7oK5w^qP| zx>Y;OHz);MvaUg?E&ovNmB)IuJ)x|Ru_o5qVS)0m+G{d%ZdvexbosfRrYf{3_&qF}+QC=!rmQ?#tRsYw?tv^Rf_RZ zW_h6s8{{*S=`!ZlA8I|SY_CuzFLO1sc>M<2ZSZqA-V~Sg%!s4(AURG>hGIW6lTsDp zv`RB_h|YXA&y2Ggk*ad!GEqLMTb_ZLZw-Puk4 U7gnieds|Z_=MUMo^M4cJ4~2AAuK)l5 literal 0 HcmV?d00001 diff --git a/Same Array/__pycache__/same_array.cpython-37.pyc b/Same Array/__pycache__/same_array.cpython-37.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1966849d3d078b0579870fd9aa968f3fe76d830a GIT binary patch literal 354 zcmYjMO-sW-5S`iG(ikjAj~=AQ zf_U+wvjM>e@9oTcurm`k8a@!(Uyt&K0eraT57fgcQSXvukl`ELL&o|L@{!9NYD7Ui zBkB%Gh9z5qfi05a7RS7ZGgh*7V4w{Tt&*?z4N}!Ch2cg}9=QA(7Qp}(2LmwGgygmp zqU94c3u_i5i?J2Ylk~-6YVqkEiaHJZ?v9S+omPdG7rpbOn_Nb+t@L=A&*jyor{=kq zQBkCuo0Zbb*L_ad}HffJ#-Ftmo!O$3ATrV`RJpE0)1BOkeh^9 Xz10H$#G}l5$J0DpP1K3|<&y}%X@gGN literal 0 HcmV?d00001 diff --git a/Same Array/__pycache__/test_same_array.cpython-37-PYTEST.pyc b/Same Array/__pycache__/test_same_array.cpython-37-PYTEST.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6af880e5548aec62fdf4b3c3a848fa668ee0dd4c GIT binary patch literal 1680 zcmd5+&u`pB6rQoY_Ux{A+iVKrmxQT=ge4Rup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(B+J4i&Bfp6)X20@Cb^uYc}}FCD$!px z)}N|=BTLS!n{ocu_NQ{;K6t(og;cNkc3>Ra$XSPV(627*qF(b4XPVR2#7%quL5~uy S{drc1c`m>BffzrbHv0#3V0teA literal 0 HcmV?d00001 diff --git a/Smallest and Largest in Array/__pycache__/Kth_smallest.cpython-37.pyc b/Smallest and Largest in Array/__pycache__/Kth_smallest.cpython-37.pyc new file mode 100644 index 0000000000000000000000000000000000000000..9d7dd1901ebc8c85fef2dd4b495b980ea60a2b2f GIT binary patch literal 498 zcmYjO%}yIJ5T5aRmo!R1MLm>TuDNhPLP!W90!4_wNDW1xXhpP&ttDdPUF;1alD8N7 zAmP|2=)3sZ6R*%y$6F$Gtoc0SZ#*;h9Jbp{Ao;$X#=jWAZ|^LHd^jLAp9lm9%wPzD ziQoqeQQ#GH`5Q6NANxozE2IJG5vln`kV3^uu<(LaAh6=kTbA44ftkY+7tF#dR-t8! zz=p4g6u02-78h&>D*m{B1D077>@#dY71@ZY27Qf``^`f)bU`MSYg|o}ER&`jeq36k zi5m5^PUbF3ib5*kA}y!+lkBdz@E?Ka!w)?(CT^lq7hOn|miI0k=QCA0ymiq)npsx< z1l^`uf9}S+@wJiK#3zH}{%QZL7k`oFq0Ec;az2nnZsI!c*BLc3$(4zhy>t>KIv0sf ziResJrw)tH%lnae?|ZYDyOuv#UJ0pU{qw*$HjuL>YocE*)QiJ^k7wvpS literal 0 HcmV?d00001 diff --git a/Smallest and Largest in Array/__pycache__/Largest.cpython-37.pyc b/Smallest and Largest in Array/__pycache__/Largest.cpython-37.pyc new file mode 100644 index 0000000000000000000000000000000000000000..457d0038a8e2b0d64697eb7b28010e0063fee874 GIT binary patch literal 337 zcmZ?b<>g`kf(wS}F)U0B439w^7y$Aa9Dul(2S}taq%gKHL@}f=1v6+eCo=+tK!6#F zoq=?*5|Bt?tYxf_s9|tnh!v=1s$r^O%w{R#s$r^SEaVDjs9^-^X7YOpRLHOrXwEHG z$D*Rd%3JI{iACwD#U-~G6N^CBf{9;|$yPC;#i>QbG44UGex80_jxjE&#n~nK1u?#r zL8%4##W7&*fu%sLnfZCeF~PZsIXOU%LSkNu0@O@}%sd6KvKXjg`kf`5JyF``Ti439w^7y$Aa9Dul(2S}taq%gKHL@}f=1v6+eCo=+tK!6#F zoq=?*5|Bt?tYxf_s9|tnh!v=1s$r^O%w{O!s$r^SEaVDjs9^-^X7bDY|NnpeN}xHn zSRIRs5-V?U1m`B^W$BOC@{u>$38aoFVMrKZ>PiUNAfahecT;E}x%or%rgwkM zUOn|McycyY(1G`M-p(g;((84A?Bi|B?-{_S5x+(njtR;k5+E>z2?!>vXPBVC5qS2B zBH%}89x|I?5l#tek4RvR1-xJduUNC?P6Y#aaB8cvDmG=(sZg+esPW0UgUWQYd}*4k z40%j%T!r#6R)yYPJ3*2KeJR7zvvsR+bSugiS)p;PF?a z0%3yYA+re<;gq2Ehy*rR!YkJBh7Eh(sbK*3USri(&1Ot`H43&54L*5yP@9fcC{44K zp@3;;G>@|^Ri)lud(kwH`clSKVCzon=uT2B^HSqjWBdVfgKEDYk^_FLQmOd)@GQIt zFZ+Cus##eq_;oc*7lq<&@y(LDPm5gf^#DK4g?|;xM+*4U+;7u(J0eoQ>+CKnz4iaA sLsM0k2$+p7bJ4*rlbfUiCe2Y=zg_MRnd@uka9)UImL8cjWzO!fAFcIcT>t<8 literal 0 HcmV?d00001 diff --git a/Smallest and Largest in Array/__pycache__/second_largest_smallest.cpython-37.pyc b/Smallest and Largest in Array/__pycache__/second_largest_smallest.cpython-37.pyc new file mode 100644 index 0000000000000000000000000000000000000000..17fe01151db550cd68c153f8735586ce1835cb2c GIT binary patch literal 672 zcmbVK%}T>S5T4znb}6*Il!~`p10o)!h*+(Nq5)e(C@Up&7b#7XcDDr!$<4>`1-$q` zxq9j=^yF-ssJ#d}Ff%(pnV)ZRR;^Y5>3uEvs}1mBjDjdWPLXv3g#bZbpbvry3pEjT z58Tp_V8{@D3l{P@vi4BKn7;=JK}}K9=c5=p@OYS5u@#fCt@dM*(AY}IteJVJYJFK0 zqVeDx&tykG0dVHAo%u(4C(D>F|f)}vvI z-)pHfzwBOkSKf7-ccdQAqba{#cI7nEJS%s%z*3_q)Vw$Gg8&W34~3KWa7Lk%rE$I0 zYoPPwgXuD@ZO6igo+- z9L8cLwNvD7;4GW;dcI?kw2RK)mNdVZ=Wdo&#`r$XkE-l=5{X41PcqERjI8kqMah$$ literal 0 HcmV?d00001 diff --git a/Smallest and Largest in Array/__pycache__/test_Kth_Largest.cpython-37-PYTEST.pyc b/Smallest and Largest in Array/__pycache__/test_Kth_Largest.cpython-37-PYTEST.pyc new file mode 100644 index 0000000000000000000000000000000000000000..500f3bed985b589e7ab96da1da902c0f357eed70 GIT binary patch literal 1754 zcmd6nPm3fq6u^_J>gx1gXL@!;L7`j`ER-i20uX#UId}P!k&CD)jN#fS?ngSl9!j4mzVd;N4;MA=exg; zZ&O14B$s|3^lw4a?}89S(2R_z`+76qBb3a7QG?bq;V2ZI@V_IYrU*m>zD&@EBo5cG zmJBB-@fSb~p?wTZ3lM@XNd-PmnR*XBWMoE{6uf#O$Y7tPM@i*XR5YIA-l1p;_I&_4 zqQ{~o+9o(}RAfa{`XX8SCWLXb@>ldJ{TA$(;2EOm3?C^t9f_&!eX%f7o3FUa)BG3} zPoSH~Z^|s4q~`1<*IFtAbCEfb(bqhi%V=2S^6jY1B-b*UL%UX6MX7dk*UpY6?~lKP zg?jwSgFC}dhj$Ohx1~NcMLGU_@j#Y^9v>>j7x(9|d0OOp{BXvz3x?ZsV3sKv!(X;;`V|L)uIDzafU3p6%D%C&r zmO&M`ihhjM>Z%wyX^K`B%o@uOsyD0}qU|cWBf6sJDmu`AnDD$Q`c*Kc;sx|I^;Ut{ zGVHvyBB!DL0p{D4x1#Dt=ykA{dtys$Us(L=ETI0?Z_WaGV6iO*KY74MQ|yQO4%ZA$yT;;JW46{v&KlFPMtV0Ox!aAYyWjsaGJ`+!3gR-8*Z-Z#cWRp&(3=j=S|BI3>mb@3 z2TMbvZ{ly!fChfoXO}Q~3^)NuZ^1l7!=4{Sy$%Zd^7B`yrV(C@T_vBW)JWU9P}$~2 m=aQsegN2Su=kro%_=YGKANycdhgx2TGd;Vapir&|7RoR??udvZJL)3qYU6&0&@|N6R?!3i|bX-9z0ARy?OR8ksQ1TLjMbU^1W2|FoI{Xo4iV1US3{a-Y*~ZdhOqjrsKPm zkUzxSBWl0S%ykGQGjG(O^^8CAxx?M>$*9Ra-heOT^dSlTHLNAW z1SS4FXg;)$p(zf6(Eb}yN?A(p>Bzb@Q6)aTa zPaoVF-W`5+GX6xUGhLM9FBT6(S*Y=el=0&J95zpjT#X;j;w*zf5a&GjJeE`Jr+Hw_ z#u#ICPoG9xv;A_h#>9oLVM(mTw2%wKCTS+}cqWXWrMbw9^Zq8VH{L84H$!Dy{4jGp zD($iN@vv~VNH0pEB;K%L8=aCa4%@eD(ljIC@>b@}8cQGQ*RLA9ZEL#2yS!&>+EagM|DwtJl{caM1@tv>RvzEc z?4q?IXTJIo=G&FCqVgx`b+DH^e24E|TKsA)fB^ZMwSXR2?DE0S4iM7hd;D6}w6rkY z1&dzAE@^?7ftKsTHG|Wxu{ze6tu?Z<#&oQa-wjIkdP8b2_Gc1j<)B) z@=)lUxI5INp4)ZV6_g$WQUKFiFc0Cd?OEjOpfE3QpQ4&bcsBN>cq&sZOzTo*nj4+X ll6(yoS~jiEE3x52B5i=|gIU4nnfMTMt1v(YNHd4Ie*;&w@AUux literal 0 HcmV?d00001 diff --git a/Smallest and Largest in Array/__pycache__/test_Largest.cpython-37-PYTEST.pyc b/Smallest and Largest in Array/__pycache__/test_Largest.cpython-37-PYTEST.pyc new file mode 100644 index 0000000000000000000000000000000000000000..8bc2ed506e639b011f607b175fc718ff522b0c97 GIT binary patch literal 1720 zcmd5+OOG5i5Vre0&tzu-@i@?02`Me1)n=0*6lGBsh!6-ykcWWPh{kDqCavw4>>k3b zdM*TUL*fT;*tx+K{sO;&gAZId&0olgD)(eHk+>o;BbTeo<#JW|`~2=;(Ea20FDKV1 zA%Bytp9T7D80sw$oN$_v6KZBFw=F_R?wq)^UGYvlZgKm2a^iD`yD$fw-XoE>hP`B* zpv0d8!-Mf248=ikx+D$6I1S|67$GA$T~df@aVLXwmKG(A)llv}!LvQ?^WaAZY(!0X zhj(k|+-=B;rt~GUv}+H({l;F=C-gh;UqWQaqBp)Tp*j*#J@|A{3sry4WRVs#G&}}1 z7T;D`nxysF4W^WkHLQj8BN2YXvbhMyWg*@St4uH@!a0n+)+wdLZW6vU62MMditdt8KOw&vhEEn3#(n1vF*>IE78&|5u)ktX@r$E0LSEk~9 ztP{$L>qRA$#LLye#-^l=pWWN7Ys{qX#EMOY6qVG&fLx+%AD1vX{=ya zPvqzx?2g+U4ovtqs4=%24u2(b2M&7rA9qWSO#2eZ&18OG&V>u-su2i69TJc}{9gbx zj>wS6U9estG=L8uhC%3Gpm2(~L{!gQz>~A2H94n?iMw{du25Db{*J%eCd{aJhGKJPd7l=1<_np!J|59{E(vm&RS`T^Fv4P8DLIvhkQJUR+dJp^V1 zz;=<;f@_Z@^_*pqg={%MarhjMuD3k89u2j>VWYmhQR1|S4OwLePsN7GE(&ax#3t&U zI02H!$fBgoD<*~RBTF96(+r*%1>7ycL+O`e^{AX@+_=WGtbE9_7}+iR7;J!I2m<)* zwr9SIrq@7h^X}@u^X^*f(~|Ipp$X0 literal 0 HcmV?d00001 diff --git a/Smallest and Largest in Array/__pycache__/test_Smallest.cpython-37-PYTEST.pyc b/Smallest and Largest in Array/__pycache__/test_Smallest.cpython-37-PYTEST.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7957682b193a2693492965cfba9562fe1e64b354 GIT binary patch literal 1738 zcmd6n&5I;86u^_J>gwuGr+aoqMWI|2ERq#Mu1O7RoOtqGTp=YHT~k=q;!X7_~ss~@LDxs>cnaq=XfriJR zM&i3NP2!|Fy~&gkvVt+cdMNxyEL{qJTIAv_zf1*F!e2tW)_D1eGGo_Hqxik>E10Ol zPww8Hemec^IQ&?sld34gFIIO&S*Y+>O18SQgw2y8SK+;kr73iLmUI7eCKsqDxo_M; zj4|4|9F(gqCM~eF7qdz%3c1qWJV`~)GNIix$wgkA4$p&n{f%;UJy6=lkEgFjr8)8e z9u&?MRjX1ciMOl0bDNSjcDuJ4*N92oi4>a)DN3n_$4yR({I-;Z)ceuAkQu8?)>zK) zK!KxsFgt2uI5f*QiyCt?;pkT)N3hY;|2kcIY!Vnla3=Koaw%G{u^NLQ)FB?}!~Y7@ zPEA}g5`x{uU6SSBgFISN=Vz(eU5BK5FXrrfwji?n#a(g6HKg literal 0 HcmV?d00001 diff --git a/Smallest and Largest in Array/__pycache__/test_count.cpython-37-PYTEST.pyc b/Smallest and Largest in Array/__pycache__/test_count.cpython-37-PYTEST.pyc new file mode 100644 index 0000000000000000000000000000000000000000..4e3ef204ae99816445e5fac44d7b93c545c8e644 GIT binary patch literal 2473 zcmds&&u`pB6vt<5uh;vt%_c3BpC(XR1B%knN(d3u00n_y1#J;1vSi$y$<~V3UcK>B zHu7F5CnRnhIb@GWJ@d!R5l(yM*c0!KHz8C(a6zirm7nLw^P4v_-_OiDolf)j2VaJl zEXICgCw^FG*YQ#BqY+H-l;HD2|&yRPY}@79GS?C;pFCmd13cSE?M zj_;=6w^-mUFc#|%$kNZj$HnJee3U>V_>7epbKiqEC{oHse8zDUOE@WxJF_?|t&)q{ zeaZ!63-1R9+n5SPLo^HLuvW4;PxyH@vkMpN_0pd6`}|wURdgbLO z%Ji)tgo8K3&+$VQesJ?f|HJ-AJK=j$?HBnt{A7Alj&l|60L0VJCOCMKXDYlkiqjM; zew+#a;~0iiPBP!Pg_L77$R}B`F`h2!l)J6HL0rgT4pZ&zC8^Bfk<@OQWHQSSy333% zULH@c1WMcV^7OfAZ05T`v&2b7#dItc&{k`2*`~mzYV&&K8pWU+k&5>u$T8^dPPHI; zb^{;>y&CQ1Fp3MaWN{YLYywBO@aw3`Vbg@Kf|};)gRP$#tl&To|I@Y7y=v(&Gn4mi zm`DY-uWVIFJae+`w`V_gQT*m|r^4=c3RMxDQ6L2%L}DI2XltfQWs886r&>Tk|x zsLRsYw`O)}8wH1?&y87dUZUTTk=88TDWN=Gz|f}5fx+D5^)(nami6`j)F*jM>hBn+<(D`Jhb6WW`P_yYW9L6U3cV1TEn>1i}4iMw(-aj#cC6@J$Ye3c;xbS+NW&_WzR=Si^;Yb7anwd4f!JzdZh|Jdeqq!U|lV_ETZ` zQ*(g@&(K_-Me`^m@Eir`=uQPmTHR=W%Lw=s=mj$CWL_lmsOaG(YCV=bT%;rs}yKSVsOo8_4pOpP7`UEZQ9RX?*(-)2|&+00{i*5ttJxB_v8^=w$zHBq- s11&GSLWT|{gA7pg6DgWx4T9cVqg+f<`8FLLie~TOt>kgf@@%jD2M&>l3;+NC literal 0 HcmV?d00001 diff --git a/Smallest and Largest in Array/__pycache__/test_second_comparison.cpython-37-PYTEST.pyc b/Smallest and Largest in Array/__pycache__/test_second_comparison.cpython-37-PYTEST.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e564493a2b2205b5fd4cea355554562f60f4a9b2 GIT binary patch literal 2102 zcmd5-&5I*N6tC*9bTavv$xLRI_0W#2*su(<P{vCBxFZmbNi|1tX6Iy1Bf3wfX6C@Sl$&$JL(#FwjD!ARGBh!sPDK{gq2DeyBZcj=SD#9`%j0S!W-%7F~~T=0=l_0!^T z(&Ua1sZhH?KNZ6;)5jMkAy(#FY715eMGi+gd=XT;iv`EO60rjtJ^RnjO*QqA_8?1L z!vitqHe?{1U?NeY9qsUcc`oIQ`SyRe@sTrA3 zh7HeeXS!GVn9r+W?Z{>7O#V^pSVlOdRgKe)7Pc;H=g!o+}pa+O; zw)3+AH^ya6wwt^9_LQ?4AnJK}eS2)UdDdn2PpEkPh4SB9<^P1r-yr5?1rSeH&|2jO zh>p(Cm{W+)bdJ!699wLE1NE&&SsL|&MnNA?`!80B)`2VSMHxQh0##^%yk8&%7AOr% zeb99EsV40IUkmmiao-eJgg{*oNK&6ZGfqx?deOxDf8}BIH_6?MaBQ(d)3CYbuNNz4#u!q`_OZmDC)L6Tgks9jCQo&YRtPq|0^AnxM za=Zcv{7i*(;N8=oLu~1dgC6K+fO1smB3D(En}_2l2Gy1zf+--RdMS`+={RN@8Vus} zVHgJ}lcI_dYiR0V{ED)*=8CK6dKJwpXb!+^O4*Hnm$EktOrdMHw5k;bg+;Zr>MZ3w zSe56(lspDQ%sREGWmag#bT=gEE0Cf(v8YQbOIdQrnf8h6u*xqhcU7>s1`hS|O4|!{ z106mT{E>(gD literal 0 HcmV?d00001 diff --git a/Subset/__pycache__/Indices.cpython-37.pyc b/Subset/__pycache__/Indices.cpython-37.pyc new file mode 100644 index 0000000000000000000000000000000000000000..02d1eb728c6923bb4d6b5cbb1924287b346c6961 GIT binary patch literal 437 zcmYjN%}T>S5T4omG{p8ILhap4EslM>-#V+|)K1sNtPho>Z0W;Q2M#de)v5Z7eGEO5&25W;o z<6g>Wl#csucX_X5YOrOnZAz_3OomduL9#;v-_2p2-zb?Ve$hD(TVcDw&!n2B^O#?) zJ2IXtUMOBKrAjCBNb#*4|J6B+*QUG;-BC!c^3|w)B48fcj?H}LG2hxl4}DgqlT;`d a23Xw15dSFOyYY@5=3+UM$GO%Q0e%2hP-O-H literal 0 HcmV?d00001 diff --git a/Subset/__pycache__/IsExists.cpython-37.pyc b/Subset/__pycache__/IsExists.cpython-37.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b4b85f28c4f2a2c659ed5e802dc9a226a19ca069 GIT binary patch literal 408 zcmYjNO-}+b5S@N3L4=DjLGE7mVmupTMEqK!n+O_>X*5VH5>^&=mIRXSN&k#L#y`-j zC(hnHIlIKfY2NG1yy>*lqgt&3WX^u7NC150!Jlz*4hdK#(xBNp+=J#_@I^n@aw`$& z9JC0iiBhoe#xky1CN$6FJhamC5yuBBwWvep&3CO=WI7hCY*4-R8c+wzMm#y!G80yG zDYvSgZr@T>;mhd;`K0+?c)Fy!V9AKCeda`D#(v3p%_Qk99J_O+3o{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r%KS?D1Cw^8i=gBg1bGxoxPVMprld8)LUw2xHWs1p0pptpk>c1w0an2mUvWLb=i zm=^Ogk;3#4@yClagHM729v0xC%xkfFS}ZbdUE`CiI8L${nJRl2tdC*9aTr|w!tH3Fe;`j!`$rQyicTOf$rqaO9#p3AOL<6EEzkRybB zNQYh4BHsandHwRs(J%~Hz9q#onQCF$S0>ZCu-Pujx8b1WnvHoaH{`vv39^so1z%+1 PW9+TM1Q}42In4bVj}^qa literal 0 HcmV?d00001 diff --git a/Subset/__pycache__/test_42.cpython-37-PYTEST.pyc b/Subset/__pycache__/test_42.cpython-37-PYTEST.pyc new file mode 100644 index 0000000000000000000000000000000000000000..5e5418e35b578b477f3ca36b8d4d30e728f32339 GIT binary patch literal 1681 zcmc&!L5~|X6t+E+iIYvzCflMSID{f3Mn$XbvPB57sJl?1A`wAbL={CEX2(uC+R4nw zp3r7B!-3_>KS0&y2LFOH5`Vx~PPuU8&=c=@wyPjP%?MN4O-85V^1*Q{6NM{;fe4= z>dB`M?v3t`K0BOzBK1j;<&)2s4`iO{$)Qr=^2-Hm9%reZJX{=WSxhjQV1I8XU#_t( zzGHY47IK!UrQy>!k!d)W#!KQ1+Z5-^lxgO;9R6BSUNIfW)xzq|T z(C`bJRt^r^cWc)mRHhZ^a4MC|mFXSU$IjAwN@dDy2h&W=!@?FOOhe4scg+^84(c3s zZTLE1sDq;qm|}! zFla)vNc#&EK@nfVow8LL=9&sj-Ix?+_B$a79u<(95RXb$+} zi8FUA#Jwk4Nn`F+9-z@H8=`Fyx+OZIYZ2<|Ka1u$7roM*QgH=iP1(v7SButpdqqw> z{T$}EO17fvXV5yRrA%BE{Y#Hutq0&){boHt1CPEK{KNq7O|dPml}(F%UUb2uSMp2j zL(YKx>!US?)35RN*GK||99(00EGO285}(@Jgbv;QPZHoA`i{bDR!9hicj(g>?BKws zrvn83uCIp&2SZf%fCC)3E2BaRX1SZL{JV{YV!PlK{a@(<^kSS0cztgprdIk1>B?)(j;2+xrK literal 0 HcmV?d00001 diff --git a/Subset/__pycache__/test_43.cpython-37-PYTEST.pyc b/Subset/__pycache__/test_43.cpython-37-PYTEST.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3cef686711e7fac95c29c3351a6c327126d10932 GIT binary patch literal 1677 zcmc&!&5I*N6tAl8bSj^-lUZf`ID`SgUY22Yc2-0j*;#iH1%vLcAA~^Lld5FHbh?|W zife{$5XYGtkG&E7zTm~?|U+=3t!aW%LRQ*!e9e? z$zY5Ue?E)=#``d|03m2e3W#ya)!P^$A#++%h{}YYz&RzOq+kUVwR1c>5Ou+S@WDp( zNHj##_^Vn$)^tW+CZ%TrnAZz$P0#6f;9o*y$f7lPqTqHUq_*?P(nxK-h*dgEr)YQv zY9znOli7G?&hExqOJ!iKZ=TBj*Kx9t{Xv$>Tm3wdv6lS>jNQtsKhth)_w4@oozZ8o zQI9@&^le^ZQP^nDWooJG&d2C!^;xxvbL*KSwcU0xD z@4{C>ow?d@@C#AfaM1Jrpdz;CsxyZ3U3O2@Le?O*?tviGC!Dn5e;rWOBVD3)zqKmO6Z0(CJ(^xgvG7-c06eSToCj#&aZPOh$N=wk(GxpG-C>`b4tR76eu;g^ z8L)qSu;Fm~4R(KnBv8n~4VLGE6RwdVb*=nA@sI5bJ%t@s$OVP%3+Z!qbQIFF9%6n! z)cvEQKB@-*e-5;jVxPJdc&MZREnqVwS*Tp@E?pcxZbg(oeHRBAjb9O|p|X ziIBspjlnu7x*)=at+^M$(l6DkXnhUDRf66AcY@uid@8oxbzG|ilH!6f+Py82d%QGu zU%w85cx~#_8(!PvSD5n^FbKGF6V@Ro{^CMv7Yz257Y|ECKzIc9lzgUUM%u=u$<{Ay lu2iZI8yyv0%qt1vv!Gm-{M~sb7KwZh3+xi)z+ld}_ctfb&vO6( literal 0 HcmV?d00001 diff --git a/Sum_of_Array/__pycache__/sum_of_Array.cpython-37.pyc b/Sum_of_Array/__pycache__/sum_of_Array.cpython-37.pyc new file mode 100644 index 0000000000000000000000000000000000000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S-k)JOmT literal 0 HcmV?d00001 diff --git a/X_in_given_array/__pycache__/test_X_in_array.cpython-37-PYTEST.pyc b/X_in_given_array/__pycache__/test_X_in_array.cpython-37-PYTEST.pyc new file mode 100644 index 0000000000000000000000000000000000000000..4a107b613a3c32e0e10f953c05fb1d9c47f952c3 GIT binary patch literal 1721 zcmd6nPmkO*6u|8ylX(7?oox$9APq%GM4;7nX%Qe6b%BCFV$_yJRHH~CJN8VY%_NcS zX_-}Wp- zRrK+_+v88hpB_XX3U#cDGWu+FPn3m<4x~(0cbBkvTI4FaAE$XdPaldrPH-l|uwtvV z-#g`MgP96l!={NA^Fpo+o28k^lZ7yTmgXWaP6lU@yz*+fx*jUyV#mytxU}co!PCKE zV!bMbl6a+to#~Wx@w0QQF@-QpJ66d|NKr~NIA{`4SZVVB>W9^ow`)g}Q(BRVuASP2dUTJS+N(TUw@0v| zV`~*@aCtZL7OmQc8uhCd@7cQT^8vqP>(*1hYyULh&s5%w@-6f=bJiXoYIfRQlVe|f z5A&VMSyTBVjJi0=9X{mS=N7+M3#fAWtF?d;SZwplKRG}_z_0MDRbYu=x(62hik%Yy zF#{3LjwPbF!3G2>J?00)}3Lc?gI-J&k-B6z2J-Pfi0OJP$ikJd&vvrhTq5!I{qHNxlRN hEt1yfh3N3XkTyj2?xNt!OuUELRTv-xl9|KYzW`XY;n@HH literal 0 HcmV?d00001 diff --git a/X_index/__pycache__/X_index.cpython-37.pyc b/X_index/__pycache__/X_index.cpython-37.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f7356903376c0a3cd2ab72d03fe217d34c33fb6a GIT binary patch literal 321 zcmZ?b<>g`k0*>s9F-w^k7#@Q-FaYE;H~?`m50FSC}Ibi`^!1mDkiizwWv78J;>G1 z)6dH>#wE2lyClCL#@5Z+ tE+!5pE=DFs4yGbbps1fFBbWwTibQY#QT15)kv1c1?CW-6} z?W~du<%-0K1LClApg0oLZTsr?kPrT<$SA)b6i9~*Wetv#_e*XRZQNQ2$>5seN zyOfZ>$i~M&zXeU-1R;o^DLJIJXETQpN@nh1i#9Xfp(mJdz9)yia77DxF6dVz@K&&v zj3+4ZbD??AK8B_R2tjL7L5vfw-opqfnbDd;R3_XM_Nf^q6|1OdJ;l8};S2tQ3pS!d z(H5Q3J!@5DNfUaB)K2Na*sq)=eM-Lr{~97g7TxiE1*ancHT^FarPSqvSY=6ejE2Xc zM)FCKCX=K*y%B3IRS9#W@{t^U8>e$Q8t0jOXH=vz)^aq5cDeByCECtiKD{$}Kl~aN z>hRNhx5uB2KR*aRk@}>}i|~uZJz3;BJWwiL+?~VbNuKHOVU%P-J_#|KXg$~|7Avey z;21uMOL?5Dh2hgAm03KK#!Hh-X8Gx0z582l7mKTbHV$^&T#O2PwjDeX93Uzeh13eK z(eSlRD+h<2Ta9ZJE7Oj2Je5io$_x&g!{^y;rE+DqqiL>YacRpFXEA0TxTXuMqb7%4 z8@>r@&CPj7w1zgrK`z+))3e_?=jUtACuE8ilYmtFAaRs0^~V!wq|t0kxO;|MLJZFmM!Rs*n>3FEF6b+5Ub&Plt&8-9V4_ z_eZGi0S!2iSWZeQj2BPJd7K6esj-Vc&^P{?ddgM^i=#RyusEsa)2QrGD@e1jt209Ak_ zS708p;V+J&-UNer^~F2VFbz1rqvT_il+v`%O~zl_Y?0I(u+VbO#@t8^Ujb$F;~&g& SF;C@(SXzw Date: Thu, 25 Jul 2019 12:01:48 +0530 Subject: [PATCH 32/33] check --- Indices/Indices.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Indices/Indices.py b/Indices/Indices.py index 02bdc34..918599e 100644 --- a/Indices/Indices.py +++ b/Indices/Indices.py @@ -11,18 +11,18 @@ def Indices_of_X(Array,X): # Getting Input from User: -N=input("Enter the number of elements: ") +#N=input("Enter the number of elements: ") -Array=[] +#Array=[] -for a in range(0,N): +#for a in range(0,N): - Elements=input("Enter the Elements in Array: ") + #Elements=input("Enter the Elements in Array: ") - Array.append(Elements) + #Array.append(Elements) -print("The Given array is: " ,Array) +#print("The Given array is: " ,Array) -X=input("Enter the search Elements: ") +#X=input("Enter the search Elements: ") -Indices_of_X(Array,X) \ No newline at end of file +#Indices_of_X(Array,X) \ No newline at end of file From 97240c90f979003c38ef4954c3d79f7c2b7cd3ff Mon Sep 17 00:00:00 2001 From: Udhaikumar Mohan Date: Wed, 2 Mar 2022 19:46:39 +0530 Subject: [PATCH 33/33] .... --- .pytest_cache/v/cache/lastfailed | 3 +++ .pytest_cache/v/cache/nodeids | 2 -- Copy of Array/__pycache__/copy.cpython-37.pyc | Bin 0 -> 566 bytes .../test_copy.cpython-37-pytest-5.0.1.pyc | Bin 0 -> 1676 bytes Copy of Array/copy.py | 4 ++-- ...t_count_repeated.cpython-37-pytest-5.0.1.pyc | Bin 0 -> 1723 bytes ...st_greater_count.cpython-37-pytest-5.0.1.pyc | Bin 0 -> 1731 bytes ...est_lesser_count.cpython-37-pytest-5.0.1.pyc | Bin 0 -> 1725 bytes ...emove_duplicates.cpython-37-pytest-5.0.1.pyc | Bin 0 -> 1727 bytes .../test_identical.cpython-37-pytest-5.0.1.pyc | Bin 0 -> 1707 bytes .../test_dictionary.cpython-37-pytest-5.0.1.pyc | Bin 0 -> 1730 bytes Indices/Indices.py | 16 ++++++++-------- ...st_lengthofarray.cpython-37-pytest-5.0.1.pyc | Bin 0 -> 1703 bytes .../test_mean.cpython-37-pytest-5.0.1.pyc | Bin 0 -> 1667 bytes ...test_Pallindrome.cpython-37-pytest-5.0.1.pyc | Bin 0 -> 1695 bytes Mode/Mode.py | 14 +++++++------- Mode/__pycache__/Mode.cpython-37.pyc | Bin 373 -> 642 bytes .../test_Mode.cpython-37-pytest-5.0.1.pyc | Bin 0 -> 1615 bytes .../test_repeated.cpython-37-pytest-5.0.1.pyc | Bin 0 -> 1718 bytes ...est_even_numbers.cpython-37-pytest-5.0.1.pyc | Bin 0 -> 1706 bytes ...test_odd_numbers.cpython-37-pytest-5.0.1.pyc | Bin 0 -> 1700 bytes .../test_prime.cpython-37-pytest-5.0.1.pyc | Bin 0 -> 1671 bytes .../test_square.cpython-37-pytest-5.0.1.pyc | Bin 0 -> 1675 bytes .../test_reverse.cpython-37-pytest-5.0.1.pyc | Bin 0 -> 1708 bytes .../test_I_index.cpython-37-pytest-5.0.1.pyc | Bin 0 -> 2461 bytes ...test_K_rotations.cpython-37-pytest-5.0.1.pyc | Bin 0 -> 2500 bytes .../test_index.cpython-37-pytest-5.0.1.pyc | Bin 0 -> 2419 bytes .../test_one_left.cpython-37-pytest-5.0.1.pyc | Bin 0 -> 1676 bytes .../test_one_right.cpython-37-pytest-5.0.1.pyc | Bin 0 -> 1681 bytes .../test_two_right.cpython-37-pytest-5.0.1.pyc | Bin 0 -> 1683 bytes Rotation/complete_rotation_right.py | 2 +- .../test_same_array.cpython-37-pytest-5.0.1.pyc | Bin 0 -> 1693 bytes ...test_Kth_Largest.cpython-37-pytest-5.0.1.pyc | Bin 0 -> 1767 bytes ...est_Kth_Smallest.cpython-37-pytest-5.0.1.pyc | Bin 0 -> 1773 bytes .../test_Largest.cpython-37-pytest-5.0.1.pyc | Bin 0 -> 1733 bytes .../test_Smallest.cpython-37-pytest-5.0.1.pyc | Bin 0 -> 1751 bytes .../test_count.cpython-37-pytest-5.0.1.pyc | Bin 0 -> 2486 bytes ...econd_comparison.cpython-37-pytest-5.0.1.pyc | Bin 0 -> 2115 bytes .../test_41.cpython-37-pytest-5.0.1.pyc | Bin 0 -> 1659 bytes .../test_42.cpython-37-pytest-5.0.1.pyc | Bin 0 -> 1694 bytes .../test_43.cpython-37-pytest-5.0.1.pyc | Bin 0 -> 1690 bytes ...est_sum_of_Array.cpython-37-pytest-5.0.1.pyc | Bin 0 -> 1715 bytes .../test_X_in_array.cpython-37-pytest-5.0.1.pyc | Bin 0 -> 1734 bytes .../test_X_index.cpython-37-pytest-5.0.1.pyc | Bin 0 -> 1679 bytes 44 files changed, 21 insertions(+), 20 deletions(-) create mode 100644 .pytest_cache/v/cache/lastfailed create mode 100644 Copy of Array/__pycache__/copy.cpython-37.pyc create mode 100644 Copy of Array/__pycache__/test_copy.cpython-37-pytest-5.0.1.pyc create mode 100644 Count Repeated/__pycache__/test_count_repeated.cpython-37-pytest-5.0.1.pyc create mode 100644 Count Repeated/__pycache__/test_greater_count.cpython-37-pytest-5.0.1.pyc create mode 100644 Count Repeated/__pycache__/test_lesser_count.cpython-37-pytest-5.0.1.pyc create mode 100644 Duplicates/__pycache__/test_remove_duplicates.cpython-37-pytest-5.0.1.pyc create mode 100644 Identical/__pycache__/test_identical.cpython-37-pytest-5.0.1.pyc create mode 100644 Index and Value/__pycache__/test_dictionary.cpython-37-pytest-5.0.1.pyc create mode 100644 Lengthofarray/__pycache__/test_lengthofarray.cpython-37-pytest-5.0.1.pyc create mode 100644 Mean/__pycache__/test_mean.cpython-37-pytest-5.0.1.pyc create mode 100644 Min and Max/__pycache__/test_Pallindrome.cpython-37-pytest-5.0.1.pyc create mode 100644 Mode/__pycache__/test_Mode.cpython-37-pytest-5.0.1.pyc create mode 100644 Multiple Integers/__pycache__/test_repeated.cpython-37-pytest-5.0.1.pyc create mode 100644 Numbers/__pycache__/test_even_numbers.cpython-37-pytest-5.0.1.pyc create mode 100644 Numbers/__pycache__/test_odd_numbers.cpython-37-pytest-5.0.1.pyc create mode 100644 Numbers/__pycache__/test_prime.cpython-37-pytest-5.0.1.pyc create mode 100644 Numbers/__pycache__/test_square.cpython-37-pytest-5.0.1.pyc create mode 100644 Reverse of Array/__pycache__/test_reverse.cpython-37-pytest-5.0.1.pyc create mode 100644 Rotation/__pycache__/test_I_index.cpython-37-pytest-5.0.1.pyc create mode 100644 Rotation/__pycache__/test_K_rotations.cpython-37-pytest-5.0.1.pyc create mode 100644 Rotation/__pycache__/test_index.cpython-37-pytest-5.0.1.pyc create mode 100644 Rotation/__pycache__/test_one_left.cpython-37-pytest-5.0.1.pyc create mode 100644 Rotation/__pycache__/test_one_right.cpython-37-pytest-5.0.1.pyc create mode 100644 Rotation/__pycache__/test_two_right.cpython-37-pytest-5.0.1.pyc create mode 100644 Same Array/__pycache__/test_same_array.cpython-37-pytest-5.0.1.pyc create mode 100644 Smallest and Largest in Array/__pycache__/test_Kth_Largest.cpython-37-pytest-5.0.1.pyc create mode 100644 Smallest and Largest in Array/__pycache__/test_Kth_Smallest.cpython-37-pytest-5.0.1.pyc create mode 100644 Smallest and Largest in Array/__pycache__/test_Largest.cpython-37-pytest-5.0.1.pyc create mode 100644 Smallest and Largest in Array/__pycache__/test_Smallest.cpython-37-pytest-5.0.1.pyc create mode 100644 Smallest and Largest in Array/__pycache__/test_count.cpython-37-pytest-5.0.1.pyc create mode 100644 Smallest and Largest in Array/__pycache__/test_second_comparison.cpython-37-pytest-5.0.1.pyc create mode 100644 Subset/__pycache__/test_41.cpython-37-pytest-5.0.1.pyc create mode 100644 Subset/__pycache__/test_42.cpython-37-pytest-5.0.1.pyc create mode 100644 Subset/__pycache__/test_43.cpython-37-pytest-5.0.1.pyc create mode 100644 Sum_of_Array/__pycache__/test_sum_of_Array.cpython-37-pytest-5.0.1.pyc create mode 100644 X_in_given_array/__pycache__/test_X_in_array.cpython-37-pytest-5.0.1.pyc create mode 100644 X_index/__pycache__/test_X_index.cpython-37-pytest-5.0.1.pyc diff --git a/.pytest_cache/v/cache/lastfailed b/.pytest_cache/v/cache/lastfailed new file mode 100644 index 0000000..ce599f6 --- /dev/null +++ b/.pytest_cache/v/cache/lastfailed @@ -0,0 +1,3 @@ +{ + "Mode/test_Mode.py": true +} \ No newline at end of file diff --git a/.pytest_cache/v/cache/nodeids b/.pytest_cache/v/cache/nodeids index eebbbaa..58ddc90 100644 --- a/.pytest_cache/v/cache/nodeids +++ b/.pytest_cache/v/cache/nodeids @@ -19,8 +19,6 @@ "Mean/test_mean.py::test_mean", "Min and Max/test_Pallindrome.py::test_canassertTrue", "Min and Max/test_Pallindrome.py::test_pallindrome", - "Mode/test_Mode.py::test_canassertTrue", - "Mode/test_Mode.py::test_Mode", "Multiple Integers/test_repeated.py::test_canassertTrue", "Multiple Integers/test_repeated.py::test_isRepeated", "Numbers/test_even_numbers.py::test_canassertTrue", diff --git a/Copy of Array/__pycache__/copy.cpython-37.pyc b/Copy of Array/__pycache__/copy.cpython-37.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3e9e1b63a997b2bab9f7c36000cf78561669a19c GIT binary patch literal 566 zcmYjN&2G~`5T04viLu%U_0R(n)gF3iE<8YlP)nL3kg(JOs$`iT6A!6HvvzkK)I{ki zJVVdzv5&y3>?pM&ure`iRW{Ke5IeVM-6%lFBAZR;j~JwKwRHn~?F&d9V?txP_w zo4KsNNZ-!KTs>*#Hgv$f(8QcTgqUDY=q}^M)=0IaWqU$W&8D9jvYbw7N~$#j`P&H= zkN;g7-BGeqw=M&@*m%q8N%f8HTCy^WE!T6tZl0Td%NOpK%%}at``e&Wt&J+x%vy`7 z7HnrDU8o6Zx6drTH`H#`Hfl5r{CfUN9Y@7ar*%0yrDy)9J#NLxnh3>1u_k&V5q|+( Crj2L- literal 0 HcmV?d00001 diff --git a/Copy of Array/__pycache__/test_copy.cpython-37-pytest-5.0.1.pyc b/Copy of Array/__pycache__/test_copy.cpython-37-pytest-5.0.1.pyc new file mode 100644 index 0000000000000000000000000000000000000000..45f348c62bc9ba2e1e9eb611ea359b757c9aa2b1 GIT binary patch literal 1676 zcmd6n&5zqe6u@U}$8kQJO+VBYA(=`@SgKarr9}vJt1hKNfQVozLW(T8u4l5f*0HUb z2_-B0P|B4XM}#&9{DBmR8~b<>jm!ZvNrR6bihVr z$U3a6oU>L%Ry3toNNp<@-rJSEqA%$8;9o;z$f7rSB;a%;p!)h3OU0!+l#&Z|#Gi>& z@o!?0r};6=4xWJ;@$bqkO;UAwCpK;{=c}jO|2EDR+@BOVzv-75k0tjPFm5znek#q} zjnmJP55lh@z6?J;dN}!H^66pt5tk>bD8tW}N4zX#cql}?{Bi-Aq(v^n2SvH`ild$Tm-c|7OZ&C;Cb#p&=ofw$i&m$w2rwejKU%Ta00 zx{HT`G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ay05>FtJ5s6nA z(HG9{ZbVOp$ijA{!rk2vhdY1;1H{DyP&0lq(eosW97JUs#m-9*-EJVd9rew?QW~FA zDzR9a8t>o;Gb6ho%z8XYvJBCclQN$rQkWic@pztQIxQ5?T7rc#ugB_1InTH?jgPYO zagxQzv+SX>K8gW|sBK#I#W3_+`4(#525}j-o3DoLR%6qUcgJ$q2!z3GyyBg~%U9@~ zxNFp-p4)TTC1f4}IsnbPFb_eo^ApKUP?$H)UzvtHcoDW_^TL|;g~|kHI-4sQ!a~cS e^?4~md?Ta{lYN+%e4dGqFvAK1WPmPnnENk3apkfA literal 0 HcmV?d00001 diff --git a/Count Repeated/__pycache__/test_greater_count.cpython-37-pytest-5.0.1.pyc b/Count Repeated/__pycache__/test_greater_count.cpython-37-pytest-5.0.1.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d9bb6ac3da94df249288620fd3796900999aa340 GIT binary patch literal 1731 zcmd5+&5ImG6tC*fn$Kisqi7Ty140_Yve_ge;z~9#gcTfgO%R5GPN%D8w%MNUrmDv{ zOZUZi)w2f=J4bJx{Zs1TMG)p+$jSGrC&LO}1-q%&uitz1>eZ{?uO9Sz?OVm^Fm#x89<-q_<7w|^jGpF7-zFXQxU5_oHvOGYtD zd>j}ajE6832f=AgD#&rh`C+lFF(mcVFV#9``x>(E%G#6W-$O z(z$RevZ4unlhk(U!M|VGEBcat5Aii*hAKLvClYo?0;;cnxh#b$kCYO!JP|KsQi^XP znI+i_yuBBohT^*-P2!|HzZaP>@D0mTG5j`47h*WdGjVHJq#{ycxPWn^i5e!#_->p( zjX$0|h5Tyr_~g;(c=Y+veb5ddps=o(wLVT?J(fSQB+pAiBNFR-O47Re#;@B;eEIy?;M`2b0< zAE@Es;SkjW-~$6{ix?=Ty(lghQ5smtk$n^g|6tGEhCO$KzTSPjW#YVuWTF7;fGhO;z( z9;G2NTXr#74@DnD(9*8CI>!ES2DgBa@;dt70dbjpxBs1dcbb@niT4Z-8-eW5T|=GC zrWjb%yC8^tl{(b1yEeN-o@YQJpwCV4Lrv`UhUEKT&~LxKZW<0kyY^&r)9TjNr2UP} mv`W4Q6Ac?p&P%1?Wg$&{?2~!U7peFZ8?3NE1|(({v;PK);pi{` literal 0 HcmV?d00001 diff --git a/Count Repeated/__pycache__/test_lesser_count.cpython-37-pytest-5.0.1.pyc b/Count Repeated/__pycache__/test_lesser_count.cpython-37-pytest-5.0.1.pyc new file mode 100644 index 0000000000000000000000000000000000000000..42dc527ec267b4936a05bcf6553f6de04dba147f GIT binary patch literal 1725 zcmd5+&5Ptj6tBu>_2=&NsOTyf7X$+`%#OPvV#|)}q9fY4e zNG`5dJ$vvlee~wpKcx;{1flogW6wN+E@KEt&=?sN8|12&>&yu-Vd zbMDq;O;h?3Y3#~_f4{cZ^cnpg;v2{eRrDrD5_U&Is&9R{s)VZcl@hW#6i;PZiEm<= zr};5>2Twtb#CK(uCTVqcFE(M|3#tdy=5lo6)yd9L8h?NMIFmAU|L8^@J_SsSL z{_JbWuV$YdKAap(KHHytEYxXLl(R2ZhoUUhY+uTF^=Ju|q(!b~4~k`81>h2KCHM?0 zj52|XM+v%i%GCzj7TTI65OQ3|m1gra6M4K4+RM^hJ<=o7xdbXQ2X`cw!iCk;2n3-HVWbc5 z3jo6r84|e-)+=as;Kzqyp!pXloB{|byf$}^J%EzcfZkXYIj1$L>Dp>+fTn$FHBRjq z2tVd7_Y7>27%ulSXW=#;z}2f=&J2VBw7h2^?5IB~@7(A8+L=>6z+7`{?eJm6&O2*z z>ZzZ=->t1Rl|O^lLoK)Xkl(n9_{~HB;N|Zo0yK!Y!EgRz0U><8#YeSo$ib>UL=0+n zMGmML$gw@yAQCos{u|`y23vN)7judsHRt&Mq63~?XiHNoQbXd|h4i^K9*6X7gcR5f zRWKe0sO|w981Pyoz%T8^Nwti#&_agnqS*TfckZ^_xf>4k=<`b&F3MP@3V=TC9H^)@ zO9V}e^e$@HL)inNx1uD@vIyCe6gXArKC+qSHRfiLmcjCR%#>6<%1A%}#A^4#rcDWz<1{m}!mp4tzKWNsDZ0}gzxiV@0!e%-p kUx$f?i6-Z@%J80$rabn+qTtI+e2D#3SRexeGmF`O1L23}oB#j- literal 0 HcmV?d00001 diff --git a/Duplicates/__pycache__/test_remove_duplicates.cpython-37-pytest-5.0.1.pyc b/Duplicates/__pycache__/test_remove_duplicates.cpython-37-pytest-5.0.1.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1afd81cbbf567f10c27172c28a87c8968b0f0b72 GIT binary patch literal 1727 zcmd6n&5ImG6u_(cdp_5lO@hXQ!-8OgESt>-B5ufPf+%FrH9=S!+RjwXq}l$WsylI( z?n@%xym=IvIrZYMt1WFoT)jkrPMHxF;^Nm<{h9qhAr-VG zjzkt`bC?}G1vTW~7D+sf%d?x2c7wTb`IwKNL`lWRlRV?^kBfvyl8-AGyRFwamU?dY z?BVpo;3349!KcUfCZA0{KML-0d0OU0aDQ>ki(CdrLPU!%E660yGa1~iaK#8R3oyG- z@HBtIL$)#R6^k|2&Nr2Ze)C)`lsAhLo<%8FP7-H4%g=`Asl5AMvAE_-W#YqAm%~Eu zdJne;y9vuh!KJ_hR^GWy3KL(ucUspl5~>r*XvPIEgc`O5gJkaskqfmG&T^4PrLI+! zMYs*$Qa$)OY;)Mx;oG3v+0UH_hq63l80!e}Td%wj>M-G!(WJ$648fehkI5irxHgzk{ zn9UsBzR;?myNQ+B4Zu>{wZ%N$%Fw*5r(4;Sf0oYDW&PTmQ8vI>Gh=13Vd*V9D{|_{ zA7Q>*(-jpzgVsYWGuV)AZ9IO}9tL>)raeFdk1h7bPX>VDux&P~9Sw$@-?i+y$mBTr|)Z#^Iq)&qj#CzAwjz zhhtO^fC>))=hKoiz~LYJ-w zn%WMhQIY`Bg_!1P5ecsPNXerrPRclwz-|s6QoR|<$9a`7?HbOL{85yINVn)?!~u#S z2;kY)*N3=@rnf;{j`Ch^MC^h=z4h{{Y59X|VNbNTtm` RO89LotZYFY5zq9DzX6RA>B9g3 literal 0 HcmV?d00001 diff --git a/Identical/__pycache__/test_identical.cpython-37-pytest-5.0.1.pyc b/Identical/__pycache__/test_identical.cpython-37-pytest-5.0.1.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a8b6f60864315b8350b9c4f2035326a8e9f34564 GIT binary patch literal 1707 zcmd6nPj4JG6u|A7*%|L&l1*9x0%<8i>If92p+N`{loTpd1S=YfDn%;|)3rApWp-v{ zds{Y|xlpd$5#o@QxbPh~^C5hN%W~w{6YqI8t5o91fnE8{v;F-1{QQ2t)9tqY{PD?X zpAzy1x$<*BKZK^<1HlQWDLJ9`>r7pTP%`yS8nmAAPkioh_j_^@aE~|O%Q*dtg#HrN zlHnL7{yb*ngu7F^2 zS9-R5Q_grZrBkOuC>U?0?$oP%C{@2~@U|`A4)5}wEniRlr5hJMf2s5)ly9J~iL>zd zrVcLHf}Hv4Czx-R&VtHcKx?6vIee4%*A~B73n+H^yR`rfEc$%wX9r*i_%^>*1{Msa z+hEZt*%}Op8Nj$cT;laFLll^~_j0B;&0G~;|)#8Q|JLh)#pq&mqIpqhh)GA~E!aXw4AHH}Ww{85}n z2(#>ch^v&{`gh9St!--L_APL=KpxEYi*E~{4sQ^H8HIZg zcY|(F&+WME3O3&WJ^;?!Fb@&2%j3v5VZgj{`M%Wj!CSB+>lf8D*Fz>)joC!WH(;UV f(E7X*BEAmN#>qaM=6sflk1)Lo17v_NbC~-NA~f4I literal 0 HcmV?d00001 diff --git a/Index and Value/__pycache__/test_dictionary.cpython-37-pytest-5.0.1.pyc b/Index and Value/__pycache__/test_dictionary.cpython-37-pytest-5.0.1.pyc new file mode 100644 index 0000000000000000000000000000000000000000..10ef35a371668f5c8d12f7df17627ac2e40cafc9 GIT binary patch literal 1730 zcmd6nPjB2r6u@U}uh;uG%_bly9IQx4SgN8lvZ=T=0dGmhrL9f^T;g9>{ zk0~L)kxM@Z^jk30+aNgMG$SKwpU%{E2qjZ*)S&f@Kk~W5-EYaL$vxhHXTa$_68S6m zmJAb=`14@+Fg}E#I0#M`q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&nSnemUX Or4q~YfvUdc+kXQ)56r9p literal 0 HcmV?d00001 diff --git a/Min and Max/__pycache__/test_Pallindrome.cpython-37-pytest-5.0.1.pyc b/Min and Max/__pycache__/test_Pallindrome.cpython-37-pytest-5.0.1.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6b50d967cfc9c6bb406baf3c957aed99ce5fe14b GIT binary patch literal 1695 zcmd6n&u<(x6vyrPwX;8)Y+6KnK%+_sMyjGT{UL-1YJh@3$|{5+&}yZ@9edMJW@kpW zx9vu=7mBzc@dt3o-r&lA!i9qmTsY-l=!y3{X;>tV9N3lLys@93pY88wKIr#5-V+~YnxLr%XSac~ZE z$tXpOKMz^}?L%magW+^ZYRGXC%6BkBPG)pTA*;i^9M)Mnl+;d5x&H#!4tR@)KX}kb z)P%QrM|)>}O;$9cuaTvz19)%M?ux#k-$MKnGD8*J(IW}FBQZ5M4i{P|y|0vz`ba#J znHFC$S!BgAjP{>_n~3LCo~4;Sy~k`Aj79p1h@P^1E}~Ich+9#W3#LRghjz1xiZW%# zZk`^d?@qpi{A%*a(ZkWFqtEsy9|?7$%W874I1*K(*LE4VCYV!K+L$l0~}64e3ZM~JN7|9{*r2PMp0x-5Mu3|I7_#7 ztz^GOL0XxDB*71JZ{{xnirTL|-nNqM@GkFJ$-3%y9h|jzzjmjT4=~r%S$X`54$s;v zauTTTVZ2k*6_r1N*F~>z_!Yi!8S%4?a3JDW8v!0fZ1ByW8~`BTL%vl97KWDYK}5f9 zUBUo00}NM3=Sbl>N85Fm@&0sYDheURX?DI(vIDJsqOv zcVZRo?M3MBg8V~(SfpBT6R=dzSspux#15L>f539Lf#q&IFx~2J?8e^l5g3z}wmO-63bXi@yMIeD+P=){l z5v0Kl&VmAE^l=ZE2q0+43A*ZLtvRQ29s+%jApF1>J?vf}SP=|pL$FsZKu)h>UyASy z^`g&%1kdX2fij@ExdW~yqoI@ITMqXy0%fW`*VtX9-ugEU7Kls5kF?I8`n+C0ce@KY zg++_Ys_y#U=~#e2?~mo)?pWH3wf_Vg$bDrjld7B;i&O32Z<)?j0XlR#i b!m?6JWnNRfvr#3^5^c5#C2OQj5)zYN1|3@8 delta 84 zcmZo-{mNwF#LLUY00eAr;$p&>7#JRdI4}U@GdKWoF%OVPVMt+YVTfW#VG3r@WZu}t W$H?KQ$yfx^J=vE@iS;v(!2kdpHw=>i diff --git a/Mode/__pycache__/test_Mode.cpython-37-pytest-5.0.1.pyc b/Mode/__pycache__/test_Mode.cpython-37-pytest-5.0.1.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7531bfad18d8b5642e3765486e19c3a4739431e1 GIT binary patch literal 1615 zcmc&!-HRMW5by5!*xAo`cPdFhTmp&%a$L?tL_EnwgD7OtGoma5lgV`NWw`mGyVtnK z%!?7<1pfdZZr}9PKgNfC5J3>`U&xbHJ(uMK9|d=*nwskB>guZBZ|;uAgFpV7M>~{| zKgp#Z1N#n$dK(lcoaSUs?UNM_Ba{^G+@sx!KleG~&Ua+q<1Y8$8F2bJ3H@`}OJ*r* z{J9`L$Oj;bgW|L$4dgfpYOEZ0XJF#J~Hr0>C^y?&Fis`H>#hcSQ7l{(nCCH5~YMLp#cH{JJ z`fl_EvjV5DUBC!Qd3Z2EvX#010cUCT9SuHEjWG4Lf12(>NBEUqPIk(}J}CJFvanDclx- z-*}D7eG5wfCGT5UI_fv=o%wvwI19>$m}|k-E+6UMS+FK2zWN^4`wd-F`6E~Zv`WTD ze7uSH*+wvk_|-;$1rcLD`H2C@eSU?%(D)YcJw1eoQPbN19%=@_Z_Uo}y5~6b3*_4g zh1AaI{{%LUD|94|P9n%978=rL?BF1zr`rhTy--aL4yI`C1Fi$$qe!*j#!phcO!AN+ z*7s2D|APg$Iu_gt$Hqk>$vz%nn=n8NK`)1(%vPKxc^)I&)2gTwDa;7r{AiiwIx7{B ztbzz-uEy$dwamEUnqvE{bq zN~f?(roZ_jAb!<#P{f%~*BLm$CAdEX*aP5Sht;reg6CI|uY$u|d;T@(SOd)6mEBj* s^fxZkyYSiO$X8&a<&VvIsVd~Mw50{_6%}9R;(ctX!tw&3UBCk8ZxuPdSO5S3 literal 0 HcmV?d00001 diff --git a/Multiple Integers/__pycache__/test_repeated.cpython-37-pytest-5.0.1.pyc b/Multiple Integers/__pycache__/test_repeated.cpython-37-pytest-5.0.1.pyc new file mode 100644 index 0000000000000000000000000000000000000000..8256c5d0f02deb02c8315767961afb5262673caf GIT binary patch literal 1718 zcmd6n&5ImG6u_(cYid5TJG&8$f@46iL6*&$h=?1qYLpc+>L#KL1D(!P&7|3$?xw27 zI7|1%c-6B94?9P1p8Zqm;6)JTU&zV#s&|JKyb8`xuV24<_4?JT_p1-P-PXAK`S>m+ zhI$tSC!D5aMD5d=yAGjb?u~p}&jh1@JKX(&j2hhIK0Fzx4@nrTVJ#U> zP~y*n5y1EehTP&M63nhE0$}lTId=!0mCepOT(r~DzbPkOpqp-$nvw^MIvv$RV;6X%DDJo z=6Y1vJ@4V>U@wtg7D7opUc)YIO1k*kx>vhKu{6y{#Zv((NYks!1*zVbGM8p2n&xsI zYg?%}i*Xa7XWFnjs&m-4;p?E*TrW8ImB?-Q(2M_~M5b?xHi3lfu|1Lt;lsyN9|WNu zVWb29U1-8S=@GdD)=gtJ;iUn?Hs)WTaEk2+&Fpf27C3;JwnDQhp6%O`Vm; zw=_F%uE=SieuDW{>8z;y8MHQPnZvjE_QvBk>jCX9f43f>fyXxQ|Kb1+4Zg#7%Z5dR z=?-{wOSVA+at1W657$^DiD0g=2i8`@a(r^Zj6KSb+Qa-`A+ZZdhOV^vBOVeDFr+V> z!^4oC^$~;pPz??b2dEwZ5e(246Clb2@kB4;G<1-XeG~`(;OBPD&+V{h7$9pg9JPL744m5~nFT%1J&iVkt}q$#}9zfbvWMuQ_-q^Kzt~=8KeD*JzgJ zPvSH}qGbnzby4&{giYhy3&YTF+Iydk7bk$o`F`63l}vAPNqWWX+SnEN+xw&8vN literal 0 HcmV?d00001 diff --git a/Numbers/__pycache__/test_even_numbers.cpython-37-pytest-5.0.1.pyc b/Numbers/__pycache__/test_even_numbers.cpython-37-pytest-5.0.1.pyc new file mode 100644 index 0000000000000000000000000000000000000000..4e87df79be36329838b63b977b7358b8be7c4153 GIT binary patch literal 1706 zcmd5+&u`pB6rQoYUhhw`n-)RgU`0a05{lB$R#nwh4GSPPyWqhFE0UBkCz z5~IbR1H*;!F$~GTFuEi)J{EMRvep!&ua3&o{6l#&Z|%%6)y z@oyrLC;2JN4xWP>@)u>A#ECk;9T^zR`RXb6pG9fK{YjDY5BxIak>q{_W2Zs+i8OON z=a1rhv#%k)oPBzHH2G}u`QhvnF3(g^&K@m}d0EKWp%BsH%L*zGG)UapLH%U#n`C$KNB1W*#tN*q+dTd%2Ln-E{9*c^%U>P|EL#RVM(ue;w zAl{e^iP(nd6&XEvX~QsN{1Y5Tk%CBI=AODh9-tj~_L3@cL6K%lpki&ESxdXN4QZbs zAq`Q1l;C$#Cu=Q17Imw3Sl5uY$NFqwNNdaAm3z@vIdIrHa^uWT=>r!er1=XuQPtio1LDXbGwO1=x?EjdU0;7N7K6<%YsXR=c>I6n-n&_cJDW?K`3-5kl~yQUI;yG>I6AH5F!_PCz$6V4V5WTn1z_V z@8}+U9W*)YoA6CgV{Se;_=SjVSm?$7S{pqw1&bgPb5M^&$y>0B9DyLzAs*?&{|dC- zhzyC?0qbQedhpVQVOsG|P#DDq#P((G!iCl`ZwtGoikwqyvKkt(vQDkqu58n?kFgz1 zn?g&1-btLaRRa`Nt8!S^v}}*{*}$}{Eq_<;d7BL@drsMF7;A2=9JZyr^UjK#y7EVu z?^bk0#ZRF1P|GZ~#kMa!el;Ezc>HEOKm(6$Hu~8D09>}iu2impp{@GhF{s*?FhI@# z!_~y4Ic7Q-K*C;MXG3V%0bCRzH2zaQzEih$)PzXFdpT4jT4}E$z!sg%i z<@oS$jOqb!-~q`zQk-cwj8qvWzJ+Y;qd52nHMbjTZu>*s+u(27`{HjHMF$r}dPEn6 zDO(RTy&Xhhk_3oMl&3`~xb7noCuN+dIFkTs4jxip3*?i$Oqg*E7D;{*CIO->`WSJ5 zVh94@ZJ8@Vyosi_Kx{&G^S>dx)%Y~T-7&m10xPGt{(ZS%7s%@%h`mL-cGvbcczF!m z05Lwy`W@}P+=gu literal 0 HcmV?d00001 diff --git a/Numbers/__pycache__/test_prime.cpython-37-pytest-5.0.1.pyc b/Numbers/__pycache__/test_prime.cpython-37-pytest-5.0.1.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e0a786c519ad38b38609f9cb13a14fb923d5fd73 GIT binary patch literal 1671 zcmc&!OOG5i5Vrd@Jw1Zx`Ck{JDE}Z!($l?Z<`3pHw<=!ld#1Sdoa=BbCm&@hv^Lv9qF#ny;4k#gi zl1rZj`T;cg76?Wd&B&CR-pXx@P?9@Sm$ozB)MFO2zbDfUbC?Ug&*(!EdK*|vCJ9RX z9B3Z2_n}D!g3%ReAjXL=-o^+S$?1whREs$o?6a~cX{?4a_bKk}u@3WpbihXBjCEO{ zoHMr}YnsxR$jVk8j603Jrcdd2;J<>%kVS9uNWkexNcD}+mWoStC?yx_h(8gj;$Oz1 zNQ(u`4xWG-@o%dvO;UAwFE(y4H&&1N_?tMZ`FK(m{Ecyy@mTV44ee&@HBP0OyLtLy za)0&(#Fw*=jvh=to_umR`+&<6RaUc4mq)xRq^nWSYQXOlWVMt@8#szjRe zooczkLWQ>WlUVUZDVExwrx`EeoNF&j3tp6`!}Gmw-L95*LaA-+e0@Et%rSTHJdl2* zmKB!*Z&dr|HYscz1_!Nc6bs#rWIX4BS3(cl3PE-cgeZmHj^?GvV`YjH7cu4?I=Tm| zqc(?K6TS^<%m-9%}+=cjZ1cFe9_@od2HGtZP42jqV z>jnIL7<8Z+`27V6qX;^L?7{`G;K*IrE2_vDMOdu>dX05rt?b4&ApHs&C0P-FivF*k)@b9QTcnq4(1^gjrfd940rUz%; zV3{^u5CUnqK{TAx!dzWQ&E>sl)Z;ydw!mZsGC<&kh4h)VzaP@m5h8szl;i#VF{*n2 zdLIbO6UCYK;zZSP7FtMzT@-u&qR8ErB6q`~9vGTMMa#TtuN}t7OJQnc$`fD$$P{Ny@y61=oFKz;T^sDlH`NvIGyQUykJCvd)-sjTTvX9A^ENGN1o190GO>p=umjt_M31k5CP0we zFdKHY|NIQ%buj2xp1&Y1%Yf}WqJ1rO_rjz*=QdLv@fs{Nd^0gGrG@+#CO7|`ykvF8 Q-^H3rOwR|J`j&714Zs1>mH+?% literal 0 HcmV?d00001 diff --git a/Numbers/__pycache__/test_square.cpython-37-pytest-5.0.1.pyc b/Numbers/__pycache__/test_square.cpython-37-pytest-5.0.1.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2924b1bcd84297937df36d1c3fc3e14a737d2dbd GIT binary patch literal 1675 zcmc&!&yUKks2T6@ zuJ$fk6TpRKe|`dBF;^@(^a6D_`q zWR_$Lm>oO@H55;ZG>H>^emAmiFgMnZ#Q57NEyZ|}XX1@=2PgL@A5T6xo_!?Lna+#Zr>hfD zkreyIYJ-&uT*Kl>i$yM1hRu^yWYJO>KTR@`<>$l8&0oJ&tZoO&xY#lCLRi>y?&ED`wymu4@V=W-coTb(G2F!8`M zJy;z!IULyVO;BrY799RUf1S z0_YhqR>WFx<43VBqcm`k2nQ$*|3Q&E4Mpw*L(?sUoWm;M+jQq|9cTd5l(tN^LS0M& znId~2%x)M*X&NF&;(S>EQ%xT^a9Sp*PBI0|%)vvMmqPU@FH>$^!$q2(MrnxLm3<60 zKrsXXY;D=+K;A&pDH-x4iHL5CkXDggH#6B<>%`WK z(~^~QpsY)_`dOW6(o)vNHovSZ{9q=dGkK=aj)0@b0kN% zIAg!Fjh_SkE{1*&LNLKIcFgV5nYs?+Z0a31cs=7E`@#|K_w2YSJkh{25c~m){596H z;g}@-JPaS>6AUdN1YfcWF-`;ZK1ImblrK4=I>O8Fou$KB8JBf9}Tv$Gl;nO6W%W#;_e=zzQ@%8AlqkF^8hhH3yK9%~k%!|>Niz8X&dUU8%vbaA-CTTv?qa*ng?lR0L zp`95~j9(wUs)XZ?#b-hQW8+>Eqw=@FP$ z;==BDm$rtT#O0!pTG8Q};KHVrORw#_wQHOx(~5O6kxCZI^y^|F(R)he%Iw6GTuqbG z)+w1Kw1vns9juP)9QJJZI;b_*3-*6uY8xMV@!uE73~a^5NXH)8Lp7HTd`b@>824Df zy7*s30}fc9sU27^n=-&l6T>#;Ur+?6R-{H2{)vw!@}YUKID+Gym+YKV(=E}Mm2>JW z-O9BsJb_2kwk=u|dXRb3#uAWJjmi@(+rn+p5nbEDuKuI+&zquGxf3q>6l>zFJaMHA z&RZ*X>gyjd->&$ItDm8DNSit0irBjJ_|PC|MJvYif{n3nJq7H1VJ&`5!SsM;p0{j#&{Oiq0_NFPwve zh@TCJgS|+H2L~ak`#>T9*>YS;Vf?dHF;cB}TO!MkIzs|8ifbT{u8I(>Z&g1K9K z%Wb>C1}%?34S2bM*{EfLm%C7J!C+p0dAHQi;U3sk^_6N`mnPG^u-W>k5DP7SHs(fR bbTcTMUGU*F7xPShL{-(4UI1zXCvg7;l3m`N literal 0 HcmV?d00001 diff --git a/Rotation/__pycache__/test_I_index.cpython-37-pytest-5.0.1.pyc b/Rotation/__pycache__/test_I_index.cpython-37-pytest-5.0.1.pyc new file mode 100644 index 0000000000000000000000000000000000000000..5ae9809931d61b4f9bfd228a719e25350efeeced GIT binary patch literal 2461 zcmdUx&u<$=6vt=wmuLN}iPM%+ewjd_3n-+aMFq6ZGe*1Vk`&u`w$d_OyWuhFQ!`D@z$ z#3JN(vhaa6xei5r2!<0*6VjvRX^m`)P%?6QE+yRJ_V=XcnUPAb!X55Ho0+!X^SQ?> z(5`a&B?;IZVv)`OEq)v*9+dZ?C=Q0x87W}4eJ0<+$O#$I88x#w3CugQC@HLha`z7A z0{h13#h*M`7{?Q z-%?7*yen?WI2T_>GL6$+7;W5wYA9}xlXwv42iGFw24n4fPqe>{l8I<{vQ)g*9w#DF zqCJ7KT6(o(WyV$ywg+$bzk>Lx|55iwXS?(9R{sN`_VaAq|7_Y7<4pCpq>QF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~YlVf<$v$3PQsbP>io=!DN1j(&rV zI~?^2K#>g; zp;JRh&QOi7EIht99>~y-#v^BFh1cf{0ZsqG&{|8b!>VUS4Jb>4k9-hn_a!;cVPbzL zM?Pv2z85-o6z5y=30&cmVD3gnHZed=*O!rrMK{$R5QCL}1V%oML7zc$9?i38?j}HD z;_?ET1p(5>CZ1k7ea~a<1vGfwEGfOdtaQu;L(GL<1EJUME%a^h^2>ny99)y5e)zAO zHNW)We%zG#KNGsR=+fT2&m0Nn>XA=jQV5TH5e-IPO4OumxMZ*P6F!Q?Yj~t6+z192 L7%MP~)tU7t-YJrq literal 0 HcmV?d00001 diff --git a/Rotation/__pycache__/test_index.cpython-37-pytest-5.0.1.pyc b/Rotation/__pycache__/test_index.cpython-37-pytest-5.0.1.pyc new file mode 100644 index 0000000000000000000000000000000000000000..cf16514a206a074bafa3afc9ca796b3381a775e3 GIT binary patch literal 2419 zcmds2&yO256t-t3iSu)Jvr7f#S6C=?Bv@^iRziqHU7%F0AcC+66h#`Qv6CI`WG1p5 z+N>rQint;12XNTj;L4pVe*y;|xNyq9&=c=@wjsbu<$wetk>5PqZ=Szrf8Y46dcE?~ zk4f*)A>>!G@`FCP4o$rah7(R>(xvw4j9iCMGV;0wO1Q(_FG;s(XG+}?_jm#N%=XLO zGB5HH^edcxM0~b@T%_Gci$4!q5!&0(6bHlUjAXFdF_W)h=9rA=jM`Pa7}lLRlw?ju zdEq`{f!v&Z?ZFsPJznM&?VT1fGN%!}KxVEkLcf%`b9$eC0r4})3@EDYLrGyVpPGvw zOtnz@Kq(=0N8FW>7N3MNiIO4A*6)HFhPPzIT4=*yuBDGe>+>+4h*mpI#LKO5 zEJ7t(6KLCcR4Y<;Zu{hB|MlL-kYDv~c5bw9wQnEv-Vy3pr{muH(~cOYs&^n|IQ?(} zNTM`Ry-un_^m>Rbh!QUD?Tn`j+%4ZVtRHGIOy$(DK@^K590^m5qeLX>N#ktsOP9yf zE50%=KA3qd7~48`upq!6=;>G}iAQYM*_e_pb}QHO&>)ni9H?+0q!>%n$hQbU-Ht+Tr|#z3++KfQ26XQ`=&ic9;49!XD3|oCvH$ zHNg<-5k_k8-vY8VNrT8u7+n&OL8k=G67UyrI7QkaiH8NCi!-B|oKmFJ3}}}*$Ii^n zTuabTk$#qxKtS+W?2QUDkVICuVB8C(K(ghfLBE?arhcvUq*aqBOHkM!A5`w5$k;8TL#NrOehb|_AUp%LioO=y6vMurgt70S2zJrz{XrgAb9r3#8>VU{7RYFLq`TD) zK7w1QI$6d=Q6{p22DeRC!I+JpAI5Qj+UTdFaVUkUA@}c0qF6_X0!5|}q0HlfI!Y%o zx1qr>PVam=d0<}JSLacH7l&#AoLM88HmK)TT(+W)&p;)h4 literal 0 HcmV?d00001 diff --git a/Rotation/__pycache__/test_one_left.cpython-37-pytest-5.0.1.pyc b/Rotation/__pycache__/test_one_left.cpython-37-pytest-5.0.1.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7b8c1c1da4652b75bf60d0b0862f974b561bce5f GIT binary patch literal 1676 zcmd5+Pmdcl6t`z46X$Ptvn_(cAzBHEk9-^b*RYn1 z#whU%poP#rg{C6;M7&B|ZV7xYK)UqWQaqBDA=;B+LS_WIWgBeXfvS}1cYo~z7= z?^Bg$`6>G*89wSt{pZI4W}S;jok<)nYh@wp)7*GwtSf z&mNBN#NR=D9e;lOVD!c4;ZgjV&{I>C@t2EZQ5HHrQYu}1GlxvFBG>V8VN%p$%q@Wp z5-BETuUxFLSdnkpI5pz5Pz%c@nG|_C6E>7tF7o26f3g4jAC!w5k+wc|%w9`Mcho&R z6C5Eii&AKXw`$piO)DRV?R&Lrk}BIubUG1Al*;z&DnVWklq!_nNhXDwrN$K~&0WS( zU^}onsdLzO;p?EzTrW8Iji_zd=+%E%89Q*b8bcoLk{+qKXuuwN0D{nfFw%wpDnM>P z`b6!3bpt~NgC;Zw!@oh{6v2nk<>6@vu-S|_g)uec93Z!%OMqhKO}(XG`3|%bSkaVp z<}Cq~pfl;uf+f(RYE%JlIncIwhj$%lef^hdoQJ$u`4h_f7;ECK0)E9b&)JGhL;VZP zw<@}#>Q~U(sO28N!nZaazdH{PJpOPVpn=C0-+t)<1wuaHJ5}iD&@>(J=vK`Q9Uy0* z!`0Cm55I1qKs>CGmX0B7EMY|5HA08z_&=}!?=A%_Mm@{Ex?rBd($rXPqlR@*9T0Xq z8K+Vv$d7R`D^n$G7xDjOo=KDC8dzC?hqiAg`e`wj+_@&FvUrlp1bM5v7_5h)4+5Cl zaIb-S7ftVhxXh><|IVn7YM+{3w;Z`@ft9koH=Yp$yS@&B_*-<#Z~N>LHy#5=fE^Lc zMlH);A4Bbe!M^kQ38^Ut55bM_qqtW94 literal 0 HcmV?d00001 diff --git a/Rotation/__pycache__/test_one_right.cpython-37-pytest-5.0.1.pyc b/Rotation/__pycache__/test_one_right.cpython-37-pytest-5.0.1.pyc new file mode 100644 index 0000000000000000000000000000000000000000..74567a1b1f6a97c6f00ce4283b9e9907044af0e0 GIT binary patch literal 1681 zcmd5+PjBQj6t|O1lKH#sbV0Ci7*#?d5~{jo7a>GfTVRC%F+g__QWYs=W6w02{FCir znJT%kT)A;XsB`2CaOQLP2wXgD4MJUOglMZcX+!L2s%>JI7c+6oP=zT^XlEB@-S~5*g z;^#nfp}h}HG7yY5q=py^U%ZVGGLqAVLR5=68SK+ol+;#DS?4M4?J|$~KR93`GGtxW zQ_gv(CTp6~7fE9)7sg&~ujy0z9r!m88M5e49|<@e38=pH`ATuAj-=#59rGt5Rs5@1 z6lpPs+2IpVBmQlbrAeyJ?#9Lq<|gWtPriw>C7(>og1<4TG9F7lSwh=wy(XzNbGv7s zB=3Y@LVOv1c>G}c(e&e^@B=Ovs;t6KSI4|6Wq2e+y!v7ZnWSYQ!{buLsD+qY1RF#m zou8_`YPG>?1-AB+Sn+u&R@$GX8870TYd1>^UX*8}iv(VKy;|K4q_(m1^$SsD&bo(( zf-^*FRdFfsTD5;+lfuSf?|$nV#X@%@8PB-jmC&QMOpw?EAxfclqFE{OSeXjNg-JPZ zbRSknZ4Ub;d>ho5+XV-|5U~v#J^L?9qsOLN2_#~!>5*9S4s0UFAP9AcPX_Sc1kjDi zh=?7qUIEdEfd|b1@h?yqMff3jnLBp@IPO0d7*j>g0d#BH02pg)VKsJb8`#cZg_qIX zY5PXC8E1io)YwOH@EmFGw4}Kc40ZRjOY#XUP7CKAYFG);2cfs4 zB+jx3DUy_V6$`EhNP)-8G*f9IftV$DNc~bIPs?S-jB7N{%ExgQA$7$7gAGxPKmb`g z=0y;%py^c**GYBz-%0gm>(esquHjcJuvB{V{8NH>m$yI=dy8(_J=?!VkFS9yK#%}t zgRb^3&mnffpkKaxMp~A^W3VUMcT;z-OxnA!nF@&sEHr#GF|VbDkAN`w`S0c>TW0(o O)>UG9KG4*+eEV;fEYzw1 literal 0 HcmV?d00001 diff --git a/Rotation/__pycache__/test_two_right.cpython-37-pytest-5.0.1.pyc b/Rotation/__pycache__/test_two_right.cpython-37-pytest-5.0.1.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3d9b64d7c1ab41b8d851aaf187dc1e9c87072fd8 GIT binary patch literal 1683 zcmd5+&yU+g6rQmi+xg|PS*V~O5h@|oQnlJH+p0oc)CDR8hzOQNNKqu$>zQP&IJPx2 zVadw5P_9Uv5r@r@D`)~>rKyfq!| zQ$qeC*M1i0k739MAQ)jZBSUItYi3)7l9@AX(0auky3Atsk7VdEhc#gK8U31s?i%)z zL4p#04h$E@M=&Goh2l~jO38&f;%6dN z{M%UMX+D9~?ir{N|Gv!9Bvt44W8(&EeRazF-^JOS_XkDJ@Ak`#$CCHwFmBgg{ZyK@ z+vlGr?~lHL_;U2g(UZZagU=2}A9FcXMLGInam33)jt+&07hlaGleEa?=%`RJY9q`o zQfEaZ(#fgXDHm(3R%mNKi4~s|Vxj$Un(;iIaqVVl&hz3txJ=;PJLTeDD7B4~uV0Hw zbJrcb6x<FXI$#~2KFNF^3GC^WbgeZjGj>d(U#mZDD z&P~dpqua1Ms&m*i;p?ErTyNO>jfgEc==sYmjqaIhC6I_|)3KQI1{@-LAP9AcPde~_ z6+qV`0TJ6^-2l;t4-bX`;@_Y!itt15P8t9km}?7sQAI8&f@}#utgNZEv@6>{_5^mg z2BrW>(7nu=HI_h%s!=)2H;@I8vbKS&E&o*Rg~vLTJ*KRSvBuWQVS(~5nkzDO<8xIRS{xBY(fyWK@%C8m>z-3#kSGk4^p6Y-{xAHb*fSiF0 z+k-V;evOSctXLy8)(DG`n)bnji~kGwV=qHnU|$7NL15ED`rJA=2X z)jdGJ5A@}U;!L}7qULcHTF8i96niglWxwXiei-QHhI7N_@fH0<6A#3~h!zS{u{LOW zD@x)li;yHqF)L%ibq7gsGEXy=<`Sq`fQQttNAk3oXUw=pldL$2vk1v6IvBBwA^-t& zZJ0Mf+(OfvAgLsIh$o`W4xznr?cF=_A8Ca^-{Z4}5j6Z2YX_zVb>pZ{o9uzAKm Pz`9CI&j+IVmT&(H%0t(J literal 0 HcmV?d00001 diff --git a/Rotation/complete_rotation_right.py b/Rotation/complete_rotation_right.py index cd13436..0aa761d 100644 --- a/Rotation/complete_rotation_right.py +++ b/Rotation/complete_rotation_right.py @@ -15,4 +15,4 @@ def complete_rotation_right(Array): return Array Array=[1,2,3,4,5] -print complete_rotation_right(Array) \ No newline at end of file +print(complete_rotation_right(Array)) \ No newline at end of file diff --git a/Same Array/__pycache__/test_same_array.cpython-37-pytest-5.0.1.pyc b/Same Array/__pycache__/test_same_array.cpython-37-pytest-5.0.1.pyc new file mode 100644 index 0000000000000000000000000000000000000000..244aa48e78e41d6b8f95a55828d5aa9656f8ad6d GIT binary patch literal 1693 zcmd6nL66%+6o6-J$DSlk+Re5V6eL0=BrKuT?$RQJx~N;IP?3mWTZ9xvb=}NlYpr8j zGn1CA>w&^BX`dHkU7FB+`06`d*j{hB5~wEqIrIP^XAQ)H}CV^UawRA^=Ps~ z3HgIu_&K28fuTME!3n1s8B_ao=B`61nS0|FZD#zj&mHdmNX7y8cnhA4(+4E-*RYn1 zrYP~}!SG>x219WWoYtg*7)MNgj1e+2r!|GB4)-$Hr*N9pP+DxO~}1N4_fE74((Svnw-#zRCMLkF0`b3z!@E4Rt?Q}ZwSN-uUggaw?_;c)v-0>Q%}&}Ya^$O@ zVZKv2D=J@t)nc@%Gn9#~Q0~28zAJh}vuXzi@z87r7E|S0WP9uKhhw<9&& z+Z&>~3m7m!SxmLy#!setkz|pBXl$d{{RcER8)$AuebaeO-#EChEQ}Is(=>JmH7uI! zf-oELG|93UVVM^5GLgcB2*Z;_n&~uGfM@|8%DfS)r^O=U)-^uNiYG}HBg8VqU_BIl z5K-IEeM9fc>u7lk#6`Mx{++H58=nTXTNboNAO$A0h@2h;FI~M2g18|Kspp0+y8y{! zfCVs#U>-7IXUCB5g2B9b_C0A>1NOIM^9?oabCU^9ZMH!29aw0ovoSBEhF=3|^JBN? T1z%+1Q!J~(1R21}9OnKFqr=#c literal 0 HcmV?d00001 diff --git a/Smallest and Largest in Array/__pycache__/test_Kth_Largest.cpython-37-pytest-5.0.1.pyc b/Smallest and Largest in Array/__pycache__/test_Kth_Largest.cpython-37-pytest-5.0.1.pyc new file mode 100644 index 0000000000000000000000000000000000000000..766b6810c4795d202f5bb54ae665c35b839d3255 GIT binary patch literal 1767 zcmd6nPmdcl6u|A7$;{+0yV({20%<5h>Ik&jE-gZcMO|oxXd!}aE2JpW)Ehh5(N1PY zwnNEka-m$|%z?w^1~<-p20nogT#%6R6?)=5Pr6zp&WJ>Q^K3sqKR>^pKk9Z{Ki~U( zbcYi1C%N=9=6N1kVsfd+<=g=}1h?D_<}CfSQPJ$}AnH`s^07W-u4&6A^vQvbl%`MK0cs%1kgNqB*o{wN;cV zJ9q8uc>Mn85%^c5Pmb;mJ{{aU9NiJ>R2Svw^Tm-U3pF~Fk}bZRLnLXDtI>lQ%QEOh zEa%Z@Oiocx^T?WwFyQ3AK1nt+yX9hyNsL_+j+qwILM}`=Ni&hNnJ|8q<{~f7dYic3 zyk0JD#LBq%3C-1{v?#!Yd#MlQ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qlYa0R!gc%~Mnp3D3r^tlwnQ sx*Rgii!qxe`8q7LY+9dJV#9|-+5m$OW(A*T;zP`>!T$QLX?ZN0K zCFC!%^>aYK14F$If)h@2a!T#&%v^_1GV@M-+N=bp0e86j9XSoT$9IUai-62GwTLxv3?}tuUS49@vtn!^|;CfQzD+j*lWDvOxd-) z^DoD5jy{9%-i+lre8jBa z@kdNfQO}Clx{Wa5bYtDG7He!^;+km8w3wE1VWLTvi-OIB3G%EEMS0%eEdVmPUD&~XI1mECDr7DA^?{F(%Lz5mTv7@ zIDY}2frT)@74$IoX8sZgQ~R~YBMWB$Fz;A6yXp@eT!g$^yA#TL7;ECJJl@yQMQcUQ z0`)ztw`;nh@<-4*s1*+H^DCDgKU)t6Jbtwvpn=B~e)T5@$Pw@zKBxmrlu&oUqgRKQ zM1h=vD7(WomTSqfM#ii=C=eeBwf6`U!sGu+4ZPIEm3YAtX(F+lgg$kSjuLu4Ksp>G zDn2@jQ9T4^M8I}2)`FXWjrE-6iGyr8KymmF9^GnqbSvqbaKlD(b)%$Nky^6K7M_X? zlWi2(EQw7tJLwomo+69J<*Z^-m@cy9;XKQARw&?Z2_DM4n5swRJm=Omo#y33mZ!*W z*~MTz6nzlDXTLe~8k$}PvCX?1|IWLcjZZ_u+m?cjz}A`W_FIGKR~VbPed@VwH`*f0 zS3nw|O9HD&%S6wrkb7V-FFku_8qUF+urHgp*0e57CfwL;f8;B$(X!9R+)4~z32C#7 W-kOzso{P7!s|wSLfV7blxqkz#V(HBQ literal 0 HcmV?d00001 diff --git a/Smallest and Largest in Array/__pycache__/test_Smallest.cpython-37-pytest-5.0.1.pyc b/Smallest and Largest in Array/__pycache__/test_Smallest.cpython-37-pytest-5.0.1.pyc new file mode 100644 index 0000000000000000000000000000000000000000..09a6e010fc34814a07fc2e5108b91a526e79d29f GIT binary patch literal 1751 zcmd6nPmdcl6u|A7$z<}EO}0f)fizSgF)CVZm$s@9L0zCiAc$bwswj#ybz>(T?PO+T zJ1tpFE|dcoE}S`Rj&SCaa6&#IamrWdiT6C4)mGw)L?XX=wx6G$pWn|PcRJ0de|$S0 zP(uDD7k&=tcc7_TAUNSPB_nFT&fIkfC3A07qt%Q*^0~v^AIPZAJzj%v!09~_`5RbE zh7*+d^Pu_AK7pn<2u@d|1RuwNyp0}GGN&sFULEeGu+Pe&q;yKkYtM0SpVxWtlLuo& zjd_DNwRc)8$(kngRkCum5B+-SuIY37J=m|nGeprE-j{GX5>a#I>!lV-A1WoJJ`&Gl zqQyfdvm~3rZ08xMvG}e?lS!gaZZc~IbD@4B!lx`4D}=nt=Sj@j<+Uz#d3ogj9e2;m=?2KE=@2^QjxK_Fn*e3BFj&@XF5c?QG<Qub{7~v-bFo z4o(|ua_p-gVZK??HI+Yu)LJt0YH4d%P*C_g{7|B zV9_b-=deJ`0L$g!1`oYKR5uM2SREV8*ro;Ij3j%h5w+L)zXb(vIC3S%E)g1uR~gY4 z&R`JHlRm<+AE|IK2vI!%P6B{mOtj#}XA`|(Y2+X~`zQ`xqUuIP)s3iYf-Rh;x7Fe# zi!HqpQ&KO3_Nl5fF6OQZF9 dAu@b6qzy0laGvu;Dn7!rDhw|Ghyy2Z{{h2N?)Crx literal 0 HcmV?d00001 diff --git a/Smallest and Largest in Array/__pycache__/test_count.cpython-37-pytest-5.0.1.pyc b/Smallest and Largest in Array/__pycache__/test_count.cpython-37-pytest-5.0.1.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e5a1ebd0007d0664868a33e749f7c4d1222ccea4 GIT binary patch literal 2486 zcmds(&u`pB6vt<5uh;vt%_c3h{4#;k8c>vmRzirN251ooR*)8fB1^{InN6*D?bRDE zWh3u}azf(9kwf-~)H8p~9O0BJ$DVj^ya}NSf(uf`uKYYd-afy1^Zj`C-AN|B|3Hv*?;|WL9@ZJ!v zsN=mU_-z(=hZu|X2W08v;N{}=9$reI5q!o=ltTH^uLbNiS+w9!o_D%=8yr=LwQ zlO)enczYD5DR%rg6aL3B>{2_)eB%~U!qFg~WX0N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hg?j{PG&~7 zLz~qM2bL?}09BhCd<)J$m5JVKao+LySxUy&*=jacxzZo zh7*+dxzIdlpF&d{1g9k_AjXL=Kg0+LnbVR&RL0!|_9+=91uH18o#EaduXF!r7i>h0 zd4o5#dtNKZipKO6Qaaj$alLR>^o;%p{v||)ELy{d5>7_~YF_(tsfE%9N(rft#A6w2 z@l7PtIGw?4=P{_Ec#J&_`%{>2|dQl z!oA(?e7VLV1&;A2kruN|E{#8p6Ol%9VZ059|WN;@kty0YXGr6 z=@PjG)=StmU{Hrd}p2B>qU@Izr1+9%*%J@~@yY%?odH}fPAJzjj@aXaWFATt6=Ue<*QMW|! zbq74Ug?~u|$Qg)meYp1F^lQBRH8MgXA=g+QOOQ39B%t;-p+mR-lLUB&fg|ynB@#m7 z9R~C{+usl9X&-^V6R5%d{s7fo;D8U@6%#GE@uG=dL`lGq7dt3+Ut-K&#hAU|igAE@ zrhYHw@kFRmyCP!rCE0P5gh*uB#$X*3T@XRT)a=)|HXOaTVOD+zIa?J62e2U xEvrY=G%ii1eqpnfl5fI7OGg`XBR_l^q)pQQc%Jb^B0jS1{sA~r)baoT literal 0 HcmV?d00001 diff --git a/Subset/__pycache__/test_43.cpython-37-pytest-5.0.1.pyc b/Subset/__pycache__/test_43.cpython-37-pytest-5.0.1.pyc new file mode 100644 index 0000000000000000000000000000000000000000..53534353c6f12976ca6dddf3d21441a7b97664e6 GIT binary patch literal 1690 zcmc&!Pm3Hy6tC*;>8bg<+1V&DdKeZ2Tf(y0Y(&JBY)lXZ2i?R!35-J zjd7N45Z9~UKxF2o-@>!t7pSYJxp?%DlkZhemKAaooS|O7diCnntM`7ty5H$Em*4#{ zdO!*JlU(^Zpx=X`-T}c0rwJKS`*minLnxVf!y2tt{Grbs?*2fAb?)&Rd>N;YNZ_ww zFByzc;?INO!}t(};vhIJNdYm=n0yx_BxFWQ3Q-;IC2&sZP*OMr<+Teu+vj!8e)Pab z)QC5DQ+vx=K~^-TuaeT$KFsTdyP_BLd+;wIGGx&jJeF`f5>RvVvxOE)A1fuKJ`vAk zti@N6OyhJ4tDR?{hT_{iiN~=%zZ+RMSnKPjqW?{l%te2YrQ%jUPei0de-2}}^6JOR zuI--RAHO&H0^+ODM<)*l9}hk`9z781OlSG%)5VF%Gc`JvGFp5-hfLxuRij7qQzi5W zGYb#z?B$C!7AbHI8%J79Gr2Hq5+@>!X2SSMoQgC%?{3b0^R0YwJ5a{O4>PZXxxL~Z z-UU(*^&%HaVmA%j*pzf}+Pqh}hLJRlP(>3VMJ`RZst#oKP|8f2op6%LS)^@YqBO#s z1JATzcUa}HZ^KtXt-0E8@GFtqaM1JrpdzMct22i4ZBri0xu`*G)dNAOM;K|t|2jad zN4iArfb|k~4VctnSlImy3a1D*?oB;_NUfwAE$-C0KnO_xqV3c7Mi7hvd~ zIi**47OpvhF>z;Ji6rnjOKLN}^Z}ZFQR58@*CucAwuP&w{?hd&fyXtz{gVUWuk#+?De9I8 zOn1PeTd+$aK+Zsf>w`6e+pn?vYh;8(Lawnq8-mzI2Gq9l|HMDGFK{JxSRxlBwlAR1 zoui|Gp7#**`+@2o9raN?0QfVYtr%;;jUSEmJW2uwDY1{@;9q1ptjKa0Y#A45XZ$ab z*lO6RXc$&gX{&;?kxdj>GuZ-Rw!?9hBq4HToXzq`3e!d|oX+D!$EgB_X5gXBjZi(! z<_Wj1;WWukqa;KQ%QgnKmIamF&YtOGO*=N`m+-NSh^lf0priB0j(Z+XNXfm^sY-2d2~1)Bpeg literal 0 HcmV?d00001 diff --git a/Sum_of_Array/__pycache__/test_sum_of_Array.cpython-37-pytest-5.0.1.pyc b/Sum_of_Array/__pycache__/test_sum_of_Array.cpython-37-pytest-5.0.1.pyc new file mode 100644 index 0000000000000000000000000000000000000000..68a874fa25e9a6403e0b6c069c29ea1a3185b6d1 GIT binary patch literal 1715 zcmd6n&5ImG6u_&xd%Al*-I-0qL=Vk^V1q21H3>mn$wq@HIOrxp7#iBnRL!Q@{-UbJ zI7|1%c<|!Ivxl972R-}8NSy>v^DpG&d)1p|1h0ZK)a%!;UcG+x>iz1$aM%lec@jOK zg#1OeeirEWVaU567-2LcGishzZd-(s+?jP~JLAq=W-U^nFeC%PXhUjueR6p1^o{E8;A^9^rw#n?2d#~-~3{wxKzhda-mN6bCD|k zRU(SCIEC5ab5LXcZIz|-RGr^Rj2p}a>KPBdNwOsmre(q34XTVMk_Sr|d#zWHN;9{2 zelmYQdIIrf^vTJ?>8I1rj-!vcJX2*AeZD&3RVkxmA(GXXOUNWG3mH9H=5e`*jWxpj zV!376uT~o@T4-y3o+y4=ik0>kX~v5r=i1HEf*0la=rWJD->Fu&LaA+h`1*QWnJw?* z-e4=ST2)*MJYDTy+N7}YwRgXDjT51}u}l_R@Ji@WTP?`+p%A6eyYZqFd7@0Ak|M!9 zgpTgR>bT9}z=Usu8gskg@K++n@S&IgL51|h)NKy=m_vIkmb?Ssk`oYwI>aXf_+Nt- zoRAR_yI{R)OCMf57^W@%1cgy-Mr>u~p1RORUPBeRpx9~+v}0|ZS&d!Wrg3NB>6>PS z#ss~aIeDi6H0n<6u%2n$J{z#1Xj9$ibeU!u+Nzwlx UFWEBVA7W`Grso5?zUAA01KO?PAOHXW literal 0 HcmV?d00001 diff --git a/X_in_given_array/__pycache__/test_X_in_array.cpython-37-pytest-5.0.1.pyc b/X_in_given_array/__pycache__/test_X_in_array.cpython-37-pytest-5.0.1.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1a2931055b7d71f1b9d6453c36fbd38df2a702d8 GIT binary patch literal 1734 zcmd6n&5ztP6u|8ylkt3(oo&m9KpI*h5rJ0Q?S}xds0$PX5+k}@L^X;OvSZIQ+DsDJ zo|ai97s?fh69>d$=g5^ae*|Zrkhn1aLQlNsY*!2FwGuP(v-AA?{QUfW{;=0;|MbV* z@LfvCU*z1+f$?o<>J|u2I8Diz+TNMF4xwc3jT^L{@y9-QxcfaBH@U|f&@)c&k-%TW zS~8lT#GePvhxQRP#X)ddkrI3yG5HR9NXeX56udgzOJSeNp`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