Skip to content

Commit 792e7da

Browse files
authored
Fixed readme files.
1 parent 9d36c07 commit 792e7da

File tree

17 files changed

+33
-33
lines changed
  • src/main/java
    • g0601_0700/s0657_robot_return_to_origin
    • g0801_0900/s0873_length_of_longest_fibonacci_subsequence
    • g0901_1000
    • g1301_1400/s1331_rank_transform_of_an_array
    • g1401_1500/s1481_least_number_of_unique_integers_after_k_removals
    • g1501_1600
      • s1593_split_a_string_into_the_max_number_of_unique_substrings
      • s1595_minimum_cost_to_connect_two_groups_of_points
    • g1601_1700
      • s1672_richest_customer_wealth
      • s1680_concatenation_of_consecutive_binary_numbers
    • g1801_1900
      • s1829_maximum_xor_for_each_query
      • s1888_minimum_number_of_flips_to_make_the_binary_string_alternating
      • s1889_minimum_space_wasted_from_packaging
      • s1898_maximum_number_of_removable_characters
    • g1901_2000
      • s1910_remove_all_occurrences_of_a_substring
      • s1925_count_square_sum_triples
    • g2001_2100/s2002_maximum_product_of_the_length_of_two_palindromic_subsequences

17 files changed

+33
-33
lines changed

Diff for: src/main/java/g0601_0700/s0657_robot_return_to_origin/readme.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ Return `true` _if the robot returns to the origin after it finishes all of its m
1616

1717
**Output:** true
1818

19-
**Explanation:**: The robot moves up once, and then down once. All moves have the same magnitude, so it ended up at the origin where it started. Therefore, we return true.
19+
**Explanation:** The robot moves up once, and then down once. All moves have the same magnitude, so it ended up at the origin where it started. Therefore, we return true.
2020

2121
**Example 2:**
2222

2323
**Input:** moves = "LL"
2424

2525
**Output:** false
2626

27-
**Explanation:**: The robot moves left twice. It ends up two "moves" to the left of the origin. We return false because it is not at the origin at the end of its moves.
27+
**Explanation:** The robot moves left twice. It ends up two "moves" to the left of the origin. We return false because it is not at the origin at the end of its moves.
2828

2929
**Constraints:**
3030

Diff for: src/main/java/g0801_0900/s0873_length_of_longest_fibonacci_subsequence/readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ A **subsequence** is derived from another sequence `arr` by deleting any number
2525

2626
**Output:** 3
2727

28-
**Explanation:**: The longest subsequence that is fibonacci-like: [1,11,12], [3,11,14] or [7,11,18].
28+
**Explanation:** The longest subsequence that is fibonacci-like: [1,11,12], [3,11,14] or [7,11,18].
2929

3030
**Constraints:**
3131

Diff for: src/main/java/g0901_1000/s0906_super_palindromes/readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Given two positive integers `left` and `right` represented as strings, return _t
1212

1313
**Output:** 4
1414

15-
**Explanation:**: 4, 9, 121, and 484 are superpalindromes. Note that 676 is not a superpalindrome: 26 \* 26 = 676, but 26 is not a palindrome.
15+
**Explanation:** 4, 9, 121, and 484 are superpalindromes. Note that 676 is not a superpalindrome: 26 \* 26 = 676, but 26 is not a palindrome.
1616

1717
**Example 2:**
1818

Diff for: src/main/java/g0901_1000/s0914_x_of_a_kind_in_a_deck_of_cards/readme.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ Return `true` if and only if you can choose `X >= 2` such that it is possible to
1515

1616
**Output:** true
1717

18-
**Explanation:**: Possible partition [1,1],[2,2],[3,3],[4,4].
18+
**Explanation:** Possible partition [1,1],[2,2],[3,3],[4,4].
1919

2020
**Example 2:**
2121

2222
**Input:** deck = [1,1,1,2,2,2,3,3]
2323

