Skip to content

Commit 8aace12

Browse files
authored
Update LongestIncreasingSequence2.py
1 parent 5d3200b commit 8aace12

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/chapter19dynamicprogramming/LongestIncreasingSequence2.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
# merchantability or fitness for a particular purpose.
1010

1111
def LongestIncreasingSequence2(numList):
12+
n = len(numList)
1213
LISTable = [1]
1314
for i in range(1, len(numList))):
1415
LISTable.append(1)

0 commit comments

Comments
 (0)