Commit Graph

1718 Commits

Author SHA1 Message Date
Eric Lavault
7121a6d96e Project Euler : fix solution for problem 20 (Factorial digit sum). 2021-10-05 19:28:17 +02:00
github-actions
8afef50cb7 Auto-update DIRECTORY.md 2021-10-05 16:12:48 +00:00
Eric Lavault
22e194ed39 Add tests for ProjectEuler problem 16 (Jest). 2021-10-05 18:11:21 +02:00
Eric Lavault
a9e2661dcd Project Euler : add solution for problem 16 (Power digit sum). 2021-10-05 18:06:50 +02:00
github-actions
8f49b7894d Auto-update DIRECTORY.md 2021-10-05 13:06:02 +00:00
Charlie Moore
eaa8dc64a7 Fix merge conflicts 2021-10-05 09:05:21 -04:00
Charlie Moore
11702cc033 Merge branch 'master' of github.com:charliejmoore/Javascript into comb-sort-tests 2021-10-05 09:02:26 -04:00
github-actions
801b0cd71e updating DIRECTORY.md 2021-10-05 13:00:52 +00:00
Charlie Moore
c83bc5ba6e Remove testing code in function file 2021-10-05 09:00:29 -04:00
Charlie Moore
fc07f38a0c Fix merge conflicts 2021-10-05 08:56:43 -04:00
Charlie Moore
932599d37b Remove testing code in function file 2021-10-05 08:54:13 -04:00
Charlie Moore
782386a11a Remove testing code in function file 2021-10-05 08:53:05 -04:00
github-actions
7af7a1fa74 Auto-update DIRECTORY.md 2021-10-05 09:39:05 +00:00
Rak Laptudirm
c78bc35a06 chore: Merge pull request #727 from defaude/fix/586-build-pipeline
Proposal: Clean up CI job a bit
2021-10-05 15:08:34 +05:30
github-actions
42549056b9 updating DIRECTORY.md 2021-10-05 09:33:19 +00:00
Omkarnath Parida
0af6c0c86b Merge pull request #732 from MrDoomy/feat/memoize-func
Feat: Added Memoize Func
2021-10-05 15:02:58 +05:30
Roland Hummel
565ce68027 Update DIRECTORY.md (manually after a rebase) 2021-10-05 11:24:26 +02:00
Roland Hummel
7bb3c80f05 Fix URL creation in directory markdown 2021-10-05 11:23:47 +02:00
Roland Hummel
6fe322bd8a Add npm ci to directory-updating job, as well (so that we can utilize globby) 2021-10-05 11:23:47 +02:00
Roland Hummel
a69d9a8c49 Clean up and speed up UpdateDirectory.js
Uses globby to find all algorithm files. This is way quicker and less error-prone than the previous implementation. Plus, it allows us to fine-tune excludes (e.g. test files and the babel config).

This also removes the need for setTimeouts which greatly speeds up the whole thing.
2021-10-05 11:23:46 +02:00
Roland Hummel
460fd57c6b Test: Drop env.CI 2021-10-05 11:23:46 +02:00
Roland Hummel
f6396f4822 Don't cat the full DIRECTORY.md file in the github job 2021-10-05 11:23:46 +02:00
Roland Hummel
21d4096446 Another proposal: Clean up "update directory" job, as well
relates to ##720

Cleaned up and updated the job description file a bit. Instead of attempting to commit every single time, we check if the DIRECTORY file actually has changes first.
2021-10-05 11:23:46 +02:00
Roland Hummel
6f9b1f127f Proposal: Clean up CI job a bit
relates to #586 and #720

Added npm scripts for doctest and style checking via standard. This allows us to call those directly via npm and not via npx.

The CI job itself is now split into distinct steps (makes it more visible which step failed).
2021-10-05 11:23:45 +02:00
github-actions
90b04eadd4 updating DIRECTORY.md 2021-10-05 08:54:47 +00:00
Rak Laptudirm
73402d5140 chore: Merge pull request #733 from charliejmoore/upper-case-converstion-tests
Upper case conversion tests
2021-10-05 14:24:28 +05:30
Rak Laptudirm
d712bfd5a7 chore: Merge pull request #739 from keshav-bohr/spell-check
fixed some spellings
2021-10-05 14:21:47 +05:30
Damien Chazoule
0589fc19e0 Added comments about memoization 2021-10-05 10:37:14 +02:00
Keshav Bohra
e27bc0a702 resolved conflicts 2021-10-05 14:05:11 +05:30
Omkarnath Parida
17ac987863 Merge pull request #740 from keshav-bohr/issue-resolve
fixed the issue in Trie file and typo in sudoku
2021-10-05 13:46:49 +05:30
github-actions
82ad8c8ad4 updating DIRECTORY.md 2021-10-05 08:15:04 +00:00
Omkarnath Parida
8a11916452 Merge pull request #735 from charliejmoore/title-case-conversion-tests
Title case conversion tests
2021-10-05 13:44:44 +05:30
Keshav Bohra
1c22f65ce7 fixed the issue in Trie file and typo in sudoku 2021-10-05 12:53:38 +05:30
Rak Laptudirm
90b447c901 chore: Merge pull request #730 from ayazshah2/capitalize-first-letter
capitalize first letter
2021-10-05 12:51:32 +05:30
Rak Laptudirm
14034e29fe chore: add punctuation 2021-10-05 12:51:04 +05:30
Keshav Bohra
1589263947 fixed some spellings 2021-10-05 12:49:23 +05:30
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