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

Solve Problem 454. 4Sum II #1503

Merged
merged 3 commits into from
Jul 30, 2024
Merged

Solve Problem 454. 4Sum II #1503

merged 3 commits into from
Jul 30, 2024

Conversation

threeal
Copy link
Owner

@threeal threeal commented Jul 28, 2024

This pull request resolves #1502 by solving the problem 454. 4Sum II in C++. It solves the problem by precalculating the first two pairs and storing them in a hash map. It then checks whether the last two pairs have a match in the hash map and counts the total pairs accordingly.

@threeal threeal added this to the July 2024 milestone Jul 28, 2024
@threeal threeal self-assigned this Jul 28, 2024
@threeal threeal force-pushed the solve-problem-454 branch from 00a01ee to 96461d5 Compare July 30, 2024 04:46
@threeal threeal marked this pull request as ready for review July 30, 2024 05:01
@threeal threeal force-pushed the solve-problem-454 branch from b94f006 to 4befc5c Compare July 30, 2024 05:05
@threeal threeal merged commit 08fd270 into main Jul 30, 2024
2 checks passed
@threeal threeal deleted the solve-problem-454 branch July 30, 2024 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Solve Problem 454. 4Sum II
1 participant