Skip to content

add: two sum #50

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

Merged
merged 3 commits into from
Oct 6, 2022
Merged

add: two sum #50

merged 3 commits into from
Oct 6, 2022

Conversation

ongzx
Copy link
Contributor

@ongzx ongzx commented Oct 4, 2022

This MR adds a new leetcode Easy question (two sum: https://leetcode.com/problems/two-sum/) to the repo.

Copy link
Owner

@ignacio-chiazzo ignacio-chiazzo left a comment

Choose a reason for hiding this comment

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

Hey, thanks for contributing. The solution looks good to me. If we want to save memory in favour of computation we could sort the numbers and use two pointers technique.

Could you add a test file? #49 (comment)

@ignacio-chiazzo ignacio-chiazzo merged commit cce9aea into ignacio-chiazzo:master Oct 6, 2022
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.

2 participants