File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
'''
2
2
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 stock’ s 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.
4
4
5
- The span Si of the stock’ s 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
6
6
number of consecutive days just before the given day, for which the price of the stock
7
7
on the current day is less than or equal to its price on the given day.
8
8
'''
@@ -49,4 +49,4 @@ def printArray(arr, n):
49
49
calculateSpan (price , S )
50
50
51
51
# Print the calculated span values
52
- printArray (S , len (price ))
52
+ printArray (S , len (price ))
You can’t perform that action at this time.
0 commit comments