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

added array manipulation snippets #216

Merged
merged 2 commits into from
Jan 10, 2025
Merged

Conversation

Mcbencrafter
Copy link
Contributor

@Mcbencrafter Mcbencrafter commented Jan 8, 2025

Description

Added an usefull array manipulation snippet for java:

  • removing duplicates from an list

Type of Change

  • ✨ New snippet
  • πŸ›  Improvement to an existing snippet
  • 🐞 Bug fix
  • πŸ“– Documentation update
  • πŸ”§ Other (please describe):

Checklist

  • I have tested my code and verified it works as expected.
  • My code follows the style and contribution guidelines of this project.
  • Comments are added where necessary for clarity.
  • Documentation has been updated (if applicable).
  • There are no new warnings or errors from my changes.

Related Issues

Additional Context

Screenshots (Optional)

Click to view screenshots

Copy link
Collaborator

@majvax majvax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution ! πŸ™Œ

The code quality is good, with proper generic typing and immutable approaches. However, I recommend we only merge the removeDuplicates function and decline the other two implementations because they have equivalent in the standard library:

  • Collections.sort
  • Collections.reverse

Once these changes are made, we can proceed with merging the removeDuplicates function.

@majvax majvax added the Snippets label Jan 9, 2025
@majvax majvax merged commit 36b129a into technoph1le:main Jan 10, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants