1575 Commits

Author SHA1 Message Date
1e0dd1c44f chore: add appgurueu to CODEOWNERS 2022-04-21 11:40:49 +05:30
eb36e2de62 merge: Format codebase with standard.js (#989)
* Auto-update DIRECTORY.md

* fix: some redundancy according to standard javascript library

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2022-04-21 11:38:38 +05:30
298ab3366c merge: Add proper tests for binary search (#987)
* feat: added alternative binary search

* fix: exchange "dir" for "high"

* fix : fixing code style

* fix: fixed readability

* fix: fixed code smells

* fix: remove binary search alternative

* feat: added tests of binary search interative and recursive

* fix: fixed wrong identation

* fix: refactoring duplicated code of tests
2022-04-21 11:37:20 +05:30
8fc53906e6 merge: FindLCM: Improve code readablility (#985)
* fix: improving code readability

* fix: exchange break to return lcm

* fix: fixing condition for improve readability
2022-04-20 21:29:29 +05:30
40989326f1 Change 1 week to 2 weeks for stale issues 2022-04-17 20:14:59 -05:00
48e3e8d8c9 chore: use stale label to mark something as stale 2022-04-16 21:26:08 +05:30
74857b7a9e merge: Improvement on singly circular linkedList (#981)
* Auto-update DIRECTORY.md

* Update and rename SingleCircularLinkedList.js.js to SinglyCircularLinkedList.js

* Test Case creation for SinglyCircularLinkedList

* Update SinglyCircularLinkedList.js

* Update SinglyCircularLinkedList.test.js

* Update SinglyCircularLinkedList.js

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2022-04-10 15:36:48 +05:30
dfe200a957 merge: Improving coding standard of singly linked list (#980)
* Auto-update DIRECTORY.md

* Changes on SinglyLinkedList

* Spelling change

* Added comment for initiateNodeAndIndex()

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2022-04-09 12:26:22 +05:30
35035f7afa merge: Add test case and fix TimSort algo (#977) 2022-04-03 16:28:36 +05:30
2169e17d47 merge: Add test case to shellSort algorithm (#975) 2022-04-03 16:27:56 +05:30
42b9f64ea1 merge: Update workflow organization and environments (#971)
* chore: only run update directory on `master`

* chore: move codespell to CI workflow

* chore: remove codespell workflow(moved)

* chore: listen for `push` only on `master`

* chore: remove `pull_request` type params
2022-04-03 12:36:12 +05:30
2be0fdcb49 merge: Decimal Expansion (#787)
* Add Math function for representing the decimal expansion of a given fraction (decimal or any base from 2 to 10).

* Auto-update DIRECTORY.md

* DecimalExpansion Jest tests.

* chore: trigger update

* Auto-update DIRECTORY.md

* Auto-update DIRECTORY.md

* chore: trigger checks

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: Rak Laptudirm <rak@laptudirm.com>
Co-authored-by: Rak Laptudirm <raklaptudirm@gmail.com>
2022-04-02 20:40:57 +05:30
6f33f990f2 merge: Add test case and fix pigeonHoleSort Algorithm (#967) 2022-04-01 12:28:43 +05:30
871a49f3cd merge: test case to radixSort Algorithm (#968) 2022-04-01 12:28:12 +05:30
d47555b026 merge: Add test case and fix HeapSort Algorithm (#969) 2022-03-31 19:27:44 +05:30
c21ad2ca7a merge: Improved xorCipher (#965)
* feat: improved memoize function

used Map instead of object & used the JSON.stringfy method for generate a valid string as a key

* docs: modified documentation

* style: format with standard

* docs: modified stringify doc

* refactor: remove two repetition implementation

* feat: added validation, test codes

* chore: remove useless words

* feat: added types for jest

* chore: added link box

* feat: added new validation test casses & methods

* style: formated with standard

* feat: added parse method & test cases

* docs: added js docs

* chore: added default import export

* feat: imporved algorithm via replace method

* test: added two test cases

* feat: added jest type for suggestions

* feat: added `reduceRight` & `trim` method

* chore: added helper variable

* feat: added new rotation option

* Revert "chore: added helper variable"

This reverts commit 489544da0a3d479910fbea020d3be3d0d10681bf.

* remove: yarn lock

* chore: fix grammer

* feat: used replace method & added test case

* feat: remove revert

* chore: added new line
2022-03-29 22:03:26 +05:30
075d35fddb merge: Improved ROT13 function (#964)
* feat: improved memoize function

used Map instead of object & used the JSON.stringfy method for generate a valid string as a key

* docs: modified documentation

* style: format with standard

* docs: modified stringify doc

* refactor: remove two repetition implementation

* feat: added validation, test codes

* chore: remove useless words

* feat: added types for jest

* chore: added link box

* feat: added new validation test casses & methods

* style: formated with standard

* feat: added parse method & test cases

* docs: added js docs

* chore: added default import export

* feat: imporved algorithm via replace method

* test: added two test cases

* feat: added jest type for suggestions

* feat: added `reduceRight` & `trim` method

* chore: added helper variable

* feat: added new rotation option

* Revert "chore: added helper variable"

This reverts commit 489544da0a3d479910fbea020d3be3d0d10681bf.

* remove: yarn lock

* chore: fix grammer

* feat: remove revert

* chore: added new line
2022-03-29 14:24:21 +05:30
cdfa264b33 merge: Improved CaesarsCipher Algorithm (#963)
* chore: added helper variable

* feat: added new rotation option

* Revert "chore: added helper variable"

This reverts commit 489544da0a3d479910fbea020d3be3d0d10681bf.
2022-03-29 12:05:58 +05:30
7d57f7f1a7 merge: cache repeated function calls (#962) 2022-03-28 22:19:29 +05:30
27ae62e5c9 merge: reduce upper & lower & add export default (#960) 2022-03-28 14:59:21 +05:30
3b9af469f6 merge: added reduceRight & trim method (#961) 2022-03-28 14:27:32 +05:30
b4fafb2479 merge: added jest type for suggestions (#959) 2022-03-28 10:53:26 +05:30
1249dbe202 merge: Round-trip testing for Atbash cipher (#958)
- fix the test description
2022-03-28 10:50:16 +05:30
54760214df chore(deps): bump minimist from 1.2.5 to 1.2.6 (#957)
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-28 10:48:05 +05:30
d6a327a988 merge: Add test case and fix the OddEvenSort Algorithm (#955) 2022-03-27 22:45:46 +05:30
47c1c51bc9 merge: Improved ciphers (#954)
* feat: imporved algorithm via replace method

* test: added two test cases
2022-03-27 22:45:14 +05:30
b85bf49a35 merge: Fixed a wrong sentence structure (#952)
* Fixed a typo where the commenting was wrong

* optimised code

* fixed a sentence structure

* changed the sentence structure

* updated pull request

* Update SetBit.js
2022-03-27 22:43:21 +05:30
81c771b901 merge: Improved LRUCache (#953)
* feat: added new validation test casses & methods

* style: formated with standard

* feat: added parse method & test cases

* docs: added js docs

* chore: added default import export
2022-03-27 12:07:54 +05:30
55da7a1d7c merge: Add test case to HeapSort Algorithm (#947) 2022-03-24 21:50:57 +05:30
73efc89d29 merge: Fix GnomeSort algorithm and Add test case to it (#948) 2022-03-24 21:50:39 +05:30
532cf3e613 merge: Add test case to FlashSort algorithm (#946) 2022-03-24 21:50:21 +05:30
233ec596dc merge: Add Graph3 (add DFS in Iterative Way) (#944)
* Add Graph3 (add DFS in Iterative Way)

* Remove example code and add test code (Graph3)

* Remove redundant code (like return undefined)
2022-03-24 12:42:26 +05:30
699146fb4e merge: Add test case to secondLargestElement Algorithm (#945) 2022-03-23 22:13:09 +05:30
ecf7cf9fe3 merge: Add test case to countingSort algorithm (#943) 2022-03-22 20:26:55 +05:30
9681688797 merge: Add CheckExceeding function (#907)
* feat: add checkExceeding function

* test: add test cases of checkExceeding func

* test: add more not increasing words
2022-03-22 14:37:42 +05:30
d246958a4d merge: Added explicit cache feature & optional parameter (#941) 2022-03-22 14:36:21 +05:30
ad68c63947 merge: Added new clean LFUCache class (#939)
* feat: added new clean LFUCache class

* fixed: resolved spell mistake & added test casses
2022-03-21 22:13:45 +05:30
9d2a7f1639 merge: Add test case to ConvexHullGraham Algorithm (#938) 2022-03-21 21:49:45 +05:30
9f7ed56290 merge: Remove duplicate helper functions in cache tests. (#933)
* refactor: added one implementation of fibonacciCahce

* chore: move union function

* chore: renamed the cacheTest file
2022-03-20 13:06:13 +05:30
bb2338216e merge: Add test case to RGBToHex & RailwayTimeConversion algorithm (#935) 2022-03-19 21:20:03 +05:30
5302002197 merge: Add test case to LowerCaseConversion (#934) 2022-03-18 21:13:19 +05:30
e33503fc58 merge: Add test case to DecimalToBinary,DecimalToOctal & OctToDecimal (#932) 2022-03-18 13:57:40 +05:30
92a2f6d106 merge: added @babel/eslint-parser (#931)
* feat: added @babel/eslint-parser

* fix: added package lock
2022-03-17 12:28:44 +05:30
ffa4846994 merge: Add FindMinIterator algorithm (#928)
* FindMinIterator

Do the `standard` thing.

Rename `FindMin` to `FindMinIterator`

Rename to `FindMinIterator`

Pull `FindMin` from `master`

* Remove these separator comments.

Co-authored-by: RuSaG0 <mirzoev-ruslan-2000@mail.ru>
2022-03-16 17:31:25 +05:30
19924251be merge: Add test cases to ArbitraryBase, DateToDay & DateDayDifference Algorithm (#929) 2022-03-16 17:10:31 +05:30
a545f76669 merge: Add test case of SquareRoot function (#926) 2022-03-15 20:39:34 +05:30
0924f1c8c9 merge: Improved abs function (#923)
* feat: added validation, test codes

* chore: remove useless words
2022-03-15 17:41:50 +05:30
80cea0884b merge: Add testcases of BinaryCountSetBits function (#922) 2022-03-15 14:39:18 +05:30
7f479b8ced merge: consistent list syntax in CONTRIBUTING.md (#921)
* feat: add style and run scripts on pre-commit hooks

* Update package-lock.json

* Update CONTRIBUTING.md

* Add period at the end of lines
2022-03-12 10:30:46 +05:30
da6c22704e merge: refactor isEven function (#920)
* refactor: formated docs and functions

* refactor: format all test codes
2022-03-11 22:16:02 +05:30