Skip to content

Commit 63c7e8e

Browse files
authored
Minor update
Changed two characters which were the root cause of 'SyntaxError: Non-ASCII character '\xe2' in file main.py, but no encoding declared'
1 parent 054b4b3 commit 63c7e8e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

data_structures/Stacks/Stock-Span-Problem.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
'''
22
The stock span problem is a financial problem where we have a series of n daily
3-
price quotes for a stock and we need to calculate span of stocks price for all n days.
3+
price quotes for a stock and we need to calculate span of stock's price for all n days.
44
5-
The span Si of the stocks price on a given day i is defined as the maximum
5+
The span Si of the stock's price on a given day i is defined as the maximum
66
number of consecutive days just before the given day, for which the price of the stock
77
on the current day is less than or equal to its price on the given day.
88
'''
@@ -49,4 +49,4 @@ def printArray(arr, n):
4949
calculateSpan(price, S)
5050

5151
# Print the calculated span values
52-
printArray(S, len(price))
52+
printArray(S, len(price))

0 commit comments

Comments
 (0)