Commit Graph

56 Commits

Author SHA1 Message Date
Radhika Shah
9f5478f599 Fix a wrong comment in the tree postorder traversal (#5774) 2024-10-15 13:26:10 +03:00
Sailok Chinta
e263edcfe0 Add QuadTree data structure (#5681) 2024-10-12 10:23:41 +03:00
xuyang471
48c65e4c5e Add boundary traversal of binary tree (#5639) 2024-10-09 19:50:30 +00:00
Sailok Chinta
5dcf6c0f29 Enhance Trie data structure with added methods and tests (#5538) 2024-10-07 21:11:55 +00:00
ShreeHarish
4008e4967c Add treap class (#5563) 2024-10-06 10:01:54 +03:00
Hardik Pawar
ce34595628 Improve TrieImp.java comments & enhance readability (#5526) 2024-10-05 12:47:52 +03:00
SOZEL
a5b083cab0 Add SplayTree (#5142) 2024-09-01 23:25:34 +03:00
mountdisk
7c58b190c8 chore: fix some comments (#5333) 2024-08-16 20:19:15 +03:00
Samuel Facchinello
74e51990c1 style: enable InvalidJavadocPosition in checkstyle (#5237)
enable style InvalidJavadocPosition

Co-authored-by: Samuel Facchinello <samuel.facchinello@piksel.com>
2024-06-18 19:34:22 +02:00
Samuel Facchinello
87b17e0571 style: enable NeedBraces in checkstyle (#5227)
* enable style NeedBraces

* style: enable NeedBraces in checkstyle

---------

Co-authored-by: Samuel Facchinello <samuel.facchinello@piksel.com>
2024-06-13 21:00:16 +02:00
Piotr Idzik
5e4db7baf1 style: include SS_SHOULD_BE_STATIC (#5198) 2024-06-02 02:54:11 +05:30
Godwill Christopher
c42b1c940c style: enable ParameterName in CheckStyle. (#5196)
* Enabled: ParameterName in CheckStyle.

* Refactored to fix  bug caused by selfAssignment of variables in VectorCrossproduct class
2024-05-31 22:01:11 +02:00
S. Utkarsh
a6e873deef style: enable MemberName in checkstyle (#5193)
* style: enable MemberName in checkstyle

* style: simply uncomment `MemberName`

---------

Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>
2024-05-29 20:44:14 +00:00
S. Utkarsh
25d711c5d8 style: enable LocalVariableName in CheckStyle (#5191)
* style: enable LocalVariableName in checkstyle

* Removed minor bug

* Resolved Method Name Bug

* Changed names according to suggestions
2024-05-28 20:29:28 +02:00
Godwill Christopher
295e7436b1 style: enable MethodName in CheckStyle (#5182)
enabled: MethodName in CheckStyle
2024-05-27 09:06:06 +02:00
vaibhav9t1
9eaa2bb756 style: enable MultipleVariableDeclarations in checkstyle (#5175)
Co-authored-by: vaibhav <vaibhav.waghmare@techprescient.com>
2024-05-25 20:18:27 +02:00
Piotr Idzik
8be8b953ab style: do not suppress this-escape (#5166) 2024-05-20 16:09:23 +00:00
Godwill Christopher
0f42e995a4 style: enabled InnerAssignment in checkstyle (#5162)
* style: enabled InnerAssignment in checkstyle

* Refactor code formatting in KnapsackMemoization.java and UnionFind.java

* style: remove redundant blank line

* style: mark `includeCurrentItem` and `excludeCurrentItem` as `final`

* style: remove `KnapsackMemoization` from `pmd-exclude.properties`

* style: use `final`

---------

Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>
2024-05-16 16:46:03 +00:00
Godwill Christopher
bbef89c885 refactor: simplify logic of Point::equals in KDTree (#5158) 2024-05-12 12:37:14 +02:00
Godwill Christopher
5703be5953 style: enable EqualsHashCode in checkstyle (#5157) 2024-05-12 11:38:07 +02:00
Godwill Christopher
bbe4a025df style: enable FinalClass in checkstyle (#5154) 2024-05-11 08:50:05 +02:00
Piotr Idzik
d3bb691f59 style: enable HideUtilityClassConstructor in checkstyle (#5147) 2024-05-08 09:58:29 +03:00
Piotr Idzik
414835db11 style: enable AvoidStarImport in checkstyle (#5141) 2024-05-05 20:48:56 +02:00
Piotr Idzik
b3903f5768 style: enable RedundantModifier in checkstyle (#5140) 2024-05-03 22:10:49 +03:00
marysiuniq
1e2d7e9431 style: enable ConstantName in checkstyle (#5139)
Co-authored-by: Maria Paszkiewicz SCC <maria.paszkiewicz@kit.edu>
2024-05-02 18:31:37 +02:00
Ranjeet Kumar Jena
cc9afea036 Fix formatting (#4259)
Co-authored-by: Ranjeet Kumar Jena <ranjeetjena06@gmai.com>
Co-authored-by: Andrii Siriak <siryaka@gmail.com>
2023-07-27 08:50:47 +05:30
Ranjeet Kumar Jena
ef4ef42ed3 Remove duplicated lines (#4258)
Co-authored-by: Ranjeet Kumar Jena <ranjeetjena06@gmai.com>
Co-authored-by: Andrii Siriak <siryaka@gmail.com>
2023-07-25 13:36:00 +03:00
HManiac74
2488a2ad51 Code cleanup (#4246) 2023-07-22 15:23:00 +00:00
Albina Gimaletdinova
bc699b86e5 Refactor BinaryTreeIsBalanced algorithm (#4222) 2023-06-26 22:26:17 +08:00
acbin
415a04ea7f Add automatic linter (#4214) 2023-06-09 20:05:14 +08:00
acbin
00282efd8b style: format code (#4212)
close #4204
2023-06-09 18:52:05 +08:00
Albina Gimaletdinova
deef2ae445 Refactor CreateBinaryTreeFromInorderPreorder (#4190) 2023-05-14 14:52:30 +03:00
Albina Gimaletdinova
3a593d5d3c Cover BSTRecursive with tests (#4180) 2023-05-06 21:10:33 +03:00
Albina Gimaletdinova
f69cd7cfa2 Remove redundant code and add tests for BSTIterative (#4164) 2023-04-24 14:52:38 +03:00
Albina Gimaletdinova
4c18e60671 Refactor BSTFromSortedArray (#4162) 2023-04-22 07:53:12 +00:00
Albina Gimaletdinova
c01a382d94 Remove redundant tree traversals (#4161) 2023-04-21 11:41:24 +03:00
Saurabh Rahate
1dc388653a Refactor Code Style (#4151) 2023-04-15 11:25:54 +03:00
Ishan Makadia
0c618b5ee8 Refactoring (#4146) 2023-04-14 08:34:47 +00:00
Saurabh Rahate
ad72c28d91 Remove unnecessary code (#4141) 2023-04-03 22:35:59 +08:00
Albina Gimaletdinova
3499c1bee6 Add postorder binary tree traversal (#3899) 2023-02-27 12:06:39 +00:00
Albina Gimaletdinova
45923d6872 Add inorder binary tree traversal (#3898) 2023-02-25 20:58:06 +00:00
Albina Gimaletdinova
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
Albina Gimaletdinova
d565edc69a Added recursive&iterative preorder binary tree traversal (#3884)
Added recursive& iterative preorder binary tree traversal
2023-02-17 17:04:44 +05:30
Albina Gimaletdinova
a584ca248c Refactor Level Order Traversal (#3869) 2023-02-14 12:33:14 +02:00
Albina Gimaletdinova
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
Albina Gimaletdinova
3b6e3edbfb Vertical order traversal refactoring, added unit test (#3844)
Vertical order traversal refactoring, added test
2023-01-13 19:26:15 +05:30
Albina
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
Amit Kumar
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
acbin
e96f567bfc Format code with prettier (#3375) 2022-10-03 17:23:00 +08:00
Zohaib Hussain
12a4e27213 Fix printTreepre (#3218) 2022-08-18 20:40:20 +03:00