auto
auto:自动推导类型功能 1.在早期 C/C 中 auto 的含义是:使用 auto 修饰的变量,是具有自动存储器的局部变量,后来这个 不重要了。 C11 中,标准委员会变废为宝赋予了 auto 全新的含义即: auto 不再是一…
题目: 题解:
class Solution:def lengthOfLIS(self, nums: List[int]) -> int:d []for n in nums:if not d or n > d[-1]:d.append(n)else:l, r 0, len(d) - 1loc rwhile l < r:mid (l r) // 2if d[mid] > n:loc midr mid - 1else:l…