22 Commits

Author SHA1 Message Date
8bf29fe17c merge: Optimize the space complexity of the fibonacci algo (#899)
* docs: update js doc

* feat: add number type validation condition

* pref: Optimize space complexity

remove the Array from the algo and used two flag varible to calculate last two numbers & optimize the sapce complexity O(n) to O(1)

* test: add test case for invalid types
2022-02-22 16:20:46 +05:30
7560beb068 merge: Add tests and docs for the Longest Common Subsequence algorithm (#867)
* Refactors, adds tests and comments to longest common subsequence algorithm

* Refactor docs for longest common subsequence algorithm

* Add links to wikipedia and leetcode

* Fix styling

* Refactor variable naming and jsdoc
2021-12-08 17:20:23 +05:30
4e7a15694b merge: add test case and description (#842) 2021-11-22 22:23:48 +05:30
02a4cee5c2 merge: optamization,documantation,return Array[bool] => Array[primes only], test case (#841) 2021-11-20 17:15:36 +05:30
93e57b0de5 merge: Add FibonacciNumber.js test case and update the decription of function. (#840) 2021-11-20 16:21:25 +05:30
f379475723 merge: Add TribonacciNumber in dp (#839) 2021-11-20 09:43:27 +05:30
e4d69f8d9c chore: Merge pull request #776 from raghhavtaneja/raghhavtaneja-patch-1
Create RodCutting.js
2021-10-20 15:16:04 +05:30
67ec915d97 added throwing an error when array with <3 items is passed 2021-10-15 21:49:29 +05:30
41ddee7074 Added Maximum product of 3 numbers in an array 2021-10-14 21:10:34 +05:30
5210273104 resolved style issues in the code 2021-10-12 16:55:56 +05:30
0ae960c4ee added tests for rodCutting and made some changes 2021-10-12 11:06:21 +05:30
ed49e122a7 tried to fix tests 2021-10-06 15:34:08 +05:30
5a59d1efc0 changes made 2021-10-06 15:02:37 +05:30
3a8e336262 added documentation, js standard style and jest testing to kadane algorithm file. 2021-10-06 14:45:07 +05:30
1589263947 fixed some spellings 2021-10-05 12:49:23 +05:30
199d2637cc Update LongestPalindromicSubsequence.test.js 2021-10-04 17:39:26 +05:30
e0c5d494ae Added space after comma 2021-10-03 21:20:53 +05:30
63ceac0925 Added test cases for TrappingRainWater 2021-10-03 21:13:08 +05:30
db3caea70f Added test cases for LongestValidParentheses 2021-10-03 20:58:53 +05:30
acd670bb2e Added test cases for LongestPalindromicSubsequence 2021-10-03 20:38:23 +05:30
9cf1e55859 Added the tests for coinChangeMin function 2021-08-15 15:35:35 +05:30
fa1524498b Added 2 Base tests and 5 main tests for CoinChange Problem. Refactored the code and removed the Memoized approach as it was not necessary 2021-08-13 12:53:34 +05:30