Skip to content

Commit 136b53f

Browse files
authored
Removed escape for square brackets.
1 parent 6ecd93a commit 136b53f

File tree

248 files changed

+987
-987
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

248 files changed

+987
-987
lines changed

src.save/main/java/g0001_0100/s0001_two_sum/readme.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,23 @@ You can return the answer in any order.
1010

1111
**Example 1:**
1212

13-
**Input:** nums = \[2,7,11,15\], target = 9
13+
**Input:** nums = [2,7,11,15], target = 9
1414

15-
**Output:** \[0,1\]
15+
**Output:** [0,1]
1616

17-
**Output:** Because nums\[0\] + nums\[1\] == 9, we return \[0, 1\].
17+
**Output:** Because nums[0] + nums[1] == 9, we return [0, 1].
1818

1919
**Example 2:**
2020

21-
**Input:** nums = \[3,2,4\], target = 6
21+
**Input:** nums = [3,2,4], target = 6
2222

23-
**Output:** \[1,2\]
23+
**Output:** [1,2]
2424

2525
**Example 3:**
2626

27-
**Input:** nums = \[3,3\], target = 6
27+
**Input:** nums = [3,3], target = 6
2828

29-
**Output:** \[0,1\]
29+
**Output:** [0,1]
3030

3131
**Constraints:**
3232

src.save/main/java/g0001_0100/s0002_add_two_numbers/readme.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,23 @@ You may assume the two numbers do not contain any leading zero, except the numbe
1010

