Skip to content

Add Red-Black Tree implementation in Java#210

Open
baishnvi wants to merge 1 commit intoPrajaktaSathe:mainfrom
baishnvi:add-red-black-tree
Open

Add Red-Black Tree implementation in Java#210
baishnvi wants to merge 1 commit intoPrajaktaSathe:mainfrom
baishnvi:add-red-black-tree

Conversation

@baishnvi
Copy link

Added a full Red-Black Tree implementation in Java.

Features:

  • Node insertion with automatic balancing
  • Left and right rotations
  • Inorder and Preorder traversal with node colors
  • Search functionality
  • Fully tested and ready to use

This PR only includes RedBlackTree.java. Other files are unchanged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant