Skip to content
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
wants to merge 20 commits into
base: master
Choose a base branch
from

Commits on Jun 15, 2024

  1. Configuration menu
    Copy the full SHA
    3876802 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    08f223f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6a61536 View commit details
    Browse the repository at this point in the history
  4. ref: update tests

    TruongNhanNguyen committed Jun 15, 2024
    Configuration menu
    Copy the full SHA
    a357336 View commit details
    Browse the repository at this point in the history
  5. ref: refactor

    - 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.
    TruongNhanNguyen committed Jun 15, 2024
    Configuration menu
    Copy the full SHA
    35a77ab View commit details
    Browse the repository at this point in the history
  6. chore: fix checkstyle warning

    - inner assignments should be avoided
    TruongNhanNguyen committed Jun 15, 2024
    Configuration menu
    Copy the full SHA
    897633d View commit details
    Browse the repository at this point in the history
  7. ref: add tests

    TruongNhanNguyen committed Jun 15, 2024
    Configuration menu
    Copy the full SHA
    3d9cf0e View commit details
    Browse the repository at this point in the history
  8. ref: update implementation

    - 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
    TruongNhanNguyen committed Jun 15, 2024
    Configuration menu
    Copy the full SHA
    79dad80 View commit details
    Browse the repository at this point in the history
  9. chore(fix:style): fix Maven checkstyle

    Each variable declaration must be in its own statement. [MultipleVariableDeclarations]
    TruongNhanNguyen committed Jun 15, 2024
    Configuration menu
    Copy the full SHA
    9fbd1c0 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    12effaf View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    d07f7bb View commit details
    Browse the repository at this point in the history
  12. ref: refactor SplayTree implementation

    - Implement 3 traversal class of the `TreeTraversal` interface
    - Addjust tests to better cover code.
    TruongNhanNguyen committed Jun 15, 2024
    Configuration menu
    Copy the full SHA
    d069405 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    0c44838 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    a0b9fd3 View commit details
    Browse the repository at this point in the history
  15. ref: refactor implementation

    - Make TreeTraversal interface implementations final
    - Update tests
    TruongNhanNguyen committed Jun 15, 2024
    Configuration menu
    Copy the full SHA
    3935b05 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    95dc5c9 View commit details
    Browse the repository at this point in the history

Commits on Jun 30, 2024

  1. Configuration menu
    Copy the full SHA
    0fe1dd9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e5a39ae View commit details
    Browse the repository at this point in the history
  3. ref: update tests

    TruongNhanNguyen committed Jun 30, 2024
    Configuration menu
    Copy the full SHA
    d2546e7 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    16df17c View commit details
    Browse the repository at this point in the history