From d5ad55fa94c32a63e20263b38304670dc9fc7fb1 Mon Sep 17 00:00:00 2001 From: pieromoto Date: Thu, 4 Oct 2018 21:51:19 +0200 Subject: [PATCH 1/3] squareNMultiply in Python --- Python/sqaureNMultiply.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Python/sqaureNMultiply.py diff --git a/Python/sqaureNMultiply.py b/Python/sqaureNMultiply.py new file mode 100644 index 0000000..2caf485 --- /dev/null +++ b/Python/sqaureNMultiply.py @@ -0,0 +1,9 @@ +def squareNMultiply(base,exp,mod): + f = 1 + while exp > 0: + i = exp%2 + f = (f*f) % mod + if i == 1: + f = (f*base) % mod + exp = exp/2 + return f From eecd1aa462c197cfd259bdc4e108762575989a25 Mon Sep 17 00:00:00 2001 From: Mudlabs_Monster Date: Fri, 5 Oct 2018 09:14:38 +1000 Subject: [PATCH 2/3] Added hello-wold.html --- HTML/hello-world.html | 51 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 HTML/hello-world.html diff --git a/HTML/hello-world.html b/HTML/hello-world.html new file mode 100644 index 0000000..6673e88 --- /dev/null +++ b/HTML/hello-world.html @@ -0,0 +1,51 @@ + + + + + + + Hacktoberfest 2018 | Hello Word + + + + +
+

Hello World

+

Hacktoberfest 2018

+
+ + + \ No newline at end of file From bdbdbd8826d024fdc1d4a44bc4dc357028324581 Mon Sep 17 00:00:00 2001 From: MarcosEllys Date: Thu, 4 Oct 2018 21:45:23 -0300 Subject: [PATCH 3/3] Added Unique elements in Javascript --- Javascript/uniqueElements.js | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 Javascript/uniqueElements.js diff --git a/Javascript/uniqueElements.js b/Javascript/uniqueElements.js new file mode 100644 index 0000000..43ee7e1 --- /dev/null +++ b/Javascript/uniqueElements.js @@ -0,0 +1,3 @@ +const uniqueElements = arr => [...new Set(arr)]; + +uniqueElements([1, 2, 2, 3, 4, 4, 5]); \ No newline at end of file