77 Commits

Author SHA1 Message Date
0fab492ceb fix: Project Euler P35 off-by-one error (#1238)
* fix: Project Euler P35 off-by-one error

* Updated Documentation in README.md

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2022-10-28 22:21:54 +05:30
0529e19426 solution: Project Euler 35 (#1201)
* [CREATE] Problem 28 solution for Project Euler

* [UPDATE] Added an explanation for the formula used in the algorithm

* [CREATE] Added Problem 35 for Project-Euler

* [UPDATE] Little typo in the error string

* [UPDATE] Some algorithm changes

* [UPDATE] Fix test string

* [UPDATE] Change prime numbers generator to import a standard sieve
algorithm.

* [UPDATE] Change sieve algorithm implementation and now the solution
works well. Also added some optimizations
2022-10-24 17:30:33 +05:30
16fa774012 chore: only test changed packages (#1194) 2022-10-20 15:59:09 +02:00
b07529fb6f tests: Project Euler Problem 3 (#1207) 2022-10-20 17:05:30 +05:30
829d3fd807 solution: Project Euler Problem 28 (#1198) 2022-10-17 01:54:11 +05:30
2a62eabfd7 tests: Project Euler Problem 2 (#1200) 2022-10-17 01:52:29 +05:30
8c847e3aea solution: Project Euler Problem 13 (#1173)
* Included Project Euler 13 solution

* Fix review comments

* Fix style

* fix for code review

* fix the review

* Fix Style

Co-authored-by: Matheus Muriel <Matheus_MurielFerreira@swissre.com>
2022-10-15 15:01:02 +05:30
4df1e9e90e tests: Project Euler Problem 1 (#1161)
* 📦 NEW: Added solution for ProjectEuler-007

* 🐛 FIX: Spelling mistake fixes

* 👌 IMPROVE: changed variable name from `inc` to `candidateValue` and thrown error in case of invalid input

* 👌 IMPROVE: Modified the code

* 👌 IMPROVE: Added test case for ProjectEuler Problem001

Co-authored-by: Omkarnath Parida <omkarnath.parida@yocket.in>
2022-10-15 14:58:06 +05:30
36c6a4d29b solution: Project Euler Problem 11 (#1172)
* Included Project Euler 11 solution

* Fix review comments

Co-authored-by: Matheus Muriel <Matheus_MurielFerreira@swissre.com>
2022-10-15 14:56:15 +05:30
148ebd6625 algorithm: Project Euler Problem 44 (#1188)
* [CREATE] Problem 044 from Project Euler

* [UPDATE] Code styling update

* [UPDATE] Change return condition, added an input for main function,
added tests for problem 44

* [UPDATE] minor styling fixes to standard javascript

* [UPDATE] Fix parentheses in main function return
2022-10-15 14:38:48 +05:30
5a6b1d0d9e feat: Project Euler Problem 17 (#1168) 2022-10-13 10:42:56 +02:00
514c7c4c9f feat: added Project Euler Problem 13 (#1150) 2022-10-12 10:24:09 +05:30
d0e61e1f69 solution: ProjectEuler-007 (#1142)
* 📦 NEW: Added solution for ProjectEuler-007

* 🐛 FIX: Spelling mistake fixes

* 👌 IMPROVE: changed variable name from `inc` to `candidateValue` and thrown error in case of invalid input

* 👌 IMPROVE: Modified the code

Co-authored-by: Omkarnath Parida <omkarnath.parida@yocket.in>
2022-10-08 12:27:02 +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
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
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
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
22ce7603e4 fix: standard style issues 2021-10-21 22:59:56 +05:30
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
177f843195 Fix renamed variable after testing ! 2021-10-13 11:49:10 +02:00
98ee73447e Project Euler : add solution for problem 18 (Max Path Sum I) + test. 2021-10-13 11:36:22 +02:00
cb6201f03f Project Euler problems (numbering) : follow naming convention. 2021-10-11 16:17:25 +02:00
df4a783b06 Complying with JavaScript Standard Style (npx standard --fix). 2021-10-11 15:49:24 +02:00
87a3da7e37 Remove console.log 2021-10-11 15:11:52 +02:00
8a7be96c9d Fix non-standard syntax 2021-10-10 19:11:57 +02:00
5f45b540b9 Remove live code & console.log, leave examples as comments (ProjectEuler, Recursive). 2021-10-10 18:18:25 +02:00
cbe7e0c89f Comply with ESM syntax. 2021-10-09 13:18:40 +02:00
46d6855771 chore: Merge pull request #745 from lvlte/ProjectEuler/016
Project Euler - Problem 16
2021-10-08 17:38:55 +05:30
2c273ba662 Use ESM syntax and remove console.log() 2021-10-08 13:26:10 +02:00
52de039184 Use ESM syntax and remove console.log() 2021-10-08 13:21:01 +02:00
697c840cfa Fix syntax (using JavaScript Standard Style) 2021-10-05 19:50:30 +02:00
7027515475 Add tests for ProjectEuler problem 20 (Jest). 2021-10-05 19:29:07 +02:00
7121a6d96e Project Euler : fix solution for problem 20 (Factorial digit sum). 2021-10-05 19:28:17 +02:00
22e194ed39 Add tests for ProjectEuler problem 16 (Jest). 2021-10-05 18:11:21 +02:00
a9e2661dcd Project Euler : add solution for problem 16 (Power digit sum). 2021-10-05 18:06:50 +02:00
1589263947 fixed some spellings 2021-10-05 12:49:23 +05:30
b38a94dda5 Removed mistakenly added semicolon 2021-10-02 23:55:41 +05:30
8b1d10df78 Added ProjectEuler problem 8 with passed test cases 2021-10-02 23:45:28 +05:30
b35104aaa3 chore: Fix code formatting 2021-07-07 23:01:34 +05:30
Kim
22fcd2d5ee code formatted using standard.js 2021-07-07 19:34:04 +03:00
b941672b46 update problem15 2021-07-07 11:33:53 +00:00
db3831401f Add solution for Project-Euler Problem15 2021-07-04 13:53:20 +00:00
311c86a1cf Updated the problem10 solution 2021-05-08 10:37:35 +05:30
1ce4168664 Project euler problem 10 solution and test script 2021-05-06 21:28:40 +05:30
eb0005fae8 Merge pull request #488 from Waddah-JD/project-euler-problem-005
Project Euler problem 005 solution
2021-02-13 22:22:28 +05:30
de4504f71d Rename Problem005.js to Problem5.js 2021-02-13 22:17:14 +05:30
8a1e74f9c3 Merge pull request #491 from Waddah-JD/project-Euler-problem-009-solution
Project Euler problem 009 solution
2021-02-13 21:58:16 +05:30
115ca0f1c2 Rename Problem009.js to Problem9.js 2021-02-13 21:52:01 +05:30