41 Commits

Author SHA1 Message Date
8855cf9525 Optimize Hashmap implementation (#3533) 2022-10-17 14:36:09 +00:00
471d2c0b5d Fix CircularBuffer and add unit tests (#3411) 2022-10-06 16:51:10 +08:00
e96f567bfc Format code with prettier (#3375) 2022-10-03 17:23:00 +08:00
d56eaa58af Add LRUCacheTest and MRUCacheTest (fixes #3263) (#3277) 2022-09-19 20:55:15 +03:00
12a4e27213 Fix printTreepre (#3218) 2022-08-18 20:40:20 +03:00
05660dae92 Add K-D Tree (#3210) 2022-08-13 11:00:00 +00:00
3e8f30c72a Add Lazy Segment Tree (#3209) 2022-08-10 17:27:53 +00:00
9b13852f20 Fix missing package paths (#3196) (#3198) 2022-07-22 22:51:38 +03:00
0abce97682 Add Hash Table with Cuckoo Hashing (#3191) 2022-07-18 18:01:29 +00:00
ffd02504d9 Add generic hashmaps (#3195) 2022-07-17 23:00:55 +03:00
1a9937c7cb Add index validation to Min Heap and Max Heap (#3189)
Co-authored-by: Andrii Siriak <siryaka@gmail.com>
2022-07-13 17:40:21 +00:00
8c8a61a224 Fix CircleLinkedList toString (#3182) 2022-07-07 14:18:46 +08:00
f7c40ad749 Change filename for Intersection.java file (#3178)
Co-authored-by: Yang Libin <contact@yanglibin.info>
2022-07-05 17:50:46 +08:00
8b8e98e89a Fix TreeRandomNode Algorithm (#3174)
Co-authored-by: Yang Libin <contact@yanglibin.info>
2022-07-03 17:49:32 +08:00
6665ab262c Add a check of the existance of a next node (#3051)
* Fix #2976

Co-authored-by: Sahil Prafulkumar Parekh <sh883193@dal.ca>
Co-authored-by: Yang Libin <contact@yanglibin.info>
2022-06-29 20:02:40 +08:00
bf3ad33d34 Fix typo (#3167) 2022-06-27 05:36:39 +00:00
e572354976 Fix off-by-one mistake in MinHeap.java (#3162) 2022-06-23 09:27:21 +03:00
2a2c575c89 Add LFU Cache (#3161) 2022-06-22 19:31:24 +03:00
d14a5d1eed Fix SkipList remove operation (#3160) 2022-06-22 21:56:35 +08:00
e59568bc5e Add Skip List (#3154) 2022-06-21 10:41:22 +03:00
22be348c54 Add algorithm to find Hamiltonian cycle (#3151) 2022-06-20 21:07:41 +03:00
ec1ab53eea Reduce memory usage of bloom filter (#3115) 2022-06-10 20:44:23 +03:00
10f41eeee9 Add max of mins algorithm (#3044) 2022-05-08 12:05:05 +03:00
f272d8a949 Add Bloom Filter (#3042) 2022-05-04 09:24:19 +03:00
00c758a299 Add Fibonacci Heap (#3037) 2022-05-02 18:56:05 +03:00
3ebba74e04 Fix some typos (#3038) 2022-04-28 21:09:25 +08:00
7c31c5bada Add else clause for node (#3014)
Co-authored-by: Samir M'Sallem <samir.msallem@valtech-mobility.com>
Co-authored-by: Andrii Siriak <siryaka@gmail.com>
2022-04-22 19:50:04 +03:00
77bcd4daa3 Fix singly linked list (#2988) 2022-04-03 16:11:43 +03:00
d53c2cef8c Modify singly linked list swap function to swap nodes (#2983) 2022-03-26 21:31:11 +02:00
1d5d672fbd Refactor to remove code smells (#2982)
Co-authored-by: Rushi <rs397441@dal.ca>
2022-03-21 20:35:11 +02:00
4da27429c4 Add Largest Rectangle Problem (fixes #2916) (#2971) 2022-03-14 23:19:42 +02:00
f0b52022e8 Fix spelling (#2973) 2022-03-08 17:46:01 +02:00
1ac1a5a6a5 Add Postfix to Infix using Stack (fixes #2339) (#2970) 2022-03-06 08:59:45 +02:00
68e2ba29d4 Fix typos (fixes #2941) (#2948) 2022-02-20 10:11:41 +02:00
a30f08b8b2 Fix typo (#2950) 2022-02-18 21:58:22 +02:00
e4fa83bd29 Add select random tree node algorithm (#2906)
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: Andrii Siriak <siryaka@gmail.com>
2022-01-21 21:20:11 +02:00
1f50c40e5d Add Next Greater and Next Smaller Elements using Stack (#2858) 2021-12-06 22:07:26 +02:00
bc6de37a53 Add RandomNode in lists section (#2851)
Co-authored-by: Yang Libin <contact@yanglibin.info>
2021-11-30 10:22:01 +08:00
fb3cec06a1 Fix a bug in A_Star.Graph in jdk17 (#2842)
Co-authored-by: Andrii Siriak <siryaka@gmail.com>
2021-11-24 10:29:38 +02:00
6c00beec90 Fix NoClassDefFoundError exception (#2838)
Co-authored-by: Andrii Siriak <siryaka@gmail.com>
2021-11-23 08:55:24 +02:00
9fb3364ccc Change project structure to a Maven Java project + Refactor (#2816) 2021-11-12 08:59:36 +02:00