1704 Commits

Author SHA1 Message Date
c39d6665ce algorithm: logarithmic square root (#1259)
* algorithm: add SquareRootLogarithmic algo and a test for it

* fix: fix spelling errors

* refactor: rename a variable "e" --> "edge"
2022-10-31 22:20:33 +05:30
35e1fe68d0 algorithm: add IntToBase algo and a test for it (#1258) 2022-10-31 22:19:14 +05:30
7fb121508d algorithm: ZFunction (#1239)
* algorithm: ZFunction

* made requested changes

* corrected spelling mistakes

* made requested changes
2022-10-31 22:12:06 +05:30
cc0700f122 conversion: liters to imperial gallons (#1256)
* Added liters to imperial gallons conversion

* Fixed documentation @see

* Pr suggestion
2022-10-31 22:11:29 +05:30
863185d2b4 algorithm class: pyramid (#1254)
* Added pyramid

* Removed * 1

* Change class name
2022-10-31 22:10:36 +05:30
014a38b2d4 algorithm: volume of sphere (#1249)
* Added sphere volume

* Fixed indentation

* Added PR Suggestions
2022-10-31 22:09:41 +05:30
b634aa581c conversion: liters to US gallons (#1255) 2022-10-31 22:07:48 +05:30
8cbaf2e299 convertion: ounce to kilogram (#1248)
* Added ounces to kilograms convertion

* Added PR suggestions

* changed to export default
2022-10-31 22:05:58 +05:30
7256e5313f algorithm class: circle (#1252) 2022-10-31 21:32:35 +05:30
f1ef64cc2d algorithm class: cone (#1253) 2022-10-31 21:31:20 +05:30
c5101e3e2b chore: add reverse to singly linked list (#1241)
* Fix: Reverse Singly Linked List

* Added reverse in SinglyLinkedList

* Added reverse in SinglyLinkedList

* Changes made
2022-10-30 14:46:56 +05:30
b88128dd97 algorithm: LCA by binary lifting (#1237)
* algorithm: LCA by binary lifting

* removed trailing spaces

* reduced code duplication by importing code from other file

* made requested changes
2022-10-30 14:42:40 +05:30
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
5364a1c31b chore: check for invalid input to factorial (#1229) 2022-10-27 20:45:53 +02:00
d9d085faa7 algorithm: binary lifting (#1218)
* Algorithm: BinaryLifting

* Update BinaryLifting.js

* made the requested changes

* added more comments
2022-10-27 19:26:13 +05:30
945657a98f chore: use internal queue definition in BFS Shortest Path (#1230) 2022-10-27 18:45:33 +05:30
b24f1f61cb chore: use internal queue definition in BFS (#1228) 2022-10-27 11:41:39 +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
72ee63ca0f fix: build error due to FindLcm (#1223)
Co-authored-by: patrickwestervelt <pwestervelt3@gatech.edu>
2022-10-24 17:24:45 +05:30
8c27d86afc enhancement: FindLCM algorithm (#1222)
Co-authored-by: patrickwestervelt <pwestervelt3@gatech.edu>
2022-10-23 12:49:19 +05:30
63a3394d95 algorithm: letter combinations (#1209) 2022-10-21 16:54:37 +05:30
ce9e2946be algorithm: kosaraju (#1215)
* kosaraju test added

* Fixes: #1214

* Fixes: #1214

* Update package-lock.json

* Kosaraju.js exports function kosaraju rather than class
2022-10-20 20:35:24 +05:30
6f9a8e4b5a added-ModularArithmetic-code (#1217)
* added-ModularArithmetic-code

* fix-typo

* suggested changes
2022-10-20 20:33:06 +05:30
cf482c4eef fix typo in FenwickTree.js (#1208) 2022-10-20 20:30:43 +05:30
21d73b6447 algorithm: unique paths (#1211)
* dp problem

* update Directory.md

* suggested changes
2022-10-20 20:29:36 +05:30
16fa774012 chore: only test changed packages (#1194) 2022-10-20 15:59:09 +02:00
73bf91d7e1 Add an algorithm to find Taylor series approximation of exponential f… (#1160) 2022-10-20 17:10:22 +05:30
58671861a5 algorithm: SegmentTree (#1178) 2022-10-20 17:09:37 +05:30
636017ca51 algorithm: reverse (#1197) 2022-10-20 17:08:56 +05:30
b07529fb6f tests: Project Euler Problem 3 (#1207) 2022-10-20 17:05:30 +05:30
0084acf2d4 algorithm: sieve (#1205) 2022-10-20 16:50:37 +05:30
55f502e1f1 algorithm: count letters (#1164) 2022-10-19 16:52:27 +05:30
ff606a019e chore: improve the Gitpod file (#1203)
* chore: improve the Gitpod file

* Updated Documentation in README.md

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2022-10-17 16:56:18 -05:00
8b5d006c9b chore: update Discord invite link (#1202) 2022-10-17 19:26:25 +02:00
e65211299b feature: add fast fibonacci algorithm (#1155) 2022-10-17 01:54:44 +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
4ce3dbe6b4 dependencies: update and clean (and auto-fix style issues) (#1195)
* Update npm dependencies (and auto-fix style issues)

* Updated Documentation in README.md

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2022-10-16 16:09:56 +05:30
18baef8e7e feat: insertion sort with binary search (#1182) 2022-10-16 10:47:18 +02:00
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
0df72642a5 algorithm: count the numbers divisible by ‘M’ in a given range (#1185)
*  test cases added for count divisible

*  count divisible math algorithm added

* style fixes
2022-10-15 14:52:44 +05:30
45f0b7cae6 algorithm: check if integer is palindrome (#1177)
* feat: Add check number case

* style: Fix formatting

* fix: Remove number check part

* feat: Create isPalindromeIntegerNumber

* test: Add minus number case
2022-10-15 14:44:44 +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
bd7de6a010 chore: Remove unused deps, clean up package.json a bit (#1176) 2022-10-13 17:27:05 +02:00
32b9a9900e Swapsort algorithm and corresponding tests (#1152) 2022-10-13 17:26:31 +05:30
10079a7b70 Renamed NQueen file, variables to NQueens, raised RangeError exception (#1162) 2022-10-13 17:22:59 +05:30
5a6b1d0d9e feat: Project Euler Problem 17 (#1168) 2022-10-13 10:42:56 +02:00
564ee8527a Add an algorithm to find mean absolute deviation (#1165) 2022-10-12 10:26:09 +05:30