Skip to content

Commit 0603fe4

Browse files
authored
chore: remove unnecessary import statements (doocs#3958)
1 parent d423cc1 commit 0603fe4

File tree

162 files changed

+64
-543
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

162 files changed

+64
-543
lines changed

lcof2/剑指 Offer II 057. 值和下标之差都在给定的范围内/README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,6 @@ edit_url: https://github.com/doocs/leetcode/edit/main/lcof2/%E5%89%91%E6%8C%87%2
6969
#### Python3
7070

7171
```python
72-
from sortedcontainers import SortedSet
73-
74-
7572
class Solution:
7673
def containsNearbyAlmostDuplicate(self, nums: List[int], k: int, t: int) -> bool:
7774
s = SortedSet()

lcof2/剑指 Offer II 057. 值和下标之差都在给定的范围内/Solution.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
from sortedcontainers import SortedSet
2-
3-
41
class Solution:
52
def containsNearbyAlmostDuplicate(self, nums: List[int], k: int, t: int) -> bool:
63
s = SortedSet()

lcof2/剑指 Offer II 058. 日程表/README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,6 @@ MyCalendar.book(20, 30); // returns true ,第三个日程安排可以添加到
6565
#### Python3
6666

6767
```python
68-
from sortedcontainers import SortedDict
69-
70-
7168
class MyCalendar:
7269
def __init__(self):
7370
self.sd = SortedDict()
@@ -89,9 +86,6 @@ class MyCalendar:
8986
#### Java
9087

9188
```java
92-
import java.util.Map;
93-
import java.util.TreeMap;
94-
9589
class MyCalendar {
9690

9791
private final TreeMap<Integer, Integer> tm = new TreeMap<>();

lcof2/剑指 Offer II 058. 日程表/Solution.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
import java.util.Map;
2-
import java.util.TreeMap;
3-
41
class MyCalendar {
52

63
private final TreeMap<Integer, Integer> tm = new TreeMap<>();
@@ -25,4 +22,4 @@ public boolean book(int start, int end) {
2522
/**
2623
* Your MyCalendar object will be instantiated and called as such: MyCalendar
2724
* obj = new MyCalendar(); boolean param_1 = obj.book(start,end);
28-
*/
25+
*/

lcof2/剑指 Offer II 058. 日程表/Solution.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
from sortedcontainers import SortedDict
2-
3-
41
class MyCalendar:
52
def __init__(self):
63
self.sd = SortedDict()

lcp/LCP 24. 数字游戏/README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -403,9 +403,6 @@ class Solution {
403403
#### Python3
404404

405405
```python
406-
from sortedcontainers import SortedList
407-
408-
409406
class Solution:
410407
def numsGame(self, nums: List[int]) -> List[int]:
411408
l = SortedList()

lcp/LCP 24. 数字游戏/Solution2.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
from sortedcontainers import SortedList
2-
3-
41
class Solution:
52
def numsGame(self, nums: List[int]) -> List[int]:
63
l = SortedList()

lcp/LCP 52. 二叉搜索树染色/README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,6 @@ edit_url: https://github.com/doocs/leetcode/edit/main/lcp/LCP%2052.%20%E4%BA%8C%
8989
# self.left = None
9090
# self.right = None
9191

92-
from sortedcontainers import SortedList
93-
94-
9592
class Solution:
9693
def getNumber(self, root: Optional[TreeNode], ops: List[List[int]]) -> int:
9794
def dfs(root):

lcp/LCP 52. 二叉搜索树染色/Solution.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
# self.left = None
66
# self.right = None
77

8-
from sortedcontainers import SortedList
9-
108

119
class Solution:
1210
def getNumber(self, root: Optional[TreeNode], ops: List[List[int]]) -> int:

solution/0200-0299/0220.Contains Duplicate III/README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,6 @@ abs(nums[i] - nums[j]) &lt;= valueDiff --&gt; abs(1 - 1) &lt;= 0
8484
#### Python3
8585

8686
```python
87-
from sortedcontainers import SortedSet
88-
89-
9087
class Solution:
9188
def containsNearbyAlmostDuplicate(
9289
self, nums: List[int], indexDiff: int, valueDiff: int

0 commit comments

Comments
 (0)