Skip to content

Created Remove Duplicate From Sorted Array #6335

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

Closed

Conversation

amankumar100
Copy link

Added a Java program to remove duplicates from a sorted array using the two-pointer technique with O(1) space. Accepts user input and prints the number of unique elements along with the modified array.

  • I have read CONTRIBUTING.md.
  • This pull request is all my own work -- I have not plagiarized it.
  • All filenames are in PascalCase.
  • All functions and variable names follow Java naming conventions.
  • All new algorithms have a URL in their comments that points to Wikipedia or other similar explanations.
  • All new code is formatted with clang-format -i --style=file path/to/your/file.java

Implement in-place duplicate removal from sorted array using two-pointer technique.
@codecov-commenter
Copy link

codecov-commenter commented Jul 3, 2025

Codecov Report

Attention: Patch coverage is 0% with 8 lines in your changes missing coverage. Please review.

Project coverage is 74.29%. Comparing base (712ada5) to head (a983e46).

Files with missing lines Patch % Lines
...rithms/others/RemoveDuplicatesFromSortedArray.java 0.00% 8 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #6335      +/-   ##
============================================
- Coverage     74.33%   74.29%   -0.05%     
+ Complexity     5392     5390       -2     
============================================
  Files           679      680       +1     
  Lines         18820    18828       +8     
  Branches       3646     3648       +2     
============================================
- Hits          13990    13988       -2     
- Misses         4274     4282       +8     
- Partials        556      558       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@codingmydna
Copy link
Contributor

This is a LeetCode problem, which is not allowed by the CONTRIBUTING.md guideline.

@siriak siriak closed this Jul 3, 2025
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.

4 participants