45 Commits

Author SHA1 Message Date
4fe419ebd8 Add Recursive Reverse of Linked List (#4292)
Co-authored-by: BamaCharanChhandogi <b.c.chhandogi@gmailcom>
2023-08-10 11:38:56 +03:00
2488a2ad51 Code cleanup (#4246) 2023-07-22 15:23:00 +00:00
bc699b86e5 Refactor BinaryTreeIsBalanced algorithm (#4222) 2023-06-26 22:26:17 +08:00
415a04ea7f Add automatic linter (#4214) 2023-06-09 20:05:14 +08:00
00282efd8b style: format code (#4212)
close #4204
2023-06-09 18:52:05 +08:00
deef2ae445 Refactor CreateBinaryTreeFromInorderPreorder (#4190) 2023-05-14 14:52:30 +03:00
3a593d5d3c Cover BSTRecursive with tests (#4180) 2023-05-06 21:10:33 +03:00
f69cd7cfa2 Remove redundant code and add tests for BSTIterative (#4164) 2023-04-24 14:52:38 +03:00
4c18e60671 Refactor BSTFromSortedArray (#4162) 2023-04-22 07:53:12 +00:00
1ce907625b Fix NullPointer Exception (#4142) 2023-04-15 11:10:39 +03:00
8259f0e9cf Add Majority Element (#4131) 2023-04-13 15:28:36 +03: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
dd949e9b5d Increase test coverage (fixes #3895 #3896) (#3897) 2023-03-05 21:03:08 +02: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
27fc872edb Add JUnit tests for priority queue data structure (#3778) 2022-11-27 19:56:16 +08: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
c9e7b219a7 Add unit test for CeilInBinarySearchTree (fixes #3395) (#3396)
Co-authored-by: Amit Kumar <akumar@indeed.com>
2022-10-23 05:47:00 +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
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
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
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
6472d33092 Add heaps folder (#3150)
Co-authored-by: Yang Libin <szuyanglb@outlook.com>
2022-06-20 21:04:13 +03:00
4ccb9f460f Fix the folder structure (#3141) 2022-06-14 21:31:50 +08: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