Skip to content

Commit 77d29c8

Browse files
authored
Update 001._two_sum.md
1 parent 5844d9e commit 77d29c8

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

docs/Leetcode_Solutions/Python/001._two_sum.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,20 @@
77
> 原题连接
88
99
* https://leetcode.com/problems/two-sum
10-
* https://leetcode-cn.com/problems/two-sum/description
1110

1211
> 内容描述
1312
1413
```
15-
给定 nums = [2, 7, 11, 15], target = 9
14+
Given an array of integers, return indices of the two numbers such that they add up to a specific target.
1615
17-
因为 nums[0] + nums[1] = 2 + 7 = 9
18-
所以返回 [0, 1]
16+
You may assume that each input would have exactly one solution, and you may not use the same element twice.
17+
18+
Example:
19+
20+
Given nums = [2, 7, 11, 15], target = 9,
21+
22+
Because nums[0] + nums[1] = 2 + 7 = 9,
23+
return [0, 1].
1924
```
2025

2126
## 解题方案

0 commit comments

Comments
 (0)