Skip to content

Commit dc17676

Browse files
committed
#1 description update
1 parent 2ce8f72 commit dc17676

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

c-sharp/Problems/arrays-and-hashing/TwoSum.cs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
**
55
* Given an array of integers nums and an integer target,
66
* return indices of the two numbers such that they add up to target.
7-
* You may assume that each input would have exactly one solution, and you may not use the same element twice.
7+
*
8+
* You may assume that each input would have exactly one solution,
9+
* and you may not use the same element twice.
810
*
911
* You can return the answer in any order.
1012
*
@@ -22,9 +24,9 @@
2224
* Output: [0,1]
2325
*
2426
* Constraints:
25-
* • 2 <= nums.length <= 104
26-
* • -109 <= nums[i] <= 109
27-
* • -109 <= target <= 109
27+
* • 2 <= nums.length <= 10^4
28+
* • -10^9 <= nums[i] <= 10^9
29+
* • -10^9 <= target <= 10^9
2830
* • Only one valid answer exists.
2931
*
3032
* Follow-up: Can you come up with an algorithm that is less than O(n2) time complexity?

0 commit comments

Comments
 (0)