Skip to content

Commit a316516

Browse files
Update 0454-4Sum-II.md
1 parent a76447e commit a316516

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

dsa-solutions/lc-solutions/0400-0499/0454-4Sum-II.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ sidebar_position: 0451
1212

1313
Given four integer arrays nums1, nums2, nums3, and nums4 all of length n, return the number of tuples (i, j, k, l) such that:
1414

15-
0 <= i, j, k, l < n
15+
`0 <= i`, `j`, `k`, `l < n`
1616
nums1[i] + nums2[j] + nums3[k] + nums4[l] == 0
1717

1818
## Examples
@@ -25,19 +25,20 @@ Explanation:
2525
The two tuples are:
2626
1. (0, 0, 0, 1) -> nums1[0] + nums2[0] + nums3[0] + nums4[1] = 1 + (-2) + (-1) + 2 = 0
2727
2. (1, 1, 0, 0) -> nums1[1] + nums2[1] + nums3[0] + nums4[0] = 2 + (-1) + (-1) + 0 = 0
28+
2829
Example 2:
2930

3031
Input: nums1 = [0], nums2 = [0], nums3 = [0], nums4 = [0]
3132
Output: 1
3233

3334
## Constraints
3435

35-
n == nums1.length
36-
n == nums2.length
37-
n == nums3.length
38-
n == nums4.length
39-
1 <= n <= 200
40-
-228 <= nums1[i], nums2[i], nums3[i], nums4[i] <= 228
36+
- n == nums1.length
37+
- n == nums2.length
38+
- n == nums3.length
39+
- n == nums4.length
40+
- `1 <= n <= 200`
41+
- `-228 <= nums1[i], nums2[i], nums3[i], nums4[i] <= 228`
4142

4243
## Approach
4344

0 commit comments

Comments
 (0)