Skip to content

Commit 6a230a5

Browse files
Update stock_span_problem.py
1 parent 6bd76ea commit 6a230a5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

data_structures/stacks/stock_span_problem.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,7 @@ def calculation_span(price: list[float]) -> list[float]:
3030
>>> calculation_span(price)
3131
[1.0, 2.0, 3.0, 4.0, 5.0]
3232
>>> calculation_span(price=[100, 80, 60, 70, 60, 75, 85])
33-
[1.0, 1.0, 1.0, 2.0, 1.0, 4.0, 6.0]
34-
>>> calculation_span(price=[10, 4, 5, 90, 120, 80])
35-
[1.0, 1.0, 2.0, 4.0, 5.0, 1.0]
33+
[1.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0]
3634
"""
3735
n = len(price)
3836
st = [0]

0 commit comments

Comments
 (0)