* tests: add tests checking if floodFill funtions throw when location is outside
* refactor: reduce code duplication by adding `checkLocation` to `FloodFill`
* refactor: add and use `isInside`
Co-authored-by: appgurueu <34514239+appgurueu@users.noreply.github.com>
* Deduplicate further
---------
Co-authored-by: appgurueu <34514239+appgurueu@users.noreply.github.com>
* implemented CycleTectionII code
* changes made per review by appgurueu
* made the changes per review by appgurueu
* changes made per review by appgurueu
* did some changes
* fixed the test file with prettier
* Simplify code, renames for clarity
---------
Co-authored-by: Lars Mueller <appgurulars@gmx.de>
* Add Tug of War solution using backtracking
* Updated Documentation in README.md
* Added Tug of war problem link
* Updated Documentation in README.md
* Updated Documentation in README.md
* Refactor tugOfWar: remove unused vars, optimize initialization, and remove redundant checks
* Added Function Export Statment
* Updated Documentation in README.md
* Resolved Code Style --Prettier
* Rename "backtrack" to "recurse"
* Fix test case: The difference needs to be exactly 1.
* Code Modification: subsets should have sizes as close to n/2 as possible
* Updated test-case of TugOfWar
* Changed TugOfWar problem to Partition
* Modified partition problem
* Updated Documentation in README.md
* fixed code style
---------
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: Lars Müller <34514239+appgurueu@users.noreply.github.com>
* Update AllCombinationsOfSizeK.js
* Update AllCombinationsOfSizeK.js
* Update AllCombinationsOfSizeK.test.js
Changes made it the type of testing.
Instead of testing the class now the program will test the function
* Update AllCombinationsOfSizeK.js
* Update AllCombinationsOfSizeK.js
* Update AllCombinationsOfSizeK.js
* Update AllCombinationsOfSizeK.test.js
* Update AllCombinationsOfSizeK.test.js
* feat: Added MD5 hashing algorithm
* Added wiki link
* Remove spam?
* Fix extend towards end
* Return Uint32Array in MD5 function
* Preprocess function now works on uint arrays
* chunkify U32Array instead of string
* Remove all string related functions
* Replace typed arrays with named variables
* Fix "Replace typed arrays with named variables"
* Return Uint8 Array in MD5 function
The MD5 function now returns a uint8 array with the correct endianness.
* Add tests
* Fix docstrings
* Introduce hexMD5 function
* Change test string
* Format test file
* feat: added find subsets algorithm using bitmanipulation
* file name fix
* test file name fix
* fix: codespell fix
* error handled
* added test cases for error
* 📦 NEW: Added solution for ProjectEuler-007
* 🐛 FIX: Spelling mistake fixes
* 👌 IMPROVE: changed variable name from `inc` to `candidateValue` and thrown error in case of invalid input
* 👌 IMPROVE: Modified the code
* 👌 IMPROVE: Added test case for ProjectEuler Problem001
* 👌 IMPROVE: Added test cases for Project Euler Problem 4
* 👌 IMPROVE: auto prettier fixes
* 👌 IMPROVE: added test cases for project euler problem 6
* Updated Documentation in README.md
* Updated Documentation in README.md
---------
Co-authored-by: Omkarnath Parida <omkarnath.parida@yocket.in>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>