22 Commits

Author SHA1 Message Date
4c18e60671 Refactor BSTFromSortedArray (#4162) 2023-04-22 07:53:12 +00:00
c01a382d94 Remove redundant tree traversals (#4161) 2023-04-21 11:41:24 +03:00
1dc388653a Refactor Code Style (#4151) 2023-04-15 11:25:54 +03:00
0c618b5ee8 Refactoring (#4146) 2023-04-14 08:34:47 +00:00
ad72c28d91 Remove unnecessary code (#4141) 2023-04-03 22:35:59 +08:00
3499c1bee6 Add postorder binary tree traversal (#3899) 2023-02-27 12:06:39 +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
a584ca248c Refactor Level Order Traversal (#3869) 2023-02-14 12:33:14 +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
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
e96f567bfc Format code with prettier (#3375) 2022-10-03 17:23:00 +08: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
8b8e98e89a Fix TreeRandomNode Algorithm (#3174)
Co-authored-by: Yang Libin <contact@yanglibin.info>
2022-07-03 17:49:32 +08:00
68e2ba29d4 Fix typos (fixes #2941) (#2948) 2022-02-20 10:11:41 +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
9fb3364ccc Change project structure to a Maven Java project + Refactor (#2816) 2021-11-12 08:59:36 +02:00