Skip to content

Commit f1ea1f7

Browse files
committed
Fix formatting
1 parent f27c35b commit f1ea1f7

File tree

10 files changed

+60
-60
lines changed

10 files changed

+60
-60
lines changed

arrays/169_Majority_Element/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ The majority element is the element that appears more than `⌊n / 2⌋` times.
88

99
**Example 1:**
1010

11-
Input: `nums = [3,2,3]`
12-
Output: `3`
11+
* Input: `nums = [3,2,3]`
12+
* Output: `3`
1313

1414
**Example 2:**
1515

16-
Input: `[2,2,1,1,1,2,2]`
17-
Output: `2`
16+
* Input: `[2,2,1,1,1,2,2]`
17+
* Output: `2`
1818

1919
**Constraints:**
2020

binary-tree/100_Same_Tree/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@ Given the roots of two binary trees `p` and `q`, write a function to check if th
77
Two binary trees are considered the same if they are structurally identical, and the nodes have the same value.
88

99
**Example 1:**
10-
Input: `p = [1,2,3], q = [1,2,3]`
11-
Output: `true`
10+
* Input: `p = [1,2,3], q = [1,2,3]`
11+
* Output: `true`
1212

1313
**Example 2:**
14-
Input: `p = [1,2], q = [1,null,2]`
15-
Output: `false`
14+
* Input: `p = [1,2], q = [1,null,2]`
15+
* Output: `false`
1616

1717
**Example 3:**
18-
Input: `p = [1,2,1], q = [1,1,2]`
19-
Output: `false`
18+
* Input: `p = [1,2,1], q = [1,1,2]`
19+
* Output: `false`
2020

2121
**Constraints:**
2222

hashmap/347_Top_K_Frequent_Elements/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ You may return the answer in any order.
77

88
**Example 1:**
99

10-
Input: `nums = [1, 1, 1, 2, 2, 3], k = 2`
11-
Output: `[1, 2]`
10+
* Input: `nums = [1, 1, 1, 2, 2, 3], k = 2`
11+
* Output: `[1, 2]`
1212

1313
**Example 2:**
1414

15-
Input: `nums = [1], k = 1`
16-
Output: `[1]`
15+
* Input: `nums = [1], k = 1`
16+
* Output: `[1]`
1717

1818
**Constraints:**
1919

hashmap/383_Ransom_Note/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,18 @@ Each letter in `magazine` can only be used once in `ransomNote`.
88

99
**Example 1:**
1010

11-
Input: `ransomNote = "a"`, `magazine = "b"`
12-
Output: `false`
11+
* Input: `ransomNote = "a"`, `magazine = "b"`
12+
* Output: `false`
1313

1414
**Example 2:**
1515

16-
Input: `ransomNote = "aa"`, `magazine = "ab"`
17-
Output: `false`
16+
* Input: `ransomNote = "aa"`, `magazine = "ab"`
17+
* Output: `false`
1818

1919
**Example 3:**
2020

21-
Input: `ransomNote = "aa"`, `magazine = "aab"`
22-
Output: ``true`
21+
* Input: `ransomNote = "aa"`, `magazine = "aab"`
22+
* Output: ``true`
2323

2424
**Constraints:**
2525

intervals/452_minimum_number_of_arrows_to_burst_baloons/README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,25 +19,25 @@ to burst all balloons.
1919

2020
**Example 1:**
2121

22-
Input: `points = [[10,16],[2,8],[1,6],[7,12]]`
23-
Output: `2`
24-
Explanation: The balloons can be burst by 2 arrows:
25-
- Shoot an arrow at `x = 6`, bursting the balloons `[2,8]` and `[1,6]`.
26-
- Shoot an arrow at `x = 11`, bursting the balloons `[10,16]` and `[7,12]`.
22+
* Input: `points = [[10,16],[2,8],[1,6],[7,12]]`
23+
* Output: `2`
24+
* Explanation: The balloons can be burst by 2 arrows:
25+
- Shoot an arrow at `x = 6`, bursting the balloons `[2,8]` and `[1,6]`.
26+
- Shoot an arrow at `x = 11`, bursting the balloons `[10,16]` and `[7,12]`.
2727

2828
**Example 2:**
2929

30-
Input: `points = [[1,2],[3,4],[5,6],[7,8]]`
31-
Output: `4`
32-
Explanation: One arrow needs to be shot for each balloon for a total of `4` arrows.
30+
* Input: `points = [[1,2],[3,4],[5,6],[7,8]]`
31+
* Output: `4`
32+
* Explanation: One arrow needs to be shot for each balloon for a total of `4` arrows.
3333

3434
**Example 3:**
3535

