1454 Commits

Author SHA1 Message Date
01a2e9ac9e chore: use UpperCamelCase 2021-10-28 18:45:57 +05:30
2203c1a0e4 chore: use UpperCamelCase 2021-10-28 18:45:36 +05:30
1cd3b8683a merge: Created midpoint integration numerical method (#822)
* Created midpoint integration numerical method

* Auto-update DIRECTORY.md

* Added resources link

* Fixed doxumentation

* Fixed spelling error

Co-authored-by: ggkogkou <ggkogkou@ggkogkou.gr>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2021-10-28 18:09:40 +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
7722870183 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>
2021-10-28 15:07:07 +05:30
b30f9f36f5 chore: fix spelling
./Graphs/DepthFirstSearchRecursive.js:26: recursivly ==> recursively
2021-10-28 13:52:22 +05:30
d16336a000 chore: fix spelling
./Sorts/PancakeSort.js:36: essentialy ==> essentially
2021-10-28 13:51:11 +05:30
315db14c5f chore: fix spelling
./Sorts/IntroSort.js:303: Implented ==> Implemented
2021-10-28 13:50:05 +05:30
59e9baf11b feat: add codespell 2021-10-28 12:34:59 +05:30
f8d4a2678d chore: jest fall back 2021-10-28 12:16:15 +05:30
82db978dc5 Auto-update DIRECTORY.md 2021-10-28 06:45:28 +00:00
9ad93c7b28 merge: Create findRelativeMaximumPointCount.js (#771)
* Create find_relative_maximum_point_count.js

print number of relative maximum points in array
runs in O(n)

* rename file to match requested casing

* add inline comments and greater documentation

* fix wrong reference to algorithm explanation

* remove live code and fix function misnaming

* add multiple cases tests

* add last line as empty line

* git pull

* style changes

* move tests to test folder

* chore: fix spelling

* fix package-lock

* revert to old lock file

* chore: add line feed

Co-authored-by: Rak Laptudirm <raklaptudirm@gmail.com>
2021-10-28 12:15:01 +05:30
00900f1446 Auto-update DIRECTORY.md 2021-10-28 06:38:14 +00:00
820f8e9c29 merge: Create firstRelativeMaxPointInArray.js (#772)
* Create first_relative_max_point_in_array.js

go over randomly generated array and print first spike or maximum point index in it
runs in O(log(n))

* rename file to match requested casing

* add comments

I prefer SOLID standards so that's why didn't add them at first but due to the repository requirements was needed to be added

* remove template unrelated comments

* Update equals check to match JavaScript standards

* create file skafolding and adjust filename to reflect main function

* using newer node version

* add tests

* add last line as empty line

* style changes

* move algorithm tests to test folder

* revert to old package lock file

* chore: add ending line feed

Co-authored-by: Rak Laptudirm <raklaptudirm@gmail.com>
2021-10-28 12:07:48 +05:30
1cef191494 merge: Made all tests follow file strcture convention already in-place (#820)
* add empty line to end of file

* Move all test files to /test following convention
2021-10-28 10:00:04 +05:30
970b4f2827 Auto-update DIRECTORY.md 2021-10-27 17:50:15 +00:00
e4808a6513 merge: Add MinHeap and test (#817)
* Add MinHeap and test

* Add description and reference link

* Adjust formatting
2021-10-27 23:19:52 +05:30
54de6e5372 merge: Fix pull request template (#818)
The existing template uses * to apply the bold font weight. As we
already have the ### to markdown the text as heading, its redundant to
have the *s.
2021-10-27 23:17:32 +05:30
4e18bbdeb6 Auto-update DIRECTORY.md 2021-10-26 12:35:57 +00:00
8a4f117574 merge: add UnionFind.js plus tests (#814)
* Create UnionFind.js

* Create UnionFindTest.js

* add UnionFind.js plus tests

* implement PR comments

* implement PR comment

* fix codestyle

Co-authored-by: Administrator <pi@pglp.noip.me>
2021-10-26 18:05:22 +05:30
4fa3c5ecd4 Auto-update DIRECTORY.md 2021-10-26 11:27:09 +00:00
7c2f19b691 merge: Rename 2 filenames to follow PascalCase (#816)
* Added LucasSeries

* Added more tests and renamed function

* Changed RangeError to TypeError

* Added Aliquot Sum and tests

* Fix ALiquot tests, need to learn how to use Jest

* Added some explanation for the Aliquot sum

* Change file names of DecimalIsolate & IsOdd to Pascal case
2021-10-26 16:56:45 +05:30
3f007379e5 Auto-update DIRECTORY.md 2021-10-26 09:30:41 +00:00
502aec24cb merge: Added Aliquot Sum Implementation (#810)
* Added LucasSeries

* Added more tests and renamed function

* Changed RangeError to TypeError

* Added Aliquot Sum and tests

* Fix ALiquot tests, need to learn how to use Jest

* Added some explanation for the Aliquot sum
2021-10-26 15:00:07 +05:30
4fb0809666 merge: fixes: #774 - add test and fix MinPriorityQueue implementation (#811) 2021-10-26 09:11:32 +05:30
32781c2aa1 Auto-update DIRECTORY.md 2021-10-25 04:33:36 +00:00
69a397cc33 merge: Added LucasSeries Implementation (#808)
* Added LucasSeries

* Added more tests and renamed function

* Changed RangeError to TypeError
2021-10-25 10:03:02 +05:30
e8d862ca94 merge: Added manhattan distance and euclidean distance for distance 2 points task (#809)
* Added Hex to Binary conversion

* Update Conversions/HexToBinary.js

Co-authored-by: Rak Laptudirm <raklaptudirm@gmail.com>

* Update Conversions/HexToBinary.js

Co-authored-by: Rak Laptudirm <raklaptudirm@gmail.com>

* Update Conversions/HexToBinary.js

Co-authored-by: Rak Laptudirm <raklaptudirm@gmail.com>

* Update Conversions/HexToBinary.js

Co-authored-by: Rak Laptudirm <raklaptudirm@gmail.com>

* Fix errors

* fix: typo

* Added Manhattan Distance Algorithm

Co-authored-by: Rak Laptudirm <raklaptudirm@gmail.com>
2021-10-25 09:26:53 +05:30
32f1e3351c merge: Added Hex to Binary conversion (#805)
* Added Hex to Binary conversion

* Update Conversions/HexToBinary.js

Co-authored-by: Rak Laptudirm <raklaptudirm@gmail.com>

* Update Conversions/HexToBinary.js

Co-authored-by: Rak Laptudirm <raklaptudirm@gmail.com>

* Update Conversions/HexToBinary.js

Co-authored-by: Rak Laptudirm <raklaptudirm@gmail.com>

* Update Conversions/HexToBinary.js

Co-authored-by: Rak Laptudirm <raklaptudirm@gmail.com>

* Fix errors

* fix: typo

Co-authored-by: Rak Laptudirm <raklaptudirm@gmail.com>
2021-10-24 14:26:56 +05:30
d19108b481 Auto-update DIRECTORY.md 2021-10-23 17:46:33 +00:00
d5e309b605 merge: Add binary to decimal test file and convert function to es6 model. (#806)
* Added Hex to Binary conversion

* Add Binary to decimal test

* Fix Style
2021-10-23 23:16:13 +05:30
4ba2c32d78 Auto-update DIRECTORY.md 2021-10-23 17:44:29 +00:00
cd3974c457 merge: Added Sum of GP (#807) 2021-10-23 23:14:01 +05:30
e83b570d44 merge: fixed some spellings (#773)
* fixed some spellings

* Update Data-Structures/Linked-List/SinglyLinkList.js

Co-authored-by: Rak Laptudirm <raklaptudirm@gmail.com>

Co-authored-by: Rak Laptudirm <raklaptudirm@gmail.com>
2021-10-22 13:26:26 +05:30
ffbfb20b50 Auto-update DIRECTORY.md 2021-10-22 05:06:10 +00:00
b7f1a72abe merge: added Problem 23 to Project Euler (#803)
* add Problem 23

* add Problem 23 test.js

* Update Problem023.test.js
2021-10-22 10:35:46 +05:30
71b48c88b2 fix: standard style problems 2021-10-22 09:38:10 +05:30
190ebb02fd chore: use standard without fix 2021-10-22 09:32:12 +05:30
278dc5c743 merge: Add project-euler problem 12 (#767)
* Add project-euler problem 12

* Fix raised alert in problem 12

* Fixed for loop in Problem012

* fix alerts in Problem012

* Update Problem012
2021-10-21 23:11:11 +05:30
debc707bd6 Auto-update DIRECTORY.md 2021-10-21 17:38:56 +00:00
e5677972de merge: added Problem 25 to Euler (#793)
* added Problem 25

* fixed alert

* fixed alert

* rewrote to improve runtime

* Update Problem025.js

* fixed typo

* added test file for Project-Euler/Problem025.js

* Update Project-Euler/test/Problem025.test.js

Co-authored-by: Rak Laptudirm <raklaptudirm@gmail.com>

* Update Problem025.test.js

Co-authored-by: Rak Laptudirm <raklaptudirm@gmail.com>
2021-10-21 23:08:30 +05:30
1df1cce9ce Auto-update DIRECTORY.md 2021-10-21 17:30:49 +00:00
22ce7603e4 fix: standard style issues 2021-10-21 22:59:56 +05:30
65916747d8 Auto-update DIRECTORY.md 2021-10-21 14:12:26 +00:00
cd60ff0283 fix: remove broken problem 13 2021-10-21 19:42:00 +05:30
d38ebe5199 chore: Merge pull request #768 from lvlte/issues/720
Changes for consolidation
2021-10-21 19:32:55 +05:30
8fa82441bd Auto-update DIRECTORY.md 2021-10-21 13:54:49 +00:00
8381e5e5b3 chore: Merge pull request #799 from VinWare/master
Extended Eucliedian Algorithm added to Maths folder
2021-10-21 19:24:27 +05:30
7148b38730 chore: update dependencies
`standard.js` update
2021-10-21 19:20:00 +05:30
d40cf3f474 Auto-update DIRECTORY.md 2021-10-21 13:42:48 +00:00