-
Notifications
You must be signed in to change notification settings - Fork 18.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement SplayTree #5142
Open
TruongNhanNguyen
wants to merge
20
commits into
TheAlgorithms:master
Choose a base branch
from
TruongNhanNguyen:feat/ds/splay_tree
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Implement SplayTree #5142
TruongNhanNguyen
wants to merge
20
commits into
TheAlgorithms:master
from
TruongNhanNguyen:feat/ds/splay_tree
+433
−0
Commits on Jun 15, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 3876802 - Browse repository at this point
Copy the full SHA 3876802View commit details -
Configuration menu - View commit details
-
Copy full SHA for 08f223f - Browse repository at this point
Copy the full SHA 08f223fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6a61536 - Browse repository at this point
Copy the full SHA 6a61536View commit details -
Configuration menu - View commit details
-
Copy full SHA for a357336 - Browse repository at this point
Copy the full SHA a357336View commit details -
- Do not allow duplicate keys and explicitly throw an exception if one is trying to include already existing key - Throw error on deletion if tree is empty - Performing the splay operation before recursion, ensuring that the node to be deleted is at the root or very close to it, simplifying the deletion process.
Configuration menu - View commit details
-
Copy full SHA for 35a77ab - Browse repository at this point
Copy the full SHA 35a77abView commit details -
- inner assignments should be avoided
Configuration menu - View commit details
-
Copy full SHA for 897633d - Browse repository at this point
Copy the full SHA 897633dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3d9cf0e - Browse repository at this point
Copy the full SHA 3d9cf0eView commit details -
- Add `isEmpty` method to check to check the entire tree root and continue using `root == null` checks within recursive calls - Add default branch to switch statement
Configuration menu - View commit details
-
Copy full SHA for 79dad80 - Browse repository at this point
Copy the full SHA 79dad80View commit details -
chore(fix:style): fix Maven checkstyle
Each variable declaration must be in its own statement. [MultipleVariableDeclarations]
Configuration menu - View commit details
-
Copy full SHA for 9fbd1c0 - Browse repository at this point
Copy the full SHA 9fbd1c0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 12effaf - Browse repository at this point
Copy the full SHA 12effafView commit details -
Configuration menu - View commit details
-
Copy full SHA for d07f7bb - Browse repository at this point
Copy the full SHA d07f7bbView commit details -
ref: refactor SplayTree implementation
- Implement 3 traversal class of the `TreeTraversal` interface - Addjust tests to better cover code.
Configuration menu - View commit details
-
Copy full SHA for d069405 - Browse repository at this point
Copy the full SHA d069405View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0c44838 - Browse repository at this point
Copy the full SHA 0c44838View commit details -
Configuration menu - View commit details
-
Copy full SHA for a0b9fd3 - Browse repository at this point
Copy the full SHA a0b9fd3View commit details -
- Make TreeTraversal interface implementations final - Update tests
Configuration menu - View commit details
-
Copy full SHA for 3935b05 - Browse repository at this point
Copy the full SHA 3935b05View commit details -
Configuration menu - View commit details
-
Copy full SHA for 95dc5c9 - Browse repository at this point
Copy the full SHA 95dc5c9View commit details
Commits on Jun 30, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 0fe1dd9 - Browse repository at this point
Copy the full SHA 0fe1dd9View commit details -
Configuration menu - View commit details
-
Copy full SHA for e5a39ae - Browse repository at this point
Copy the full SHA e5a39aeView commit details -
Configuration menu - View commit details
-
Copy full SHA for d2546e7 - Browse repository at this point
Copy the full SHA d2546e7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 16df17c - Browse repository at this point
Copy the full SHA 16df17cView commit details
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.