1511 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
743b3179f7 merge: Corrected JSdoc typo (#898)
The URL in the Wikipedia link had an extra "h" in the URI Scheme (the part that specifies the protocol, usually `https`). I removed the duplicate "h" and made it into a single "h", now the link works
2022-02-21 16:28:40 +05:30
dbc98d096b merge: Bubble Sort enhancements for nearly sorted or sorted array, added test cases and documentation (#895)
* BubbleSort enacements for nearly sorted or sorted array and added test cases

* BubbleSort enacements for nearly sorted or sorted array and added test cases

* Bubble sort requested changes solved

* standard js style issue fixed
2022-02-19 17:53:54 +05:30
041918d7b7 merge: Upgrade Lower function (#894)
* docs: update the js doc

* pref: Optimize algo via regex

ignore the useless traverse in best case via regex and String.prototype.replace

* test: add some new test cases

* fix: styled with standard

* refactor: remove useless variable
2022-02-19 17:08:55 +05:30
29a3ab73bc merge: Iterator and log methods added for linked lists (#891)
* iterator, log methods added in SL

* iterator, log methods added in DL

* test file added for DoublyLL

* format issue fix
2022-02-18 20:13:45 +05:30
68ca0ceeef merge: optimize the countVowels algo (#886)
* pref: optimize the count vowels algo

simplify the algo by using regex and String.prototype.match method, and modified the JS Doc

* fix: resolve all requests

* pref: optimize the algo by regex

ignore the useless traverse in best case by the help of regex and String.prototype.replace method

* test: add four new test cases

* Revert "test: add four new test cases"
This reverts commit 4609833da146beafe839682d7558edf9f64c96fc.

* style: fromat with standard js
2022-02-17 17:30:04 +05:30
9911410e70 merge: Implement Add Two Numbers (Linked List) (#888)
* Implement Add Two Numbers (Linked List)

* Implement Add Two Numbers (Linked List)

* Implement Add Two Numbers (Linked List)

Co-authored-by: Shakil Ahmmed <shakilahmmed@ShakilAhmmeds-MacBook-Pro.local>
2022-02-17 17:29:36 +05:30
c9701e8a4c merge: Improving the coding standard for AvLTree Data Structure (#882)
* Improving the coding standard for AvLTree Data Structure

* Test case creation for AVLTree

~ Created test cases for AVL Tree
~ Indentation fix for AVLTree.js

* Auto-update DIRECTORY.md

* Change in logic for data list

* Style fix based on standard.js

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2022-02-17 14:08:26 +05:30
6bd2ac682d merge: Decrease time period for marking an issue stale (#885)
* chore: mark stale after 7 days of inactivity

* Auto-update DIRECTORY.md

* chore: length info provided in comments

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2022-02-16 19:26:34 +05:30
833d05d8d0 merge: binarySearch (#884)
* required, optional param left-to-right approch in BS

* base case return early to avoid nested if block

* codes formated with standard.js
2022-02-16 14:24:32 +05:30
c496925d25 merge: rename SinglyLinkList to SinglyLinkedList (#881) 2022-02-14 13:49:10 +05:30
31b06c9abe merge: Let traverseLevel return early if node is null (#878) 2022-01-24 15:13:48 +05:30
7dd99c1c03 merge: chore(deps): bump node-fetch from 2.6.1 to 3.1.1 (#877)
Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 2.6.1 to 3.1.1.
- [Release notes](https://github.com/node-fetch/node-fetch/releases)
- [Changelog](https://github.com/node-fetch/node-fetch/blob/main/docs/CHANGELOG.md)
- [Commits](https://github.com/node-fetch/node-fetch/compare/v2.6.1...v3.1.1)

---
updated-dependencies:
- dependency-name: node-fetch
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-23 16:03:35 +05:30
49fa7d1a9b merge: improve median (#869)
* median

* [/pull/869] make fn pure

* [/pull/869/] pure averageMedian fn

* [/pull/869] formatter
2021-12-20 22:27:05 +05:30
0aa5094bfd merge: add alphanumerical sort (#872)
* alphanumerical sort

* [/pull/872] add description to alphanumerical sort

* [/pull/872] add description to localCompare fn

* [/pull/872] code formatter
2021-12-20 22:23:28 +05:30
ef832f6920 merge: add areaTriangleWithAllThreeSides method in Math/Area.js (#875) 2021-12-15 23:00:11 +05:30
3d2a48f798 merge: Improve Mean method (#874) 2021-12-15 22:58:28 +05:30
bbdb5cf38a merge: Binary Convert (#865)
* Binary Convert

* Update link

* add more test cases
2021-12-14 11:01:52 +05:30
f387ff327c chore: Remove duplicate DigitSum algorithm (#873)
* Auto-update DIRECTORY.md

* chore: remove duplicate algorithm

* Auto-update DIRECTORY.md

* chore: remove duplicate algorithm tests

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2021-12-11 13:40:11 +05:30
c30b897324 merge: count Vowels (#864) 2021-12-11 13:30:26 +05:30
4d55b40c9e merge: Absolute value (#866) 2021-12-11 13:29:19 +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
43515a646b merge: Add Upper (#862) 2021-12-06 21:26:14 +05:30
4c27e1534e merge: Add lower (#863) 2021-12-04 11:01:58 +05:30
62b151eb69 merge: Fixes: #860 (#861) 2021-12-02 16:24:47 +05:30
6fb649e53d merge: Add ValidateUrl in String (#856)
* Add ValidateUrl in String

* change regex

* Bug fix
2021-12-02 16:23:54 +05:30
961f21f97c merge: Add test case and enacements (#858) 2021-12-01 11:38:06 +05:30
c3b2bacf08 merge: fixes: #{} (#853)
* fixes: #{}

* fixes : ISSUE#795

* Fixed ISSUE:795

* Fixed : ISSUE:795

* Fixed ISSUE : 795

* Fixed ISSUE : 795
2021-11-30 18:10:20 +05:30
bf681d1a91 merge: alphaNumericPlaindrome optamization (#857) 2021-11-29 20:45:18 +05:30
6f1edd16f5 merge: Add test Case for Palindrome Recursive (#855)
* Add test Case for Palindrome Recursive

* Update Checks
2021-11-28 13:34:54 +05:30
027c0d6307 merge: Add test cases (#854) 2021-11-28 11:49:11 +05:30
cc34088aae merge: Add Description and Optamization (#852) 2021-11-27 16:50:09 +05:30
51415f8a12 merge: Add test case (#851)
* Add test case

* minor fix

* delete files

* rename file
2021-11-27 12:58:18 +05:30
c33b19a731 merge: Graph (#850)
* Modify Graph bfs method

* add dfs in graph
2021-11-27 11:08:35 +05:30
061218b693 merge: Modify Graph bfs method (#847) 2021-11-26 22:16:23 +05:30
de2708990d merge: Add FindMin (#849) 2021-11-26 22:12:30 +05:30
2fb0d48d94 merge: Add test cases, optamization of code, and Add description of function (#848)
* Add test cases, optamization of code, and Add description of function

* update testcase
2021-11-26 22:08:43 +05:30
8b1a4b90f6 merge: fix #844 (#846)
* fix #844

* formatted code according to standard.js
2021-11-25 12:33:10 +05:30
4aac366694 merge: Refactor Code and Add test case (#845) 2021-11-25 10:18:26 +05:30
2ae00a97dc merge: add description (#843) 2021-11-23 11:34:26 +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
c1c895bebd chore: Add PowLogarithmic in Math (#836)
* Add PowLogarithmic in Math

* add description
2021-11-19 10:40:51 +05:30
65931be0f8 merge: fixed argument data type (#835) 2021-11-08 09:59:07 +05:30
85b0571d81 chore: Strings: Credit Card Validation (#830)
* Add credit card number validator

- Validates the credit card number based on Luhn algorithm

* Test Cases: ValidateCreditCard

* Auto-update DIRECTORY.md

* Fix: Spell check

* Add references and move const inside function

* Add comments

* Fix trailing spaces

* Add short description

* Remove trailing spaces

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2021-11-04 13:34:52 +05:30
64920bf1a3 merge: Removed ignored code files form codespell workflow. (#834)
* Auto-update DIRECTORY.md

* chore: remove ignored code files

* chore: ignore more words

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2021-11-03 11:26:38 +05:30
308b022b03 merge: Sliding window (#833)
* new algorithm 'Sliding-Window' added with example 'Longest Substring Without Repeating Characters'

* new example of sliding window 'Permutation in String' added

* chore: add `ignore_words_list`

* sliding-window moved into Dynamic-programming directory

Co-authored-by: Rak Laptudirm <raklaptudirm@gmail.com>
2021-11-03 09:33:20 +05:30
12cf29ef18 fix: endlines in the CI file 2021-11-02 10:57:57 -06:00