Skip to content

Add 4-Sum Problem implementation #5787

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

volimroze
Copy link

@volimroze volimroze commented Oct 13, 2024

Description:

This PR adds an implementation of the 4-Sum Problem in Java. It uses a two-pointer approach to find all unique quadruplets that sum up to a target value.

  • The class FourSumProblem is added under the package foursum.

Checklist:

  • I have read CONTRIBUTING.md.
  • This pull request is all my own work.
  • 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.

@codecov-commenter
Copy link

codecov-commenter commented Oct 13, 2024

Codecov Report

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

Project coverage is 64.12%. Comparing base (c301fec) to head (551a7ce).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
...in/java/com/thealgorithms/misc/FourSumProblem.java 0.00% 24 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #5787      +/-   ##
============================================
- Coverage     64.13%   64.12%   -0.02%     
- Complexity     4205     4217      +12     
============================================
  Files           587      589       +2     
  Lines         16388    16450      +62     
  Branches       3163     3180      +17     
============================================
+ Hits          10511    10549      +38     
- Misses         5448     5472      +24     
  Partials        429      429              

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

@siriak
Copy link
Member

siriak commented Oct 15, 2024

We don't add leetcode problems

@siriak siriak closed this Oct 15, 2024
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.

3 participants