300.最长上升子序列

class Solution(object):
    def lengthOfLIS(self, nums):
        if len(nums) ==0:
            return 0
        dp = [1]*len(nums)
        for i in range(1,len(nums)):
            for j in range(i-1,-1,-1):
                if nums[j]

你可能感兴趣的:(300.最长上升子序列)