36-
Input: `points = [[1,2],[2,3],[3,4],[4,5]]`
37-
Output: `2`
38-
Explanation: The balloons can be burst by 2 arrows:
39-
- Shoot an arrow at `x = 2`, bursting the balloons `[1,2]` and `[2,3]`.
40-
- Shoot an arrow at `x = 4`, bursting the balloons `[3,4]` and `[4,5]`.
36+
* Input: `points = [[1,2],[2,3],[3,4],[4,5]]`
37+
* Output: `2`
38+
* Explanation: The balloons can be burst by 2 arrows:
39+
- Shoot an arrow at `x = 2`, bursting the balloons `[1,2]` and `[2,3]`.
40+
- Shoot an arrow at `x = 4`, bursting the balloons `[3,4]` and `[4,5]`.
4141

4242
**Constraints:**
4343

prefix-product/238_Product_of_Array_Except_Self/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ without using the division operation.
1313

1414
**Example 1:**
1515

16-
Input: `nums = [1,2,3,4]`
17-
Output: `[24,12,8,6]`
16+
* Input: `nums = [1,2,3,4]`
17+
* Output: `[24,12,8,6]`
1818

1919
**Example 2:**
2020

21-
Input: `nums = [-1,1,0,-3,3]`
22-
Output: `[0,0,9,0,0]`
21+
* Input: `nums = [-1,1,0,-3,3]`
22+
* Output: `[0,0,9,0,0]`
2323

2424
**Constraints:**
2525

sliding-window/000_Max_Consecutive_Ones_Variant/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ Given a binary array nums, find the maximum length of a consecutive subarray con
66

77
**Example 1:**
88

9-
Input: `[0, 0]`
10-
Output: `0`
11-
Explanation: Removing any element leaves `[0]` (no `1`s).
9+
* Input: `[0, 0]`
10+
* Output: `0`
11+
* Explanation: Removing any element leaves `[0]` (no `1`s).
1212

1313
**Example 2:**
1414

15-
Input: `[0, 1]`
16-
Output: `1`
17-
Explanation: Remove `0`: `[1]` → sequence of `1` has length `1`.
15+
* Input: `[0, 1]`
16+
* Output: `1`
17+
* Explanation: Remove `0`: `[1]` → sequence of `1` has length `1`.
1818

1919
**Constraints:**
2020

sliding-window/209_Minumum_Size_Subarray_Sum/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@ If there is no such subarray, return `0` instead.
88

99
**Example 1:**
1010

11-
Input: `target = 7`, nums = `[2,3,1,2,4,3]`
12-
Output: `2`
13-
Explanation: The subarray `[4,3]` has the minimal length under the problem constraint.
11+
* Input: `target = 7`, nums = `[2,3,1,2,4,3]`
12+
* Output: `2`
13+
* Explanation: The subarray `[4,3]` has the minimal length under the problem constraint.
1414

1515
**Example 2:**
1616

17-
Input: `target = 4`, `nums = [1,4,4]`
18-
Output: `1`
17+
* Input: `target = 4`, `nums = [1,4,4]`
18+
* Output: `1`
1919

2020
**Example 3:**
2121

22-
Input: `target = 11`, `nums = [1,1,1,1,1,1,1,1]`
23-
Output: `0`
22+
* Input: `target = 11`, `nums = [1,1,1,1,1,1,1,1]`
23+
* Output: `0`
2424

2525
Constraints:
2626

two-pointers/125_Valid_Palindrome/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ A phrase is a palindrome if, after converting all uppercase letters into lowerca
66
Given a string `s`, return `True` if it is a palindrome, or `False` otherwise.
77

88
**Example 1:**
9-
Input: `s = "A man, a plan, a canal: Panama"`
10-
Output: `true`
11-
Explanation: "amanaplanacanalpanama" is a valid palindrome.
9+
* Input: `s = "A man, a plan, a canal: Panama"`
10+
* Output: `true`
11+
* Explanation: "amanaplanacanalpanama" is a valid palindrome.
1212

1313
**Example 2:**
14-
Input: `s = "race a car"`
15-
Output: `false`
16-
Explanation: "raceacar" is not a palindrome.
14+
* Input: `s = "race a car"`
15+
* Output: `false`
16+
* Explanation: "raceacar" is not a palindrome.
1717

1818
## Solutions
1919

two-pointers/392_Is_Subsequence/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ A subsequence of a string is a new string that is formed from the original strin
88

99
**Example 1:**
1010

11-
Input: `s = "abc"`, `t = "ahbgdc"`
12-
Output: `true`
11+
* Input: `s = "abc"`, `t = "ahbgdc"`
12+
* Output: `true`
1313

1414
**Example 2:**
1515

16-
Input: `s = "axc"`, `t = "ahbgdc"`
17-
Output: `false`
16+
* Input: `s = "axc"`, `t = "ahbgdc"`
17+
* Output: `false`
1818

1919
**Constraints:**
2020

0 commit comments

Comments
 (0)