Skip to content

Commit 2c298ec

Browse files
authored
Updated readmes.
1 parent 0917dd8 commit 2c298ec

File tree

310 files changed

+820
-819
lines changed

Some content is hidden

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

310 files changed

+820
-819
lines changed

src/main/java/g0001_0100/s0023_merge_k_sorted_lists/readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ _Merge all the linked-lists into one sorted linked-list and return it._
88

99
**Example 1:**
1010

11-
**Input:** lists = [[1,4,5],[1,3,4],[2,6]]
11+
**Input:** lists = \[\[1,4,5],[1,3,4],[2,6]]
1212

1313
**Output:** [1,1,2,3,4,4,5,6]
1414

@@ -22,7 +22,7 @@ _Merge all the linked-lists into one sorted linked-list and return it._
2222

2323
**Example 3:**
2424

25-
**Input:** lists = [[]]
25+
**Input:** lists = \[\[]]
2626

2727
**Output:** []
2828

src/main/java/g0001_0100/s0037_sudoku_solver/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The `'.'` character indicates empty cells.
1818

1919
**Input:**
2020

21-
board = [["5","3",".",".","7",".",".",".","."],
21+
board = [ ["5","3",".",".","7",".",".",".","."],
2222
["6",".",".","1","9","5",".",".","."],
2323
[".","9","8",".",".",".",".","6","."],
2424
["8",".",".",".","6",".",".",".","3"],

src/main/java/g0001_0100/s0048_rotate_image/readme.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,27 @@ You have to rotate the image [**in-place**](https://en.wikipedia.org/wiki/In-pla
1010

1111
![](https://assets.leetcode.com/uploads/2020/08/28/mat1.jpg)
1212

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

1515
**Output:** [[7,4,1],[8,5,2],[9,6,3]]
1616

1717
**Example 2:**
1818

1919
![](https://assets.leetcode.com/uploads/2020/08/28/mat2.jpg)
2020

21-
**Input:** matrix = [[5,1,9,11],[2,4,8,10],[13,3,6,7],[15,14,12,16]]
21+
**Input:** matrix = \[\[5,1,9,11],[2,4,8,10],[13,3,6,7],[15,14,12,16]]
2222

2323
**Output:** [[15,13,2,5],[14,3,4,1],[12,6,8,9],[16,7,10,11]]
2424

2525
**Example 3:**
2626

27-
**Input:** matrix = [[1]]
27+
**Input:** matrix = \[\[1]]
2828

2929
**Output:** [[1]]
3030

3131
**Example 4:**
3232

33-
**Input:** matrix = [[1,2],[3,4]]
33+
**Input:** matrix = \[\[1,2],[3,4]]
3434

3535
**Output:** [[3,1],[4,2]]
3636

src/main/java/g0001_0100/s0054_spiral_matrix/readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ Given an `m x n` `matrix`, return _all elements of the_ `matrix` _in spiral orde
88

99
![](https://assets.leetcode.com/uploads/2020/11/13/spiral1.jpg)
1010

11-
**Input:** matrix = [[1,2,3],[4,5,6],[7,8,9]]
11+
**Input:** matrix = \[\[1,2,3],[4,5,6],[7,8,9]]
1212

1313
**Output:** [1,2,3,6,9,8,7,4,5]
1414

1515
**Example 2:**
1616

1717
![](https://assets.leetcode.com/uploads/2020/11/13/spiral.jpg)
1818

19-
**Input:** matrix = [[1,2,3,4],[5,6,7,8],[9,10,11,12]]
19+
**Input:** matrix = \[\[1,2,3,4],[5,6,7,8],[9,10,11,12]]
2020

2121
**Output:** [1,2,3,4,8,12,11,10,9,5,6,7]
2222

src/main/java/g0001_0100/s0056_merge_intervals/readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ Given an array of `intervals` where <code>intervals[i] = [start<sub>i</sub>, end
66

77
**Example 1:**
88

9-
**Input:** intervals = [[1,3],[2,6],[8,10],[15,18]]
9+
**Input:** intervals = \[\[1,3],[2,6],[8,10],[15,18]]
1010

1111
**Output:** [[1,6],[8,10],[15,18]]
1212

1313
**Explanation:** Since intervals [1,3] and [2,6] overlaps, merge them into [1,6].
1414

1515
**Example 2:**
1616

17-
**Input:** intervals = [[1,4],[4,5]]
17+
**Input:** intervals = \[\[1,4],[4,5]]
1818

1919
**Output:** [[1,5]]
2020

src/main/java/g0001_0100/s0057_insert_interval/readme.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ Return `intervals` _after the insertion_.
1010

1111
**Example 1:**
1212

13-
**Input:** intervals = [[1,3],[6,9]], newInterval = [2,5]
13+
**Input:** intervals = \[\[1,3],[6,9]], newInterval = [2,5]
1414

1515
**Output:** [[1,5],[6,9]]
1616

1717
**Example 2:**
1818

19-
**Input:** intervals = [[1,2],[3,5],[6,7],[8,10],[12,16]], newInterval = [4,8]
19+
**Input:** intervals = \[\[1,2],[3,5],[6,7],[8,10],[12,16]], newInterval = [4,8]
2020

2121
**Output:** [[1,2],[3,10],[12,16]]
2222

@@ -30,13 +30,13 @@ Return `intervals` _after the insertion_.
3030

3131
**Example 4:**
3232

33-
**Input:** intervals = [[1,5]], newInterval = [2,3]
33+
**Input:** intervals = \[\[1,5]], newInterval = [2,3]
3434

3535
**Output:** [[1,5]]
3636

3737
**Example 5:**
3838

39-
**Input:** intervals = [[1,5]], newInterval = [2,7]
39+
**Input:** intervals = \[\[1,5]], newInterval = [2,7]
4040

4141
**Output:** [[1,7]]
4242

src/main/java/g0001_0100/s0063_unique_paths_ii/readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ An obstacle and space is marked as `1` and `0` respectively in the grid.
1414

1515
![](https://assets.leetcode.com/uploads/2020/11/04/robot1.jpg)
1616

17-
**Input:** obstacleGrid = [[0,0,0],[0,1,0],[0,0,0]]
17+
**Input:** obstacleGrid = \[\[0,0,0],[0,1,0],[0,0,0]]
1818

1919
**Output:** 2
2020

@@ -24,7 +24,7 @@ An obstacle and space is marked as `1` and `0` respectively in the grid.
2424

2525
![](https://assets.leetcode.com/uploads/2020/11/04/robot2.jpg)
2626

27-
**Input:** obstacleGrid = [[0,1],[0,0]]
27+
**Input:** obstacleGrid = \[\[0,1],[0,0]]
2828

2929
**Output:** 1
3030

src/main/java/g0001_0100/s0064_minimum_path_sum/readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ Given a `m x n` `grid` filled with non-negative numbers, find a path from top le
1010

1111
![](https://assets.leetcode.com/uploads/2020/11/05/minpath.jpg)
1212

13-
**Input:** grid = [[1,3,1],[1,5,1],[4,2,1]]
13+
**Input:** grid = \[\[1,3,1],[1,5,1],[4,2,1]]
1414

1515
**Output:** 7
1616

1717
**Explanation:** Because the path 1 → 3 → 1 → 1 → 1 minimizes the sum.
1818

1919
**Example 2:**
2020

21-
**Input:** grid = [[1,2,3],[4,5,6]]
21+
**Input:** grid = \[\[1,2,3],[4,5,6]]
2222

2323
**Output:** 12
2424

src/main/java/g0001_0100/s0073_set_matrix_zeroes/readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ You must do it [in place](https://en.wikipedia.org/wiki/In-place_algorithm).
1010

1111
![](https://assets.leetcode.com/uploads/2020/08/17/mat1.jpg)
1212

13-
**Input:** matrix = [[1,1,1],[1,0,1],[1,1,1]]
13+
**Input:** matrix = \[\[1,1,1],[1,0,1],[1,1,1]]
1414

1515
**Output:** [[1,0,1],[0,0,0],[1,0,1]]
1616

1717
**Example 2:**
1818

1919
![](https://assets.leetcode.com/uploads/2020/08/17/mat2.jpg)
2020

21-
**Input:** matrix = [[0,1,2,0],[3,4,5,2],[1,3,1,5]]
21+
**Input:** matrix = \[\[0,1,2,0],[3,4,5,2],[1,3,1,5]]
2222

2323
**Output:** [[0,0,0,0],[0,4,5,0],[0,3,1,0]]
2424

src/main/java/g0001_0100/s0074_search_a_2d_matrix/readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ Write an efficient algorithm that searches for a value in an `m x n` matrix. Thi
1111

1212
![](https://assets.leetcode.com/uploads/2020/10/05/mat.jpg)
1313

14-
**Input:** matrix = [[1,3,5,7],[10,11,16,20],[23,30,34,60]], target = 3
14+
**Input:** matrix = \[\[1,3,5,7],[10,11,16,20],[23,30,34,60]], target = 3
1515

1616
**Output:** true
1717

1818
**Example 2:**
1919

2020
![](https://assets.leetcode.com/uploads/2020/10/05/mat2.jpg)
2121

22-
**Input:** matrix = [[1,3,5,7],[10,11,16,20],[23,30,34,60]], target = 13
22+
**Input:** matrix = \[\[1,3,5,7],[10,11,16,20],[23,30,34,60]], target = 13
2323

2424
**Output:** false
2525

0 commit comments

Comments
 (0)