* 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>
* 📦 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 9
* 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>
* 📦 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
---------
Co-authored-by: Omkarnath Parida <omkarnath.parida@yocket.in>
* Implemented M Coloring Problem
* Implemented M Coloring Problem
* Switch to a functional approach instead of class-based.
Use proper JSDoc comments.
Refine the comments and remove redundancies.
* Updated Documentation in README.md
* Proper JSDoc comment
---------
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: Lars Müller <34514239+appgurueu@users.noreply.github.com>
* feat: add RGB to HSL color format conversion algorithm
* test: add self-tests for rgb to hsl conversion algorithm
* fix: change function code to concise format
* fix: use throw and segregate the test cases
* chore: clean up the test format
* chore: use correct styling
* feat: add mergeTwoSortedLinkedLIsts algorithms
* remove class and unnecessary function
change the function params and return value from Node to LinkedList.
* feat: add determinant calculating algorithm
* test: add self-tests for determinant algorithm
* chore: add wikipedia info link
* fix: change initialization to zero
* fix: add error throw and general code improvements
* fix: add error try and catch
* fix: seperate the test loops of error cases
* clean up a bit
---------
Co-authored-by: Lars Müller <34514239+appgurueu@users.noreply.github.com>
* Combined Min Heap and Max Heap classes
* Added JSdoc comments and also improved tests for binary heap
* Added private methods for BinaryHeap class
* JSDoc knows that a class is a class
I assume the @class tag is for classes implemented via constructor functions, not using ES6 class syntax
---------
Co-authored-by: Lars Müller <34514239+appgurueu@users.noreply.github.com>
* bug: update edge case for empty array
* bug: add edge case for empty arrays
* feat: add test case for empty array
---------
Co-authored-by: Ridge Kimani <ridgekimani@gmail.com>
* feat: add algorithm to evaluate postfix strings
* feat: add test case for evaluate expression
* update: add literature reference
* fix: import name in testcase
* fix: test case result
* Make clear that this is postfix
* Update tests
* add: see reference
* fixes mentioned issues
* Fix `default` case
---------
Co-authored-by: Lars Müller <34514239+appgurueu@users.noreply.github.com>