2424
**Output:** false
2525

26-
**Explanation:**: No possible partition.
26+
**Explanation:** No possible partition.
2727

2828
**Constraints:**
2929

Diff for: src/main/java/g1301_1400/s1331_rank_transform_of_an_array/readme.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ The rank represents how large the element is. The rank has the following rules:
1616

1717
**Output:** [4,1,2,3]
1818

19-
**Explanation:**: 40 is the largest element. 10 is the smallest. 20 is the second smallest. 30 is the third smallest.
19+
**Explanation:** 40 is the largest element. 10 is the smallest. 20 is the second smallest. 30 is the third smallest.
2020

2121
**Example 2:**
2222

2323
**Input:** arr = [100,100,100]
2424

2525
**Output:** [1,1,1]
2626

27-
**Explanation:**: Same elements share the same rank.
27+
**Explanation:** Same elements share the same rank.
2828

2929
**Example 3:**
3030

Diff for: src/main/java/g1401_1500/s1481_least_number_of_unique_integers_after_k_removals/readme.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ Given an array of integers `arr` and an integer `k`. Find the _least number of u
1010

1111
**Output:** 1
1212

13-
**Explanation:**: Remove the single 4, only 5 is left.
13+
**Explanation:** Remove the single 4, only 5 is left.
1414

1515
**Example 2:**
1616

1717
**Input:** arr = [4,3,1,1,3,3,2], k = 3
1818

1919
**Output:** 2
2020

21-
**Explanation:**: Remove 4, 2 and either one of the two 1s or three 3s. 1 and 3 will be left.
21+
**Explanation:** Remove 4, 2 and either one of the two 1s or three 3s. 1 and 3 will be left.
2222

2323
**Constraints:**
2424

Diff for: src/main/java/g1501_1600/s1593_split_a_string_into_the_max_number_of_unique_substrings/readme.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,23 @@ A **substring** is a contiguous sequence of characters within a string.
1414

1515
**Output:** 5
1616

17-
**Explanation:**: One way to split maximally is ['a', 'b', 'ab', 'c', 'cc']. Splitting like ['a', 'b', 'a', 'b', 'c', 'cc'] is not valid as you have 'a' and 'b' multiple times.
17+
**Explanation:** One way to split maximally is ['a', 'b', 'ab', 'c', 'cc']. Splitting like ['a', 'b', 'a', 'b', 'c', 'cc'] is not valid as you have 'a' and 'b' multiple times.
1818

1919
**Example 2:**
2020

2121
**Input:** s = "aba"
2222

2323
**Output:** 2
2424

25-
**Explanation:**: One way to split maximally is ['a', 'ba'].
25+
**Explanation:** One way to split maximally is ['a', 'ba'].
2626

2727
**Example 3:**
2828

2929
**Input:** s = "aa"
3030

3131
**Output:** 1
3232

33-
**Explanation:**: It is impossible to split the string any further.
33+
**Explanation:** It is impossible to split the string any further.
3434

3535
**Constraints:**
3636

Diff for: src/main/java/g1501_1600/s1595_minimum_cost_to_connect_two_groups_of_points/readme.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Return _the minimum cost it takes to connect the two groups_.
1616

1717
**Output:** 17
1818

19-
**Explanation:**: The optimal way of connecting the groups is:
19+
**Explanation:** The optimal way of connecting the groups is:
2020

2121
1--A
2222

@@ -32,7 +32,7 @@ This results in a total cost of 17.
3232

3333
**Output:** 4
3434

35-
**Explanation:**: The optimal way of connecting the groups is:
35+
**Explanation:** The optimal way of connecting the groups is:
3636

3737
1--A
3838

Diff for: src/main/java/g1601_1700/s1672_richest_customer_wealth/readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Both customers are considered the richest with a wealth of 6 each, so return 6.
2626

2727
**Output:** 10
2828

29-
**Explanation:**:
29+
**Explanation:**
3030

