* 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>
* 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>
* added fibonacci using formula along with test cases
* updated the changes
* added jest's each in test cases
* added jest's each for testing
* returned inline value
* removed redundant comment
* hoisted the variables
* Use shorthand
* considered adding resource of the formula
---------
Co-authored-by: madhuredra <madhuredra.tiwari@zemosolabs.com>
Co-authored-by: Lars Müller <34514239+appgurueu@users.noreply.github.com>
* Update ValidateUrl.js
Used JS URL API to check if URL is valid. If valid it will return the url else false;
* Update ValidateUrl.js
Fixed for #1183
* Update ValidateUrl.js
fixed code style test.
Fixed for #1183
* Delete ValidateUrl.js
Fixes: #1183
* fix error in SinglyLinkedList head method
* test: update check head test for SinglyLinkedList
* fix: code style error
* fix: remove extra semicolons
---------
Co-authored-by: Bekzod <bekzodisakov18@gmail.com>
* [feat] New algorithm
* [test] Add new test for ParityOutlier.js
* [fix] Reset indentation
* [fix] Reset indentation
* [fix] Style changes
* fix: improve code efficiency and a glitch
* test: adds a new possible test case
* fix: style fix
* fix: delete redundant comments and else statements
* [fix] style fix
* feat: Added Elementary Cellular Automata Algorithm w/ explanation, examples, and further reading
* test: Added tests for Elementary Cellular Automata Algorithm
* chore: add Wikipedia link to Elementary Cellular Automata Algorithm
* Used | Bitwise OR and ^= (Bitwise XOR) operators in calculating next Elementary Generation over Addition + and Subtraction -=
* fix: fixed error in DepthFirstSearch algorithm and test: added tests for DepthFirstSearch algorithm.
* changed traverseDFS function parameters in DepthFirstSearch.js file
* ref: KeyPriorityQueue in separate file #1298
* feat: add tests for KeyPriorityQueue #1298
* fix: _shiftDown refactored and corrected #1298
* fix: use KeyPriorityQueue in PrimMST #1298
* feat: add test for PrimMST #1298
* fix: format files #1298
* fix: minor coding style changes
* fix: use map for keys and priorities #1298
* fix: fixed error in the MaxProductOfThree algorithm
Fixed the error in the MaxProductOfThree by initializing the max and min
variables to null instead of -1. The checks were then altered to check
for null instead of -1.
Also wrote more tests, which randomly generated small arrays and
compared the output of the maxProductOfThree-algorithm to the output of
a slower, but complete, function which calculates all posible
triple-products of the values of the array.
Fixes: #1294
* fix: Added newlines at the end of the files
* Updated Documentation in README.md
* docs: fix CI and remove LGTM badges
LGTM is no longer a supported service and has been integrated with GitHub (which is now CodeQL).
We can create a CodeQL workflow and integrate it into the repository, however, that fits for another PR.
The shields badge API was updated, thus, causing an invalid badge: https://github.com/badges/shields/issues/8671
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>