Damien Chazoule
8bce33d265
Moving '__tests__' To 'test'
2021-10-05 08:50:12 +02:00
Charlie Moore
8e5743f8cb
Fix standardjs style errors
2021-10-04 18:54:59 -04:00
Charlie Moore
519f557899
Add tests for CycleSort
2021-10-04 18:53:49 -04:00
Charlie Moore
0da3880955
Fix bug where cycleSort was not returning the sorted array
2021-10-04 18:53:03 -04:00
Charlie Moore
b3e6eed3ce
Add export to CycleSort for Jest testing
2021-10-04 18:50:14 -04:00
Charlie Moore
720b7b054b
Add function documentation to CycleSort
2021-10-04 18:49:54 -04:00
Charlie Moore
f4814ba143
Fix typo
2021-10-04 18:49:31 -04:00
Charlie Moore
7076c2afbf
Fix style per standard js rules
2021-10-04 18:44:12 -04:00
Charlie Moore
7c0379c024
Add tests for CombSort
2021-10-04 18:43:54 -04:00
Charlie Moore
ea4e816b5e
Add export of combSort for Jest testing
2021-10-04 18:42:49 -04:00
Charlie Moore
4ebe59345b
Add function documentation to combSort function
2021-10-04 18:42:28 -04:00
Charlie Moore
11315ea449
Add tests for BucketSort
2021-10-04 18:36:19 -04:00
Charlie Moore
1e3648af5a
Fix whitespace alignment
2021-10-04 18:35:00 -04:00
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
Charlie Moore
ced6c891a6
Add tests for titleCaseConversion function
2021-10-04 12:23:05 -04:00
Charlie Moore
654c824fdd
Add check to handle empty string input.
...
Could throw an error instead, but to be consistent with other case conversion functions in this collection, it returns an empty string when input is empty string.
2021-10-04 12:21:34 -04:00
Omkarnath Parida
085b166c77
Update LongestPalindromicSubsequence.test.js
2021-10-04 21:11:06 +06:00
Rak Laptudirm
551827dde7
chore: add code protection
2021-10-04 21:11:06 +06:00
Charlie Moore
184814745e
Update description/documentation with explanation of title case, and simplifying assumptions this function makes
2021-10-04 09:56:32 -04:00
Charlie Moore
4ab047ddc5
Fix typos and add ASCII link
2021-10-04 09:53:19 -04:00
Charlie Moore
4ea13dee13
Update export style for Jest testing
2021-10-04 09:52:30 -04:00
Charlie Moore
90a59e6b60
Update function name casing to match convention
2021-10-04 09:52:10 -04:00
Charlie Moore
220e75d046
Fix standardjs warning
2021-10-04 09:44:28 -04:00
Charlie Moore
9aa890b170
Add tests for UpperCaseConversion
2021-10-04 09:37:15 -04:00
Charlie Moore
a4bde8200d
Update capitalization style of function name to align with convention
2021-10-04 09:30:49 -04:00
Charlie Moore
a21264698e
Update export for Jest testing
2021-10-04 09:30:17 -04:00
Charlie Moore
85f8154f07
Fix typos and update description to include a link
2021-10-04 09:28:55 -04:00
Damien Chazoule
c8fd5353ba
Updating Memoize Unit Test
2021-10-04 14:15:21 +02:00
Omkarnath Parida
199d2637cc
Update LongestPalindromicSubsequence.test.js
2021-10-04 17:39:26 +05:30
Damien Chazoule
028e098b63
Feat: Added Memoize Func
2021-10-04 13:40:17 +02:00
Dev
7a70ed789c
capitalize first letter
2021-10-04 11:26:14 +04:00
Rak Laptudirm
877ce463c8
chore: add code protection
2021-10-04 12:23:50 +05:30
Sajeeb Ahamed
bf088c0646
✨ add an algorithm for checking a year is a leap year or not
2021-10-04 01:20:08 +06:00
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