3131
1st customer has wealth = 6
3232

Diff for: src/main/java/g1601_1700/s1680_concatenation_of_consecutive_binary_numbers/readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ After concatenating them, we have "11011", which corresponds to the decimal valu
2828

2929
**Output:** 505379714
3030

31-
**Explanation:**: The concatenation results in "1101110010111011110001001101010111100".
31+
**Explanation:** The concatenation results in "1101110010111011110001001101010111100".
3232

3333
The decimal value of that is 118505380540.
3434

Diff for: src/main/java/g1801_1900/s1829_maximum_xor_for_each_query/readme.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Return _an array_ `answer`_, where_ `answer[i]` _is the answer to the_ <code>i<s
1515

1616
**Output:** [0,3,2,3]
1717

18-
**Explanation:**: The queries are answered as follows:
18+
**Explanation:** The queries are answered as follows:
1919

2020
1<sup>st</sup> query: nums = [0,1,1,3], k = 0 since 0 XOR 1 XOR 1 XOR 3 XOR 0 = 3.
2121

@@ -31,7 +31,7 @@ Return _an array_ `answer`_, where_ `answer[i]` _is the answer to the_ <code>i<s
3131

3232
**Output:** [5,2,6,5]
3333

34-
**Explanation:**: The queries are answered as follows:
34+
**Explanation:** The queries are answered as follows:
3535

3636
1<sup>st</sup> query: nums = [2,3,4,7], k = 5 since 2 XOR 3 XOR 4 XOR 7 XOR 5 = 7.
3737

Diff for: src/main/java/g1801_1900/s1888_minimum_number_of_flips_to_make_the_binary_string_alternating/readme.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ The string is called **alternating** if no two adjacent characters are equal.
1919

2020
**Output:** 2
2121

22-
**Explanation:**: Use the first operation two times to make s = "100011".
22+
**Explanation:** Use the first operation two times to make s = "100011".
2323

2424
Then, use the second operation on the third and sixth elements to make s = "101010".
2525

@@ -29,15 +29,15 @@ Then, use the second operation on the third and sixth elements to make s = "1010
2929

3030
**Output:** 0
3131

32-
**Explanation:**: The string is already alternating.
32+
**Explanation:** The string is already alternating.
3333

3434
**Example 3:**
3535

3636
**Input:** s = "1110"
3737

3838
**Output:** 1
3939

40-
**Explanation:**: Use the second operation on the second element to make s = "1010".
40+
**Explanation:** Use the second operation on the second element to make s = "1010".
4141

4242
**Constraints:**
4343

Diff for: src/main/java/g1801_1900/s1889_minimum_space_wasted_from_packaging/readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Return _the **minimum total wasted space** by choosing the box supplier **optima
1818

1919
**Output:** 6
2020

21-
**Explanation:**: It is optimal to choose the first supplier, using two size-4 boxes and one size-8 box.
21+
**Explanation:** It is optimal to choose the first supplier, using two size-4 boxes and one size-8 box.
2222

2323
The total waste is (4-2) + (4-3) + (8-5) = 6.
2424

Diff for: src/main/java/g1801_1900/s1898_maximum_number_of_removable_characters/readme.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ A **subsequence** of a string is a new string generated from the original string
1616

1717
**Output:** 2
1818

19-
**Explanation:**: After removing the characters at indices 3 and 1, "a**b**c**a**cb" becomes "accb".
19+
**Explanation:** After removing the characters at indices 3 and 1, "a**b**c**a**cb" becomes "accb".
2020

2121
"ab" is a subsequence of "**a**cc**b**".
2222

@@ -30,7 +30,7 @@ Hence, the maximum k is 2.
3030

3131
**Output:** 1
3232

33-
**Explanation:**: After removing the character at index 3, "abc**b**ddddd" becomes "abcddddd".
33+
**Explanation:** After removing the character at index 3, "abc**b**ddddd" becomes "abcddddd".
3434

