Skip to content

Leetcode three sum#17

Open
Igneaalis wants to merge 9 commits intomasterfrom
LEETCODE-three-sum
Open

Leetcode three sum#17
Igneaalis wants to merge 9 commits intomasterfrom
LEETCODE-three-sum

Conversation

@Igneaalis
Copy link
Copy Markdown
Owner

Added LEETCODE "three-sum" solution.

@Igneaalis Igneaalis requested a review from Vivelapaix June 3, 2020 10:49
nums.sort()
out = set()
for index, value in enumerate(nums):
self.twoSum(nums[index + 1:], -value, out)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Зачем делать копии списков?

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Про какие копии здесь идёт речь? если про return, то я изменил запись.

@Igneaalis Igneaalis added the question Further information is requested label Jun 5, 2020
@Igneaalis Igneaalis requested a review from Vivelapaix June 5, 2020 00:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

question Further information is requested

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants