79b93d35b6
style: remove redundant eslint suppressions ( #1667 )
2024-06-12 01:40:48 +05:30
0e5cf5e843
tests: add missing test for KnightTour
( #1598 )
2024-01-27 22:27:40 +05:30
cafb3433e8
Update AllCombinationsOfSizeK.js ( #1530 )
...
* 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
2023-10-30 11:10:02 +05:30
28c27d9474
chore: format using prettier
2023-10-28 10:53:43 +05:30
fb134b10b0
Implemented M Coloring Problem ( #1562 )
...
* 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>
2023-10-24 06:48:59 +00:00
7d7f109e6f
Enhance readability of KnightTour ( #1572 )
2023-10-24 06:48:13 +00:00
da0ee876db
Fix a typo ( #1453 )
2023-10-07 20:29:12 +02:00
86d333ee94
feat: Test running overhaul, switch to Prettier & reformat everything ( #1407 )
...
* 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>
2023-10-04 02:38:19 +05:30
9757e2bee3
fixed typo ( #1363 )
...
Co-authored-by: unknown <nickjr@gmail.com>
2023-09-19 16:40:32 +05:30
49bd1fd0c2
Adding to backtracking ( #1289 )
...
* adding generate-parenthses algorithm
* adding generateParenthses algorithm
* adding generate parentheses algorithm
* fixing comments according to the JDoc comments, cleaning code
* fixing comments
2023-02-13 17:09:31 +05:30
71d3d4470f
tests: improve for GeneratePermutations ( #1263 )
2022-11-13 23:11:54 +05:30
10079a7b70
Renamed NQueen file, variables to NQueens, raised RangeError exception ( #1162 )
2022-10-13 17:22:59 +05:30
072523d594
merge: Fix spellings ( #821 )
...
* chore: remove codespell from ci
* feat: add codespell workflow
* fix: codespell workflow
* fix: ignore spellings in directory
* chore: fix spellings
./Dynamic-Programming/KadaneAlgo.js:2: contiguos ==> contiguous
./Dynamic-Programming/KadaneAlgo.js:14: posible ==> possible
* chore: fix spelling
./Dynamic-Programming/SieveOfEratosthenes.js:4: upto ==> up to
* chore: fix spellings
./Dynamic-Programming/MaxNonAdjacentSum.js:22: Exmaple ==> Example
* chore: fix spelling
./Project-Euler/test/Problem010.test.js:4: upto ==> up to
./Project-Euler/test/Problem010.test.js:8: upto ==> up to
./Project-Euler/test/Problem010.test.js:12: upto ==> up to
* chore: fix spelling
./String/AlphaNumericPalindrome.js:10: recieves ==> receives
./String/AlphaNumericPalindrome.js:10: sting ==> string
./String/AlphaNumericPalindrome.js:46: varaible ==> variable
* chore: fix spelling
./String/DiceCoefficient.js:3: stings ==> strings
* chore: fix spelling
./String/test/DiceCoefficient.test.js:9: atleast ==> at least
* chore: fix spelling
./String/test/MaxWord.test.js:8: ba ==> be
* chore: ignore `PermutateString.test.js`
* chore: fix spelling
./String/test/CheckVowels.test.js:62: occurances ==> occurrences
* chore: ignore `SubsequenceRecursive.js`
* chore: fix spelling
./Conversions/TemperatureConversion.js:2: arguement ==> argument
* chore: fix spelling
./Conversions/RailwayTimeConversion.js:7: Formate ==> Format
./Conversions/RailwayTimeConversion.js:8: Formate ==> Format
* chore: remove Linear Algebra
The deleted directory hosted a package which are not accepted by this repository.
* Auto-update DIRECTORY.md
* chore: fix spelling
* chore: fix spellings
* merge: Created composite Simpson's integration method. Tests included. (#819 )
* Created composite Simpson's integration method.Tests included
* Minor corrections
* Auto-update DIRECTORY.md
* Styled with standard.js
* chore: remove blank line
* chore: remove blank line
Co-authored-by: ggkogkou <ggkogkou@ggkogkou.gr>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: Rak Laptudirm <raklaptudirm@gmail.com>
* chore: fix spelling
* chore: fix spelling
* chore: fix spelling
* chore: fix spelling
* chore: fix spelling
* chore: remove codespell from ci
* feat: add codespell workflow
* fix: codespell workflow
* fix: ignore spellings in directory
* chore: fix spellings
./Dynamic-Programming/KadaneAlgo.js:2: contiguos ==> contiguous
./Dynamic-Programming/KadaneAlgo.js:14: posible ==> possible
* chore: fix spelling
./Dynamic-Programming/SieveOfEratosthenes.js:4: upto ==> up to
* chore: fix spellings
./Dynamic-Programming/MaxNonAdjacentSum.js:22: Exmaple ==> Example
* chore: fix spelling
./Project-Euler/test/Problem010.test.js:4: upto ==> up to
./Project-Euler/test/Problem010.test.js:8: upto ==> up to
./Project-Euler/test/Problem010.test.js:12: upto ==> up to
* chore: fix spelling
./String/AlphaNumericPalindrome.js:10: recieves ==> receives
./String/AlphaNumericPalindrome.js:10: sting ==> string
./String/AlphaNumericPalindrome.js:46: varaible ==> variable
* chore: fix spelling
./String/DiceCoefficient.js:3: stings ==> strings
* chore: fix spelling
./String/test/DiceCoefficient.test.js:9: atleast ==> at least
* chore: fix spelling
./String/test/MaxWord.test.js:8: ba ==> be
* chore: ignore `PermutateString.test.js`
* chore: fix spelling
./String/test/CheckVowels.test.js:62: occurances ==> occurrences
* chore: ignore `SubsequenceRecursive.js`
* chore: fix spelling
./Conversions/TemperatureConversion.js:2: arguement ==> argument
* chore: fix spelling
./Conversions/RailwayTimeConversion.js:7: Formate ==> Format
./Conversions/RailwayTimeConversion.js:8: Formate ==> Format
* chore: remove Linear Algebra
The deleted directory hosted a package which are not accepted by this repository.
* Auto-update DIRECTORY.md
* chore: fix spelling
* chore: fix spellings
* chore: fix spelling
* chore: fix spelling
* chore: fix spelling
* chore: fix spelling
* chore: fix spelling
* chore: fix spelling
* chore: fix spelling
* chore: fix spelling
* chore: fix spelling
* chore: fix spelling
* chore: fix spelling
* chore: fix spelling
* chore: fix spelling
* chore: no need to check filenames
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: ggkogkou <76820848+ggkogkou@users.noreply.github.com>
Co-authored-by: ggkogkou <ggkogkou@ggkogkou.gr>
2021-10-28 15:37:43 +05:30
df4a783b06
Complying with JavaScript Standard Style (npx standard --fix).
2021-10-11 15:49:24 +02:00
e18718b7d5
Remove live code & console.log, leave examples as comments.
2021-10-11 14:07:10 +02:00
5c4be7604d
Remove live code & console.log (Backtracking, Bit-manipulation, Ciphers).
2021-10-09 17:47:03 +02:00
7f6a53ad4a
KnightTour : convert live code example to Jest test (log remaining is within a print method).
2021-10-09 15:05:52 +02:00
09da5eef17
Fix GeneratePermutations so that it actually returns the permutations instead of logging them + add Jest test.
2021-10-09 14:29:44 +02:00
4f4deac8d4
Fix #748 : Revise algorithm implementation so that it actually returns the combinations. Fix test (was not running, .mjs not matching Jest pattern) and work.
2021-10-09 14:07:27 +02:00
7be5ce0f1b
chore: Merge pull request #748 from chiranjeev-thapliyal/master
...
added Backtracking/AllCombinationsOfSizeK
2021-10-06 14:39:39 +05:30
254f90bca1
added tests for Backtracking/AllCombinationsOfSizeK
2021-10-06 14:03:27 +05:30
6919e85c01
added Backtracking/AllCombinationsOfSizeK
2021-10-06 00:13:25 +05:30
1589263947
fixed some spellings
2021-10-05 12:49:23 +05:30
b5167878c4
Merge pull request #714 from defaude/test/Backtracking/RatInAMaze
...
Rewrote "Rat in a maze" algorithm + added tests
2021-10-03 21:30:50 +05:30
28f13bb260
Apply standard code style
...
Sadly, standard does not support private fields (yet)
2021-10-03 16:04:06 +02:00
2b3db6c1d5
Apply standard code style
2021-10-03 15:11:15 +02:00
44fee4167f
Code style
2021-10-03 10:15:35 +02:00
08effc8581
Credit where credit's due: Add reference to original author
...
(and added a missing comment)
2021-10-03 10:05:57 +02:00
0d5a3cef48
Made the "complex" test harder, forcing the algorithm to actually back-track ;)
2021-10-03 10:05:33 +02:00
78616fcadd
Rewrote "Rat in a maze" algorithm
...
It's based on the previous implementation but offers a better API and is now properly testable, too
2021-10-03 00:54:14 +02:00
eb99bdc06b
Add proper test to Backtracking/Sudoku
...
This replaces the "main" test in the implementation file.
2021-10-02 22:51:25 +02:00
dd19680261
chore: merge "Added backtracking sum of subset ( #702 )"
...
* sum of subset algorithm
* set returns comment
* fix comment
* add resource url to comments
* separate test to different file and format
2021-10-01 10:18:49 +05:30
51c5ea48b8
RatInAMaze prints path now
2021-08-22 23:24:13 +05:30
9b37cb0705
removed console lines from RatInAMaze
2021-08-22 22:46:29 +05:30
832aa6ea06
RatInAMaze added in Backtracking
2021-08-22 22:44:52 +05:30
9434b413e7
added GeneratePermutations in Backtracking
2021-08-18 13:02:09 +05:30
e9fd4a93e4
Fixes #620
2021-06-06 12:06:36 +06:00
6b191ebc5b
renaming files ( #401 )
...
* improve file names
* improve file names
2020-10-04 19:30:56 +05:30