Skip to content

Commit 2468686

Browse files
authored
Update falling-squares.py
1 parent 2101b4a commit 2468686

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Python/falling-squares.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@
6767

6868
# Time: O(nlogn) ~ O(n^2)
6969
# Space: O(n)
70+
import bisect
71+
72+
7073
class Solution(object):
7174
def fallingSquares(self, positions):
7275
result = []
@@ -84,9 +87,6 @@ def fallingSquares(self, positions):
8487
return result
8588

8689

87-
import bisect
88-
89-
9090
class SegmentTree(object):
9191
def __init__(self, N, update_fn, query_fn):
9292
self.N = N

0 commit comments

Comments
 (0)