Skip to content

Commit 6c36ac7

Browse files
authored
Update readme.md
1 parent eb90f67 commit 6c36ac7

File tree

1 file changed

+6
-4
lines changed
  • src/main/java/g2301_2400/s2315_count_asterisks

1 file changed

+6
-4
lines changed

src/main/java/g2301_2400/s2315_count_asterisks/readme.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@ Return _the number of_ `'*'` _in_ `s`_, **excluding** the_ `'*'` _between each p
1414

1515
**Output:** 2
1616

17-
**Explanation:** The considered characters are underlined: "l|\*e\*et|c\*\*o|\*de|".
17+
**Explanation:** The considered characters are underlined: "<ins>l</ins>|\*e\*et|<ins>c\*\*o</ins>|\*de|".
1818

19-
The characters between the first and second '|' are excluded from the answer. Also, the characters between the third and fourth '|' are excluded from the answer. There are 2 asterisks considered. Therefore, we return 2.
19+
The characters between the first and second '|' are excluded from the answer.
20+
21+
Also, the characters between the third and fourth '|' are excluded from the answer. There are 2 asterisks considered. Therefore, we return 2.
2022

2123
**Example 2:**
2224

@@ -32,12 +34,12 @@ The characters between the first and second '|' are excluded from the answer. Al
3234

3335
**Output:** 5
3436

35-
**Explanation:** The considered characters are underlined: "yo|uar|e\*\*|b|e\*\*\*au|tifu|l".
37+
**Explanation:** The considered characters are underlined: "<ins>yo</ins>|uar|<ins>e\*\*</ins>|b|<ins>e\*\*\*au</ins>|tifu|<ins>l</ins>".
3638

3739
There are 5 asterisks considered. Therefore, we return 5.
3840

3941
**Constraints:**
4042

4143
* `1 <= s.length <= 1000`
4244
* `s` consists of lowercase English letters, vertical bars `'|'`, and asterisks `'*'`.
43-
* `s` contains an **even** number of vertical bars `'|'`.
45+
* `s` contains an **even** number of vertical bars `'|'`.

0 commit comments

Comments
 (0)