Skip to content

Commit c028a05

Browse files
author
boraxpr
committed
bug fix
1 parent 0d46da9 commit c028a05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

181/order.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ def __init__(self):
88

99
def add(self, num):
1010
# you complete
11-
self.add(num)
12-
self = sorted(self)
11+
i = bisect.bisect_left(self._numbers, num)
12+
self._numbers.insert(i, num)
1313

1414
def __str__(self):
1515
return ', '.join(str(num) for num in self._numbers)

0 commit comments

Comments
 (0)