Skip to content

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