Skip to content

Commit bc9138d

Browse files
committed
feat: add solutions to lc problem: No.1713
No.1713.Minimum Operations to Make a Subsequence
1 parent 5f3e947 commit bc9138d

File tree

12 files changed

+437
-506
lines changed

12 files changed

+437
-506
lines changed

solution/1700-1799/1704.Determine if String Halves Are Alike/README.md

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -222,24 +222,4 @@ class Solution {
222222

223223
<!-- solution:end -->
224224

225-
<!-- solution:start -->
226-
227-
### 方法二
228-
229-
<!-- tabs:start -->
230-
231-
#### Python3
232-
233-
```python
234-
class Solution:
235-
def halvesAreAlike(self, s: str) -> bool:
236-
vowels = set('aeiouAEIOU')
237-
a, b = s[: len(s) >> 1], s[len(s) >> 1 :]
238-
return sum(c in vowels for c in a) == sum(c in vowels for c in b)
239-
```
240-
241-
<!-- tabs:end -->
242-
243-
<!-- solution:end -->
244-
245225
<!-- problem:end -->

solution/1700-1799/1704.Determine if String Halves Are Alike/README_EN.md

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -220,24 +220,4 @@ class Solution {
220220

221221
<!-- solution:end -->
222222

223-
<!-- solution:start -->
224-
225-
### Solution 2
226-
227-
<!-- tabs:start -->
228-
229-
#### Python3
230-
231-
```python
232-
class Solution:
233-
def halvesAreAlike(self, s: str) -> bool:
234-
vowels = set('aeiouAEIOU')
235-
a, b = s[: len(s) >> 1], s[len(s) >> 1 :]
236-
return sum(c in vowels for c in a) == sum(c in vowels for c in b)
237-
```
238-
239-
<!-- tabs:end -->
240-
241-
<!-- solution:end -->
242-
243223
<!-- problem:end -->

solution/1700-1799/1704.Determine if String Halves Are Alike/Solution2.py

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)