Skip to content

Update two_sum.py#14243

Open
Tithi234 wants to merge 1 commit intoTheAlgorithms:masterfrom
Tithi234:patch-16
Open

Update two_sum.py#14243
Tithi234 wants to merge 1 commit intoTheAlgorithms:masterfrom
Tithi234:patch-16

Conversation

@Tithi234
Copy link
Contributor

@Tithi234 Tithi234 commented Feb 4, 2026

Describe your change:

  • Handles zero input cases correctly for LCM
  • Ensures LCM results are always non-negative
  • Improves correctness without changing existing algorithm structure

What type of change is this?

  • Fix a bug or typo in an existing algorithm?

Checklist:

  • I have read CONTRIBUTING.md
  • This pull request is all my own work
  • I know that pull requests will not be merged if they fail the automated tests
  • This PR only changes one algorithm file
  • All functions and variable names follow Python naming conventions
  • All function parameters and return values are annotated with Python type hints
  • All functions have doctests that pass the automated testing

@algorithms-keeper algorithms-keeper bot added the tests are failing Do not merge until tests pass label Feb 4, 2026
@Tithi234
Copy link
Contributor Author

Tithi234 commented Feb 4, 2026

Acknowledged the failing CI checks.

I’m reviewing the issues carefully and will update this PR
with a clean fix once everything is resolved.
Thanks for your patience.

Copy link
Contributor

@mindaugl mindaugl left a comment

Choose a reason for hiding this comment

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

No changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tests are failing Do not merge until tests pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants