* 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>
* 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>
* 📦 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>
* chore: Switch to Node 20 + Vitest
* chore: migrate to vitest mock functions
* chore: code style (switch to prettier)
* test: re-enable long-running test
Seems the switch to Node 20 and Vitest has vastly improved the code's and / or the test's runtime!
see #1193
* chore: code style
* chore: fix failing tests
* Updated Documentation in README.md
* Update contribution guidelines to state usage of Prettier
* fix: set prettier printWidth back to 80
* chore: apply updated code style automatically
* fix: set prettier line endings to lf again
* chore: apply updated code style automatically
---------
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: Lars Müller <34514239+appgurueu@users.noreply.github.com>