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

Refactor and enhance data structures #8

Merged
merged 2 commits into from
Jul 1, 2024
Merged

Refactor and enhance data structures #8

merged 2 commits into from
Jul 1, 2024

Conversation

walmir-silva
Copy link
Contributor

Refactor and enhance data structures

  • ArrayDeque:

    • Implemented addLast and removeFirst methods.
    • Added extensive tests for addFirst, removeLast, peekLast, and more.
  • ArrayQueue:

    • Added add method to comply with Queue interface.
    • Created thorough tests for enqueue, dequeue, peek, and related operations.
  • TreeSet:

    • Implemented find method.
    • Added union, intersection, and difference methods.
    • Developed comprehensive tests for all methods, including find.
  • HashMap:

    • Introduced getIterator method for iterable support.
    • Ensured full test coverage, including iteration over key-value pairs.

Overall, enhanced functionality, ensured robustness, and improved test coverage for key data structures.

- ArrayDeque:
  - Implemented addLast and removeFirst methods.
  - Added extensive tests for addFirst, removeLast, peekLast, and more.

- ArrayQueue:
  - Added add method to comply with Queue interface.
  - Created thorough tests for enqueue, dequeue, peek, and related operations.

- TreeSet:
  - Implemented find method.
  - Added union, intersection, and difference methods.
  - Developed comprehensive tests for all methods, including find.

- HashMap:
  - Introduced getIterator method for iterable support.
  - Ensured full test coverage, including iteration over key-value pairs.

Overall, enhanced functionality, ensured robustness, and improved test coverage for key data structures.
@walmir-silva walmir-silva merged commit a6a15de into main Jul 1, 2024
1 check passed
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