16 Commits

Author SHA1 Message Date
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
002b10a5aa docs: fix typos (#1283)
* docs: fix typos

* fix
2023-02-07 22:20:28 +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
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
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
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
6656ece534 merge: Improved Memoize function (#912)
* 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
2022-03-02 14:26:16 +05:30
8b1a4b90f6 merge: fix #844 (#846)
* fix #844

* formatted code according to standard.js
2021-11-25 12:33:10 +05:30
ab7e51909a LFUCache/LRUCache : convert live code example to Jest test. 2021-10-09 18:01:42 +02:00
0589fc19e0 Added comments about memoization 2021-10-05 10:37:14 +02:00
8bce33d265 Moving '__tests__' To 'test' 2021-10-05 08:50:12 +02:00
c8fd5353ba Updating Memoize Unit Test 2021-10-04 14:15:21 +02:00
028e098b63 Feat: Added Memoize Func 2021-10-04 13:40:17 +02:00
7822e8a235 Added LFU Cache (#221)
* Added LFU Cache

* Added explaination for the algo

* Fixed Typo
2020-07-07 12:38:18 +05:30
e646b45460 Added LRU Cache (#219) 2020-07-02 16:06:02 +05:30