62 Commits

Author SHA1 Message Date
ad72c28d91 Remove unnecessary code (#4141) 2023-04-03 22:35:59 +08:00
2418604f7a Add tests for SinglyLinkedList (#3913) 2023-03-12 13:49:17 +02:00
3e9dd776e5 Make LinkedQueue generic (#3909) 2023-03-05 19:08:42 +00:00
3499c1bee6 Add postorder binary tree traversal (#3899) 2023-02-27 12:06:39 +00:00
b98dc2c5b5 Fix linear probing hash map (#3902) 2023-02-26 21:15:48 +00:00
45923d6872 Add inorder binary tree traversal (#3898) 2023-02-25 20:58:06 +00:00
541f490d1e Valid BST: refactoring + added unit test (#3883)
Co-authored-by: Debasish Biswas <debasishbsws.abc@gmail.com>
2023-02-17 11:43:17 +00:00
d565edc69a Added recursive&iterative preorder binary tree traversal (#3884)
Added recursive& iterative preorder binary tree traversal
2023-02-17 17:04:44 +05:30
69a428470c Add Tarjans Algorithm (#3874) 2023-02-15 20:27:21 +00:00
a584ca248c Refactor Level Order Traversal (#3869) 2023-02-14 12:33:14 +02:00
39df47b5f2 Add Kosaraju Algorithm (#3859) 2023-02-08 18:05:52 +00:00
b14f55096d Fix LFUCache (#3847) 2023-01-15 11:28:16 +02:00
351e85d264 Added same trees algorithm check with a unit test (#3845)
Co-authored-by: Debasish Biswas <debasishbsws.abc@gmail.com>
2023-01-13 20:07:56 +00:00
3b6e3edbfb Vertical order traversal refactoring, added unit test (#3844)
Vertical order traversal refactoring, added test
2023-01-13 19:26:15 +05:30
5aa417b6ae Added Zigzag Traversal of a Binary Tree (#3811)
* Added Zigzag Traversal of a Binary Tree

* fixed file name

Co-authored-by: Albina Gimaletdinova <gimaletdinovaalbina@gmail.com>
2023-01-12 17:36:11 +05:30
9123474729 Add Leftist Heap (#3789)
Co-authored-by: Adrian Paras <aparas@terpmail.umd.edu>
2022-12-29 12:19:35 +00:00
6a0035d872 Add description for SkipList.java (#3503) 2022-12-28 12:01:05 +00:00
5512fea0a8 Improve priority queues with max-heap (#3648) 2022-12-13 20:02:15 +02:00
eb375a6015 Fix spelling (#3444) 2022-11-07 18:31:44 +00:00
3542f1c4c1 Add check if tree is symmetric or not (fixes #3471) (#3472)
Co-authored-by: Amit Kumar <akumar@indeed.com>
Co-authored-by: Andrii Siriak <siryaka@gmail.com>
2022-10-30 10:29:22 +02:00
1e16709680 Update README.md (#3362) 2022-10-23 05:59:40 +00:00
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