13 Commits

Author SHA1 Message Date
0182bcacd0 style: remove listIn and listOut (#1669) 2024-06-12 01:41:12 +05:30
314144fae6 Update CircularQueue.js for zero-length case (#1655)
* Update CircularQueue.js

* Update CircularQueue.js

Taking comments into account for refactoring my change.

* Update CircularQueue.js

Adding "this" to checkEmpty()
2024-04-03 20:55:30 +05:30
86d333ee94 feat: Test running overhaul, switch to Prettier & reformat everything (#1407)
* chore: Switch to Node 20 + Vitest

* chore: migrate to vitest mock functions

* chore: code style (switch to prettier)

* test: re-enable long-running test

Seems the switch to Node 20 and Vitest has vastly improved the code's and / or the test's runtime!

see #1193

* chore: code style

* chore: fix failing tests

* Updated Documentation in README.md

* Update contribution guidelines to state usage of Prettier

* fix: set prettier printWidth back to 80

* chore: apply updated code style automatically

* fix: set prettier line endings to lf again

* chore: apply updated code style automatically

---------

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: Lars Müller <34514239+appgurueu@users.noreply.github.com>
2023-10-04 02:38:19 +05:30
e05b4432d8 merge: Improved the complexity of dequeue O(n) to O(1) (#1005)
* 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

* feat: updated the Queue array to linkedlist DS

* chore: fixed grammer

* resolve: removed capacity related codes, & updated test cases

* feat: added length dicrease code on dequeue
2022-05-06 21:50:55 +05:30
4aac366694 merge: Refactor Code and Add test case (#845) 2021-11-25 10:18:26 +05:30
22ce7603e4 fix: standard style issues 2021-10-21 22:59:56 +05:30
449ef45193 Data Structure : Convert live test to Jest test. Remove live code & console.log 2021-10-10 16:25:41 +02:00
a3d44ad3e1 Data Structure : remove live code & console.log 2021-10-10 16:11:06 +02:00
e0eb0631f4 Merge pull request #371 from Sandeepan-Das/add-CircularQueue
Add Circular Queue
2021-05-23 12:58:38 +05:30
e62844f7d2 Update Queue.js 2020-10-31 12:03:11 +05:30
34a8b7065a change from ES5 to ES6 2020-10-27 02:59:07 +06:00
76a82e293a Add Circular Queue 2020-10-02 22:15:29 +05:30
75f6888019 Javascript/Math: editing file name 2020-05-06 18:30:19 +05:30