Skip to content

Commit 5d3200b

Browse files
authored
Update LongestIncreasingSubSeq.py
1 parent 2bdd28c commit 5d3200b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/chapter19dynamicprogramming/LongestIncreasingSubSeq.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 LongestIncreasingSequence(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)