python:实现给定数组的最长递增子序列 def lis(a): n = len(a) # initialize ans array same lenth as 1 ans = [1] * n for i in