Skip to content

Commit 054b4b3

Browse files
committed
Made compatible for all versions of python
1 parent c74b273 commit 054b4b3

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"python.pythonPath": "/usr/bin/python3"
3+
}

data_structures/Stacks/Stock-Span-Problem.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
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
'''
9+
from __future__ import print_function
910
def calculateSpan(price, S):
1011

1112
n = len(price)

0 commit comments

Comments
 (0)