15 Commits

Author SHA1 Message Date
d671327ebe feat: added find subsets algorithm using bitmanipulation (#1514)
* feat: added find subsets algorithm using bitmanipulation

* file name fix

* test file name fix

* fix: codespell fix

* error handled

* added test cases for error
2023-10-26 13:38:19 +00:00
f8ffacd481 feat: add Gray Code generation (#1425)
---------

Co-authored-by: Lars Müller <34514239+appgurueu@users.noreply.github.com>
2023-10-08 15:24:59 +02:00
f5188ddf16 added an algo which finds unique element in an array (#1359)
* added an algo which finds unique element in an array

* fixed code style

* updated changes and add some explanations

* Delete package-lock.json

* Delete package.json

* added question link if anyone want to solve

* updated changes

* added package.json

* used JSDoc comment

---------

Co-authored-by: madhuredra <madhuredra.tiwari@zemosolabs.com>
2023-09-22 14:52:11 +05:30
4fe8a67ea6 added algo for checking the number is power of four or not (#1360)
* added algo for checking the number is power of four or not

* Update IsPowerofFour.js

* Update IsPowerofFour.js

* fix code style

* used proper JSDoc comment and fixed test issues

* fixed test case issue

---------

Co-authored-by: madhuredra <madhuredra.tiwari@zemosolabs.com>
2023-09-22 14:51:29 +05:30
78f023fdd1 algorithm: Log2 using bitwise operations (#1132) 2022-10-09 17:36:23 +05:30
8461271fc8 added check for Integer (#1137) 2022-10-07 17:16:28 +05:30
80cea0884b merge: Add testcases of BinaryCountSetBits function (#922) 2022-03-15 14:39:18 +05:30
d6364548aa Check if number is already power of two 2021-10-11 20:24:38 +03:00
372348f64c add algorithm that calculates next power of two 2021-10-11 20:13:36 +03:00
8812f63ba2 Small fixes + comply with JS standard styles. 2021-10-09 12:23:49 +02:00
7ce688b9db Updated the code and did the required changes 2021-10-08 21:20:21 +05:30
e978f4365d Add code and tests for checking power of 2 2021-10-08 15:41:45 +05:30
504dbb0c30 Statement changes Added 2021-07-05 16:25:23 +05:30
58fca82ec3 Changed Test statement 2021-07-05 11:09:46 +05:30
51a9126053 Added SetBit.js, SetBit.test.js in Bit-Manipulation directory 2021-07-04 21:47:53 +05:30