1111
![](https://assets.leetcode.com/uploads/2020/10/02/addtwonumber1.jpg)
1212

13-
**Input:** l1 = \[2,4,3\], l2 = \[5,6,4\]
13+
**Input:** l1 = [2,4,3], l2 = [5,6,4]
1414

15-
**Output:** \[7,0,8\]
15+
**Output:** [7,0,8]
1616

1717
**Explanation:** 342 + 465 = 807.
1818

1919
**Example 2:**
2020

21-
**Input:** l1 = \[0\], l2 = \[0\]
21+
**Input:** l1 = [0], l2 = [0]
2222

23-
**Output:** \[0\]
23+
**Output:** [0]
2424

2525
**Example 3:**
2626

27-
**Input:** l1 = \[9,9,9,9,9,9,9\], l2 = \[9,9,9,9\]
27+
**Input:** l1 = [9,9,9,9,9,9,9], l2 = [9,9,9,9]
2828

29-
**Output:** \[8,9,9,9,0,0,0,1\]
29+
**Output:** [8,9,9,9,0,0,0,1]
3030

3131
**Constraints:**
3232

src.save/main/java/g0001_0100/s0004_median_of_two_sorted_arrays/readme.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,35 +8,35 @@ The overall run time complexity should be `O(log (m+n))`.
88

99
**Example 1:**
1010

11-
**Input:** nums1 = \[1,3\], nums2 = \[2\]
11+
**Input:** nums1 = [1,3], nums2 = [2]
1212

1313
**Output:** 2.00000
1414

15-
**Explanation:** merged array = \[1,2,3\] and median is 2.
15+
**Explanation:** merged array = [1,2,3] and median is 2.
1616

1717
**Example 2:**
1818

19-
**Input:** nums1 = \[1,2\], nums2 = \[3,4\]
19+
**Input:** nums1 = [1,2], nums2 = [3,4]
2020

2121
**Output:** 2.50000
2222

23-
**Explanation:** merged array = \[1,2,3,4\] and median is (2 + 3) / 2 = 2.5.
23+
**Explanation:** merged array = [1,2,3,4] and median is (2 + 3) / 2 = 2.5.
2424

2525
**Example 3:**
2626

27-
**Input:** nums1 = \[0,0\], nums2 = \[0,0\]
27+
**Input:** nums1 = [0,0], nums2 = [0,0]
2828

2929
**Output:** 0.00000
3030

3131
**Example 4:**
3232

33-
**Input:** nums1 = \[\], nums2 = \[1\]
33+
**Input:** nums1 = [], nums2 = [1]
3434

3535
**Output:** 1.00000
3636

3737
**Example 5:**
3838

39-
**Input:** nums1 = \[2\], nums2 = \[\]
39+
**Input:** nums1 = [2], nums2 = []
4040

4141
**Output:** 2.00000
4242

src.save/main/java/g0001_0100/s0008_string_to_integer_atoi/readme.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ The algorithm for `myAtoi(string s)` is as follows:
3333
Step 3: "42" ("42" is read in)
3434
^
3535

36-
The parsed integer is 42. Since 42 is in the range \[-2<sup>31</sup>, 2<sup>31</sup> - 1\], the final result is 42.
36+
The parsed integer is 42. Since 42 is in the range [-2<sup>31</sup>, 2<sup>31</sup> - 1], the final result is 42.
3737

3838
**Example 2:**
3939

@@ -51,7 +51,7 @@ The parsed integer is 42. Since 42 is in the range \[-2<sup>31</sup>, 2<sup>31</
5151
^
5252
The parsed integer is -42.
5353

54-
Since -42 is in the range \[-2<sup>31</sup>, 2<sup>31</sup> - 1\], the final result is -42.
54+
Since -42 is in the range [-2<sup>31</sup>, 2<sup>31</sup> - 1], the final result is -42.
5555

5656
**Example 3:**
5757

@@ -69,7 +69,7 @@ Since -42 is in the range \[-2<sup>31</sup>, 2<sup>31</sup> - 1\], the final res
6969
^
7070
The parsed integer is 4193.
7171

72-
Since 4193 is in the range \[-2<sup>31</sup>, 2<sup>31</sup> - 1\], the final result is 4193.
72+
Since 4193 is in the range [-2<sup>31</sup>, 2<sup>31</sup> - 1], the final result is 4193.
7373

7474
**Example 4:**
7575

@@ -87,7 +87,7 @@ Since 4193 is in the range \[-2<sup>31</sup>, 2<sup>31</sup> - 1\], the final re
8787
^
8888
The parsed integer is 0 because no digits were read.
8989

90-
Since 0 is in the range \[-2<sup>31</sup>, 2<sup>31</sup> - 1\], the final result is 0.
90+
Since 0 is in the range [-2<sup>31</sup>, 2<sup>31</sup> - 1], the final result is 0.
9191

9292
**Example 5:**
9393

@@ -105,7 +105,7 @@ Since 0 is in the range \[-2<sup>31</sup>, 2<sup>31</sup> - 1\], the final resul
105105
^
106106
The parsed integer is -91283472332.
107107

108-
Since -91283472332 is less than the lower bound of the range \[-2<sup>31</sup>, 2<sup>31</sup> - 1\], the final result is clamped to -2<sup>31</sup> = -2147483648.
108+
Since -91283472332 is less than the lower bound of the range [-2<sup>31</sup>, 2<sup>31</sup> - 1], the final result is clamped to -2<sup>31</sup> = -2147483648.
109109

110110
**Constraints:**
111111

src.save/main/java/g0001_0100/s0011_container_with_most_water/readme.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,27 @@ Given `n` non-negative integers <code>a<sub>1</sub>, a<sub>2</sub>, ..., a<sub>n
1010

1111
![](https://s3-lc-upload.s3.amazonaws.com/uploads/2018/07/17/question_11.jpg)
1212

13-
**Input:** height = \[1,8,6,2,5,4,8,3,7\]
13+
**Input:** height = [1,8,6,2,5,4,8,3,7]
1414

1515
**Output:** 49
1616

17-
**Explanation:** The above vertical lines are represented by array \[1,8,6,2,5,4,8,3,7\]. In this case, the max area of water (blue section) the container can contain is 49.
17+
**Explanation:** The above vertical lines are represented by array [1,8,6,2,5,4,8,3,7]. In this case, the max area of water (blue section) the container can contain is 49.
1818

1919
**Example 2:**
2020

21-
**Input:** height = \[1,1\]
21+
**Input:** height = [1,1]
2222

2323
**Output:** 1
2424

2525
**Example 3:**
2626

27-
**Input:** height = \[4,3,2,1,4\]
27+
**Input:** height = [4,3,2,1,4]
2828

2929
**Output:** 16
3030

3131
**Example 4:**
3232

33-
**Input:** height = \[1,2,1\]
33+
**Input:** height = [1,2,1]
3434

3535
**Output:** 2
3636

src.save/main/java/g0001_0100/s0014_longest_common_prefix/readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ If there is no common prefix, return an empty string `""`.
88

99
**Example 1:**
1010

11-
**Input:** strs = \["flower","flow","flight"\]
11+
**Input:** strs = ["flower","flow","flight"]
1212

1313
**Output:** "fl"
1414

1515
**Example 2:**
1616

17-
**Input:** strs = \["dog","racecar","car"\]
17+
**Input:** strs = ["dog","racecar","car"]
1818

1919
**Output:** ""
2020

src.save/main/java/g0001_0100/s0015_3sum/readme.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,21 @@ Notice that the solution set must not contain duplicate triplets.
88

99
**Example 1:**
1010

11-
**Input:** nums = \[-1,0,1,2,-1,-4\]
11+
**Input:** nums = [-1,0,1,2,-1,-4]
1212

13-
**Output:** \[\[-1,-1,2\],\[-1,0,1\]\]
13+
**Output:** [[-1,-1,2],[-1,0,1]]
1414

1515
**Example 2:**
1616

17-
**Input:** nums = \[\]
17+
**Input:** nums = []
1818

19-
**Output:** \[\]
19+
**Output:** []
2020

2121
**Example 3:**
2222

23-
**Input:** nums = \[0\]
23+
**Input:** nums = [0]
2424

25-
**Output:** \[\]
25+
**Output:** []
2626

2727
**Constraints:**
2828

src.save/main/java/g0001_0100/s0016_3sum_closest/readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ You may assume that each input would have exactly one solution.
1010

1111
**Example 1:**
1212

13-
**Input:** nums = \[-1,2,1,-4\], target = 1
13+
**Input:** nums = [-1,2,1,-4], target = 1
1414

1515
**Output:** 2
1616

1717
**Explanation:** The sum that is closest to the target is 2. (-1 + 2 + 1 = 2).
1818

1919
**Example 2:**
2020

21-
**Input:** nums = \[0,0,0\], target = 1
21+
**Input:** nums = [0,0,0], target = 1
2222

2323
**Output:** 0
2424

src.save/main/java/g0001_0100/s0017_letter_combinations_of_a_phone_number/readme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,19 @@ A mapping of digit to letters (just like on the telephone buttons) is given belo
1212

1313
**Input:** digits = "23"
1414

15-
**Output:** \["ad","ae","af","bd","be","bf","cd","ce","cf"\]
15+
**Output:** ["ad","ae","af","bd","be","bf","cd","ce","cf"]
1616

1717
**Example 2:**
1818

1919
**Input:** digits = ""
2020

21-
**Output:** \[\]
21+
**Output:** []
2222

2323
**Example 3:**
2424

2525
**Input:** digits = "2"
2626

27-
**Output:** \["a","b","c"\]
27+
**Output:** ["a","b","c"]
2828

2929
**Constraints:**
3030

src.save/main/java/g0001_0100/s0018_4sum/readme.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ You may return the answer in **any order**.
1212

1313
**Example 1:**
1414

15-
**Input:** nums = \[1,0,-1,0,-2,2\], target = 0
15+
**Input:** nums = [1,0,-1,0,-2,2], target = 0
1616

17-
**Output:** \[\[-2,-1,1,2\],\[-2,0,0,2\],\[-1,0,0,1\]\]
17+
**Output:** [[-2,-1,1,2],[-2,0,0,2],[-1,0,0,1]]
1818

1919
**Example 2:**
2020

21-
**Input:** nums = \[2,2,2,2,2\], target = 8
21+
**Input:** nums = [2,2,2,2,2], target = 8
2222

23-
**Output:** \[\[2,2,2,2\]\]
23+
**Output:** [[2,2,2,2]]
2424

2525
**Constraints:**
2626

0 commit comments

Comments
 (0)