feat: Add Binary Search Tree (BST) and AVL Tree implementations#7090
Closed
harsha08-2k6 wants to merge 2 commits intoTheAlgorithms:masterfrom
Closed
feat: Add Binary Search Tree (BST) and AVL Tree implementations#7090harsha08-2k6 wants to merge 2 commits intoTheAlgorithms:masterfrom
harsha08-2k6 wants to merge 2 commits intoTheAlgorithms:masterfrom
Conversation
…BinarySearchTree with insert, delete, search operations- Add inorder, preorder, postorder traversals- Implement AVLTree with self-balancing rotations- Add comprehensive JUnit 5 tests- All code formatted and documented
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #7090 +/- ##
============================================
- Coverage 78.50% 78.24% -0.26%
- Complexity 6752 6813 +61
============================================
Files 759 763 +4
Lines 22402 22624 +222
Branches 4400 4424 +24
============================================
+ Hits 17587 17703 +116
- Misses 4109 4200 +91
- Partials 706 721 +15 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I have read CONTRIBUTING.md
Read the repository's guidelines and rules for contributors before submitting your PR.
This pull request is all my own work -- I have not plagiarized it
Confirm the code is your own original work, not copied from other sources. Add comments with references if you learned from tutorials.
All filenames are in PascalCase
File names must start with capital letters, no underscores.
✅ Correct: BinarySearchTree.java, AVLTree.java, TreeNode.java
❌ Wrong: binarySearchTree.java, binary_search_tree.java
All functions and variable names follow Java naming conventions
Methods: Use camelCase - insert(), search(), findMin()
Variables: Use camelCase - root, balanceFactor, nodeValue
Classes: Use PascalCase - BinarySearchTree, AVLTree
Add this comment block at the top of each file:
java/**
*/
Run this command on all your Java files:
bashclang-format -i --style=file src\main\java\trees*.java
clang-format -i --style=file src\test\java\trees*.java