From bb714275dc02e1e88156cd1cff8bfd93308267ea Mon Sep 17 00:00:00 2001 From: IndianBlitz <101599761+indianblitz@users.noreply.github.com> Date: Fri, 1 Jul 2022 19:25:02 +0530 Subject: [PATCH 1/8] add newfile OddEven to bits --- Bit-Manipulation/OddEven.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Bit-Manipulation/OddEven.js diff --git a/Bit-Manipulation/OddEven.js b/Bit-Manipulation/OddEven.js new file mode 100644 index 0000000000..6e6fa5a3d1 --- /dev/null +++ b/Bit-Manipulation/OddEven.js @@ -0,0 +1,22 @@ + + + +/* + author: vivek9patel + + + This script will find number is Odd or even + in binary representation of given number + + +*/ +//Check even if true then return 1 else return 0 which means number is odd; +function checkEvenOdd(num){ + 'use strict'; + if((num & 1) === 0) + return 1; + else + return 0; +} + +export {CheckEvenOdd} \ No newline at end of file From 1fe7a6909e6140e2c95514430c07ec54738ef17a Mon Sep 17 00:00:00 2001 From: IndianBlitz <101599761+indianblitz@users.noreply.github.com> Date: Fri, 1 Jul 2022 19:31:32 +0530 Subject: [PATCH 2/8] Delete OddEven.js --- Bit-Manipulation/OddEven.js | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 Bit-Manipulation/OddEven.js diff --git a/Bit-Manipulation/OddEven.js b/Bit-Manipulation/OddEven.js deleted file mode 100644 index 6e6fa5a3d1..0000000000 --- a/Bit-Manipulation/OddEven.js +++ /dev/null @@ -1,22 +0,0 @@ - - - -/* - author: vivek9patel - - - This script will find number is Odd or even - in binary representation of given number - - -*/ -//Check even if true then return 1 else return 0 which means number is odd; -function checkEvenOdd(num){ - 'use strict'; - if((num & 1) === 0) - return 1; - else - return 0; -} - -export {CheckEvenOdd} \ No newline at end of file From 8e6f4b7c5ac34f8e682ad62afca71bc2a72e870f Mon Sep 17 00:00:00 2001 From: IndianBlitz <101599761+indianblitz@users.noreply.github.com> Date: Fri, 1 Jul 2022 20:03:46 +0530 Subject: [PATCH 3/8] Create OddEven.js --- Bit-Manipulation/OddEven.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Bit-Manipulation/OddEven.js diff --git a/Bit-Manipulation/OddEven.js b/Bit-Manipulation/OddEven.js new file mode 100644 index 0000000000..e2c756dfa3 --- /dev/null +++ b/Bit-Manipulation/OddEven.js @@ -0,0 +1,20 @@ + + + +/* + author:IndianBlitz + + This script will find number is Odd or even + in binary representation of given number + + +*/ +//Check even if true then return 1 else return 0 which means number is odd; +function checkEvenOdd(num){ + 'use strict'; + if((num & 1) === 0)return 1; + else return 0; + +} + +export { checkEvenOdd }; From 1d8cfa0b1221e265cf1e6b2183fc837a99956460 Mon Sep 17 00:00:00 2001 From: IndianBlitz <101599761+indianblitz@users.noreply.github.com> Date: Fri, 1 Jul 2022 20:04:25 +0530 Subject: [PATCH 4/8] Update OddEven.js --- Bit-Manipulation/OddEven.js | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/Bit-Manipulation/OddEven.js b/Bit-Manipulation/OddEven.js index e2c756dfa3..bcd156df5a 100644 --- a/Bit-Manipulation/OddEven.js +++ b/Bit-Manipulation/OddEven.js @@ -1,14 +1,10 @@ - - - /* author:IndianBlitz - - This script will find number is Odd or even - in binary representation of given number - - + + This script will find number is Odd or even in binary representation of given number + */ + //Check even if true then return 1 else return 0 which means number is odd; function checkEvenOdd(num){ 'use strict'; From e616e4373795064a082a60d8919d8e265c9cdfdb Mon Sep 17 00:00:00 2001 From: IndianBlitz <101599761+indianblitz@users.noreply.github.com> Date: Fri, 1 Jul 2022 20:13:48 +0530 Subject: [PATCH 5/8] Update OddEven.js --- Bit-Manipulation/OddEven.js | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/Bit-Manipulation/OddEven.js b/Bit-Manipulation/OddEven.js index bcd156df5a..4ece25865e 100644 --- a/Bit-Manipulation/OddEven.js +++ b/Bit-Manipulation/OddEven.js @@ -1,16 +1,15 @@ + /* author:IndianBlitz - - This script will find number is Odd or even in binary representation of given number - + This script will find number is Odd or even + in binary representation of given number */ - -//Check even if true then return 1 else return 0 which means number is odd; -function checkEvenOdd(num){ - 'use strict'; - if((num & 1) === 0)return 1; - else return 0; - +// Check even if true then return 1 else return 0 which means number is odd; +function checkEvenOdd (num) { + 'use strict' + if ((num & 1) === 0) return 1 + else return 0 } -export { checkEvenOdd }; +export { checkEvenOdd } + From ebd5155bbc6594fd6f3c7d24a8ff0ce08e1e8698 Mon Sep 17 00:00:00 2001 From: IndianBlitz <101599761+indianblitz@users.noreply.github.com> Date: Fri, 1 Jul 2022 20:16:49 +0530 Subject: [PATCH 6/8] Update OddEven.js --- Bit-Manipulation/OddEven.js | 1 - 1 file changed, 1 deletion(-) diff --git a/Bit-Manipulation/OddEven.js b/Bit-Manipulation/OddEven.js index 4ece25865e..df3f27ec5c 100644 --- a/Bit-Manipulation/OddEven.js +++ b/Bit-Manipulation/OddEven.js @@ -10,6 +10,5 @@ function checkEvenOdd (num) { if ((num & 1) === 0) return 1 else return 0 } - export { checkEvenOdd } From fb3495d9f7a3c29f6ab1e1f7bdd5f9acb7d8d323 Mon Sep 17 00:00:00 2001 From: IndianBlitz <101599761+indianblitz@users.noreply.github.com> Date: Fri, 1 Jul 2022 20:18:44 +0530 Subject: [PATCH 7/8] Delete OddEven.js --- Bit-Manipulation/OddEven.js | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 Bit-Manipulation/OddEven.js diff --git a/Bit-Manipulation/OddEven.js b/Bit-Manipulation/OddEven.js deleted file mode 100644 index df3f27ec5c..0000000000 --- a/Bit-Manipulation/OddEven.js +++ /dev/null @@ -1,14 +0,0 @@ - -/* - author:IndianBlitz - This script will find number is Odd or even - in binary representation of given number -*/ -// Check even if true then return 1 else return 0 which means number is odd; -function checkEvenOdd (num) { - 'use strict' - if ((num & 1) === 0) return 1 - else return 0 -} -export { checkEvenOdd } - From 3c83e49701ce92142b4d2dcb431c3d9c35b4c6fb Mon Sep 17 00:00:00 2001 From: IndianBlitz <101599761+indianblitz@users.noreply.github.com> Date: Fri, 1 Jul 2022 20:19:45 +0530 Subject: [PATCH 8/8] Create OddEven.js --- Bit-Manipulation/OddEven.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Bit-Manipulation/OddEven.js diff --git a/Bit-Manipulation/OddEven.js b/Bit-Manipulation/OddEven.js new file mode 100644 index 0000000000..31cac8d419 --- /dev/null +++ b/Bit-Manipulation/OddEven.js @@ -0,0 +1,12 @@ +/* + author:IndianBlitz + This script will find number is Odd or even + in binary representation of given number +*/ +// Check even if true then return 1 else return 0 which means number is odd; +function checkEvenOdd (num) { + 'use strict' + if ((num & 1) === 0) return 1 + else return 0 +} +export { checkEvenOdd }