3535
"abcd" is a subsequence of "**abcd**dddd".
3636

@@ -40,7 +40,7 @@ Hence, the maximum k is 2.
4040

4141
**Output:** 0
4242

43-
**Explanation:**: If you remove the first index in the array removable, "abc" is no longer a subsequence.
43+
**Explanation:** If you remove the first index in the array removable, "abc" is no longer a subsequence.
4444

4545
**Constraints:**
4646

Diff for: src/main/java/g1901_2000/s1910_remove_all_occurrences_of_a_substring/readme.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ A **substring** is a contiguous sequence of characters in a string.
1616

1717
**Output:** "dab"
1818

19-
**Explanation:**: The following operations are done:
19+
**Explanation:** The following operations are done:
2020

2121
- s = "da**abc**baabcbc", remove "abc" starting at index 2, so s = "dabaabcbc".
2222

@@ -30,7 +30,7 @@ A **substring** is a contiguous sequence of characters in a string.
3030

3131
**Output:** "ab"
3232

33-
**Explanation:**: The following operations are done:
33+
**Explanation:** The following operations are done:
3434

3535
- s = "axxx**xy**yyyb", remove "xy" starting at index 4 so s = "axxxyyyb".
3636

Diff for: src/main/java/g1901_2000/s1925_count_square_sum_triples/readme.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ Given an integer `n`, return _the number of **square triples** such that_ `1 <=
1212

1313
**Output:** 2
1414

15-
**Explanation:**: The square triples are (3,4,5) and (4,3,5).
15+
**Explanation:** The square triples are (3,4,5) and (4,3,5).
1616

1717
**Example 2:**
1818

1919
**Input:** n = 10
2020

2121
**Output:** 4
2222

23-
**Explanation:**: The square triples are (3,4,5), (4,3,5), (6,8,10), and (8,6,10).
23+
**Explanation:** The square triples are (3,4,5), (4,3,5), (6,8,10), and (8,6,10).
2424

2525
**Constraints:**
2626

Diff for: src/main/java/g2001_2100/s2002_maximum_product_of_the_length_of_two_palindromic_subsequences/readme.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ A **subsequence** is a string that can be derived from another string by deletin
1616

1717
**Output:** 9
1818

19-
**Explanation:**: An optimal solution is to choose "ete" for the 1<sup>st</sup> subsequence and "cdc" for the 2<sup>nd</sup> subsequence.
19+
**Explanation:** An optimal solution is to choose "ete" for the 1<sup>st</sup> subsequence and "cdc" for the 2<sup>nd</sup> subsequence.
2020

2121
The product of their lengths is: 3 \* 3 = 9.
2222

@@ -26,7 +26,7 @@ The product of their lengths is: 3 \* 3 = 9.
2626

2727
**Output:** 1
2828

29-
**Explanation:**: An optimal solution is to choose "b" (the first character) for the 1<sup>st</sup> subsequence and "b" (the second character) for the 2<sup>nd</sup> subsequence.
29+
**Explanation:** An optimal solution is to choose "b" (the first character) for the 1<sup>st</sup> subsequence and "b" (the second character) for the 2<sup>nd</sup> subsequence.
3030

3131
The product of their lengths is: 1 \* 1 = 1.
3232

@@ -36,7 +36,7 @@ The product of their lengths is: 1 \* 1 = 1.
3636

3737
**Output:** 25
3838

39-
**Explanation:**: An optimal solution is to choose "accca" for the 1<sup>st</sup> subsequence and "xxcxx" for the 2<sup>nd</sup> subsequence.
39+
**Explanation:** An optimal solution is to choose "accca" for the 1<sup>st</sup> subsequence and "xxcxx" for the 2<sup>nd</sup> subsequence.
4040

4141
The product of their lengths is: 5 \* 5 = 25.
4242

0 commit comments

Comments
 (0)