Charlie Moore
877356fbab
Fix bug in bucketSort so that a comparison function is now provided to the sort function
...
The [built-in JavaScript sort method](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort ) will
perform a lexicographical (aka alphabetical) order by converting the elements of the array to strings. This can yield unexpected results when sorting numbers.
A comparison function can be passed into the sort method to indicate how array elements should be compared.
2021-10-04 18:33:35 -04:00
Charlie Moore
269175689f
Add function documentation to bucketSort
2021-10-04 18:27:17 -04:00
Charlie Moore
754f7b6b04
Export bucketSort function for Jest testing
2021-10-04 17:57:13 -04:00
Charlie Moore
55080ebffd
Add a reference link for BucketSort
2021-10-04 17:56:51 -04:00
Omkarnath Parida
199d2637cc
Update LongestPalindromicSubsequence.test.js
2021-10-04 17:39:26 +05:30
Rak Laptudirm
877ce463c8
chore: add code protection
2021-10-04 12:23:50 +05:30
github-actions
c1b6fcaa78
updating DIRECTORY.md
2021-10-03 16:01:10 +00:00
Omkarnath Parida
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
Omkarnath Parida
b793105009
Update .gitignore
2021-10-03 21:29:55 +05:30
github-actions
085ee531cf
updating DIRECTORY.md
2021-10-03 15:56:52 +00:00
Omkarnath Parida
94ff1e336f
Merge pull request #713 from defaude/test/Backtracking/Sudoku
...
Add proper test to Backtracking/Sudoku
2021-10-03 21:26:35 +05:30
github-actions
177c4766e8
updating DIRECTORY.md
2021-10-03 15:55:09 +00:00
Omkarnath Parida
7f6a4e74a3
Merge pull request #724 from pomkarnath98/master
...
Added test cases for TrappingRainWater
2021-10-03 21:24:54 +05:30
Omkarnath Parida
e0c5d494ae
Added space after comma
2021-10-03 21:20:53 +05:30
github-actions
46dbe906b5
updating DIRECTORY.md
2021-10-03 15:48:01 +00:00
Omkarnath Parida
5ed4227975
Merge pull request #722 from farha1/master
...
Add max word algorithm
2021-10-03 21:17:45 +05:30
Omkarnath Parida
63ceac0925
Added test cases for TrappingRainWater
2021-10-03 21:13:08 +05:30
github-actions
00c616debe
updating DIRECTORY.md
2021-10-03 15:35:00 +00:00
Omkarnath Parida
57a6491000
Merge pull request #723 from pomkarnath98/master
...
Added test cases for LongestValidParentheses
2021-10-03 21:04:45 +05:30
Omkarnath Parida
db3caea70f
Added test cases for LongestValidParentheses
2021-10-03 20:58:53 +05:30
github-actions
c2b3931391
updating DIRECTORY.md
2021-10-03 15:13:50 +00:00
Omkarnath Parida
fd420229bf
Merge pull request #721 from pomkarnath98/master
...
Added test cases for LongestPalindromicSubsequence
2021-10-03 20:43:36 +05:30
farharamadhan2
30d437bff9
Add max word algorithm
2021-10-03 22:08:47 +07:00
Omkarnath Parida
acd670bb2e
Added test cases for LongestPalindromicSubsequence
2021-10-03 20:38:23 +05:30
github-actions
14a6e2eff3
updating DIRECTORY.md
2021-10-03 14:45:24 +00:00
Omkarnath Parida
8daf45e6f0
Merge pull request #719 from MrDoomy/feat/shuffle-algorithm
...
Added Fisher Yates Algorithm
2021-10-03 20:15:07 +05:30
Omkarnath Parida
0fea99db49
Update FisherYatesShuffle.test.js
...
Updated fisherYatesShuffle to FisherYatesShuffle
2021-10-03 20:10:56 +05:30
Omkarnath Parida
6fdd267459
Update FisherYatesShuffle.js
...
removed console statement
2021-10-03 20:10:26 +05:30
Omkarnath Parida
0ada757576
Update FisherYatesShuffle.js
...
Splited initialized 'let' declarations into multiple statements
2021-10-03 20:08:02 +05:30
Roland Hummel
28f13bb260
Apply standard code style
...
Sadly, standard does not support private fields (yet)
2021-10-03 16:04:06 +02:00
Damien Chazoule
6b2840f579
Added Fisher Yates Algorithm
2021-10-03 15:40:45 +02:00
Roland Hummel
2b3db6c1d5
Apply standard code style
2021-10-03 15:11:15 +02:00
github-actions
fb763c4a3f
updating DIRECTORY.md
2021-10-03 12:07:50 +00:00
Omkarnath Parida
200e8232c5
Merge pull request #718 from pomkarnath98/master
...
Added test for ScrambleStrings and formatted folder structure for oth…
2021-10-03 17:37:32 +05:30
Omkarnath Parida
3f6b4c1d72
added new line
2021-10-03 17:31:45 +05:30
Omkarnath Parida
c198a9f53d
Added test for ScrambleStrings and formatted folder structure for other folders
2021-10-03 17:28:17 +05:30
github-actions
255ef9a50d
updating DIRECTORY.md
2021-10-03 11:39:26 +00:00
Omkarnath Parida
37b2cebe22
Merge pull request #715 from Koddi-Evangelista/master
...
feat: add scramble string algorithm
2021-10-03 17:09:12 +05:30
github-actions
9aedaa8bd6
updating DIRECTORY.md
2021-10-03 11:32:28 +00:00
Omkarnath Parida
d2ed0c7b47
Merge pull request #717 from trasherdk/DecimalToHex
...
DecimalToHex - test
2021-10-03 17:02:15 +05:30
Omkarnath Parida
38b42cf0a4
Update DecimalToHex.js
...
updated as per `standard.js`
2021-10-03 16:57:52 +05:30
TrasherDK
c35b20a4ce
DecimalToHex
...
- Add test file DecimalToHex.test.js
- Add export to DecimalToHex.js
- Remove console.log from DecimalToHex.js
2021-10-03 12:11:34 +02:00
github-actions
c0fa45cc19
updating DIRECTORY.md
2021-10-03 08:33:26 +00:00
alvux
2ecee85012
chore: merge "Add test for camel case algorithm" ( #710 )
...
* fix: change function name and use ES6 export
* feat: add tests for camel case
Co-authored-by: Alexandre VU <alexandre.vu@montreal.ca >
2021-10-03 14:03:07 +05:30
Roland Hummel
44fee4167f
Code style
2021-10-03 10:15:35 +02:00
Roland Hummel
08effc8581
Credit where credit's due: Add reference to original author
...
(and added a missing comment)
2021-10-03 10:05:57 +02:00
Roland Hummel
0d5a3cef48
Made the "complex" test harder, forcing the algorithm to actually back-track ;)
2021-10-03 10:05:33 +02:00
github-actions
ff671ffd12
updating DIRECTORY.md
2021-10-03 06:05:46 +00:00
Omkarnath Parida
ea36915c37
Merge pull request #711 from pomkarnath98/master
...
Added ProjectEuler problem 8 with passed test cases
2021-10-03 11:35:30 +05:30
Koddi Evangelista
9d996e1898
feat: add scramble string algorithm
2021-10-03 10:09:57 +08:00