# # max increasing subsequence # @param arr int整型一维数组 the array # @return int整型 # class Solution: def MLS(self , arr ): # write code here import heapq k = 1 maxc = 1 heapq.heapify(arr) #建小根堆 x = heapq.heappop(arr) #把最小的值赋值给x并弹出数组 while len(arr): #当数组中全部元素都被弹出时就跳出循环 y = heapq.heappop(arr) #把下一个最小值赋值给...