Skip to content

Commit

Permalink
fix: remove unused lines of no.354 (#3864)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashioto authored Dec 17, 2024
1 parent 9b1a007 commit 8070bfc
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions solution/0300-0399/0354.Russian Doll Envelopes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,6 @@ class Solution:
d.append(h)
else:
idx = bisect_left(d, h)
if idx == len(d):
idx = 0
d[idx] = h
return len(d)
```
Expand Down
2 changes: 0 additions & 2 deletions solution/0300-0399/0354.Russian Doll Envelopes/README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@ class Solution:
d.append(h)
else:
idx = bisect_left(d, h)
if idx == len(d):
idx = 0
d[idx] = h
return len(d)
```
Expand Down
2 changes: 0 additions & 2 deletions solution/0300-0399/0354.Russian Doll Envelopes/Solution.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,5 @@ def maxEnvelopes(self, envelopes: List[List[int]]) -> int:
d.append(h)
else:
idx = bisect_left(d, h)
if idx == len(d):
idx = 0
d[idx] = h
return len(d)

0 comments on commit 8070bfc

Please sign in to comment.